public class RuntimeModeler extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BEAN |
static String |
DecapitalizeExceptionBeanProperties |
static String |
DocWrappeeNamespapceQualified |
static Class<Exception> |
EXCEPTION_CLASS |
static Class |
HOLDER_CLASS |
static String |
JAXWS_PACKAGE_PD |
static String |
PD_JAXWS_PACKAGE_PD |
static String |
PORT |
static Class<RemoteException> |
REMOTE_EXCEPTION_CLASS |
static String |
RESPONSE |
static String |
RETURN |
static Class<RuntimeException> |
RUNTIME_EXCEPTION_CLASS |
static String |
SERVICE |
static String |
SuppressDocLitWrapperGeneration |
Constructor and Description |
---|
RuntimeModeler(DatabindingConfig config)
creates an instance of RunTimeModeler given a
sei and binding |
Modifier and Type | Method and Description |
---|---|
AbstractSEIModelImpl |
buildRuntimeModel()
builds the runtime model from the
portClass using the binding ID bindingId . |
static String |
capitalize(String name)
utility to capitalize the first letter in a string
|
protected SOAPBindingImpl |
createBinding(SOAPBinding soapBinding)
creates a runtime model
SOAPBinding from a javax.jws.soap.SOAPBinding object |
protected void |
determineWebMethodUse(Class clazz) |
static String |
getNamespace(String packageName)
gets the namespace
String for a given packageName |
static QName |
getPortName(Class<?> implClass,
MetadataReader reader,
String targetNamespace) |
static QName |
getPortName(Class<?> implClass,
MetadataReader reader,
String targetNamespace,
boolean isStandard) |
static QName |
getPortName(Class<?> implClass,
String targetNamespace)
gets the
wsdl:portName for a given implementation class |
static QName |
getPortName(Class<?> implClass,
String targetNamespace,
boolean isStandard) |
static QName |
getPortTypeName(Class<?> implOrSeiClass)
Gives portType QName from implementatorClass or SEI
|
static QName |
getPortTypeName(Class<?> implOrSeiClass,
MetadataReader metadataReader) |
static QName |
getPortTypeName(Class<?> implOrSeiClass,
String tns,
MetadataReader reader) |
static QName |
getServiceName(Class<?> implClass)
gets the
wsdl:serviceName for a given implementation class |
static QName |
getServiceName(Class<?> implClass,
boolean isStandard) |
static QName |
getServiceName(Class<?> implClass,
MetadataReader reader) |
static QName |
getServiceName(Class<?> implClass,
MetadataReader reader,
boolean isStandard) |
protected Method |
getWSDLExceptionFaultInfo(Class exception)
returns the method that corresponds to "getFaultInfo".
|
protected void |
processDocBareMethod(JavaMethodImpl javaMethod,
String operationName,
Method method)
models a document/literal bare method
|
protected void |
processDocWrappedMethod(JavaMethodImpl javaMethod,
String methodName,
String operationName,
Method method)
models a document/literal wrapped method
|
protected void |
processExceptions(JavaMethodImpl javaMethod,
Method method)
models the exceptions thrown by
method and adds them to the javaMethod
runtime model object |
protected void |
processRpcMethod(JavaMethodImpl javaMethod,
String methodName,
String operationName,
Method method)
models a rpc/literal method
|
void |
setClassLoader(ClassLoader classLoader)
sets the classloader to be used when loading classes by the
RuntimeModeler . |
void |
setPortName(QName portName)
sets the PortName to be used by the
RuntimeModeler . |
public static final String PD_JAXWS_PACKAGE_PD
public static final String JAXWS_PACKAGE_PD
public static final String RESPONSE
public static final String RETURN
public static final String BEAN
public static final String SERVICE
public static final String PORT
public static final Class HOLDER_CLASS
public static final Class<RemoteException> REMOTE_EXCEPTION_CLASS
public static final Class<RuntimeException> RUNTIME_EXCEPTION_CLASS
public static final String DecapitalizeExceptionBeanProperties
public static final String SuppressDocLitWrapperGeneration
public static final String DocWrappeeNamespapceQualified
public RuntimeModeler(@NotNull DatabindingConfig config)
sei
and binding
portClass
- The SEI class to be modeled.serviceName
- The ServiceName to use instead of one calculated from the implementation classwsdlPort
- WSDLPort
features
- web service featurespublic void setClassLoader(ClassLoader classLoader)
RuntimeModeler
.classLoader
- ClassLoader used to load classespublic void setPortName(QName portName)
RuntimeModeler
.portName
- The PortName to be used instead of the PortName
retrieved via annotationspublic AbstractSEIModelImpl buildRuntimeModel()
portClass
using the binding ID bindingId
.portClass
.protected void determineWebMethodUse(Class clazz)
protected SOAPBindingImpl createBinding(SOAPBinding soapBinding)
SOAPBinding
from a javax.jws.soap.SOAPBinding
objectsoapBinding
- the javax.jws.soap.SOAPBinding
to modelsoapBinding
public static String getNamespace(@NotNull String packageName)
String
for a given packageName
packageName
- the name of the package used to find a namespace.
can be empty.packageName
protected void processDocWrappedMethod(JavaMethodImpl javaMethod, String methodName, String operationName, Method method)
javaMethod
- the runtime model JavaMethod
instance being createdmethodName
- the runtime model JavaMethod
instance being createdoperationName
- the runtime model JavaMethod
instance being createdmethod
- the method
to modelprotected void processRpcMethod(JavaMethodImpl javaMethod, String methodName, String operationName, Method method)
javaMethod
- the runtime model JavaMethod
instance being createdmethodName
- the name of the method
being modeled.operationName
- the WSDL operation name for this method
method
- the runtime model JavaMethod
instance being createdprotected void processExceptions(JavaMethodImpl javaMethod, Method method)
method
and adds them to the javaMethod
runtime model objectjavaMethod
- the runtime model object to add the exception model objects tomethod
- the method
from which to find the exceptions to modelprotected Method getWSDLExceptionFaultInfo(Class exception)
exception
- the class to search for the "getFaultInfo" methodWebFault
annotation. Otherwise it returns nullprotected void processDocBareMethod(JavaMethodImpl javaMethod, String operationName, Method method)
javaMethod
- the runtime model JavaMethod
instance being createdoperationName
- the runtime model JavaMethod
instance being createdmethod
- the runtime model JavaMethod
instance being createdpublic static String capitalize(String name)
name
- the string to capitalizepublic static QName getServiceName(Class<?> implClass)
wsdl:serviceName
for a given implementation classimplClass
- the implementation classwsdl:serviceName
for the implClass
public static QName getServiceName(Class<?> implClass, MetadataReader reader)
public static QName getServiceName(Class<?> implClass, MetadataReader reader, boolean isStandard)
public static QName getPortName(Class<?> implClass, String targetNamespace)
wsdl:portName
for a given implementation classimplClass
- the implementation classtargetNamespace
- Namespace URI for service namewsdl:portName
for the implClass
public static QName getPortName(Class<?> implClass, String targetNamespace, boolean isStandard)
public static QName getPortName(Class<?> implClass, MetadataReader reader, String targetNamespace)
public static QName getPortName(Class<?> implClass, MetadataReader reader, String targetNamespace, boolean isStandard)
public static QName getPortTypeName(Class<?> implOrSeiClass)
implOrSeiClass
- cant be nullwsdl:portType@name
, null if it could not find the annotated class.public static QName getPortTypeName(Class<?> implOrSeiClass, MetadataReader metadataReader)
public static QName getPortTypeName(Class<?> implOrSeiClass, String tns, MetadataReader reader)
Copyright © 2015 Oracle Corporation. All rights reserved.