|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.ws.model.RuntimeModeler
public class RuntimeModeler
Creates a runtime model of a SEI (portClass).
Field Summary | |
---|---|
static String |
BEAN
|
static String |
DecapitalizeExceptionBeanProperties
|
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 Summary | |
---|---|
RuntimeModeler(DatabindingConfig config)
creates an instance of RunTimeModeler given a sei and binding |
Method Summary | ||
---|---|---|
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(javax.jws.soap.SOAPBinding soapBinding)
creates a runtime model SOAPBinding from a javax.jws.soap.SOAPBinding object |
|
protected void |
determineWebMethodUse(Class clazz)
|
|
(package private) static
|
getAnnotation(Class<A> t,
Class<?> cls,
MetadataReader reader)
|
|
static String |
getNamespace(String packageName)
gets the namespace String for a given packageName |
|
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 |
getPortName(Class<?> implClass,
String targetNamespace,
MetadataReader reader)
|
|
static QName |
getPortName(Class<?> implClass,
String targetNamespace,
MetadataReader reader,
boolean isStandard)
|
|
static QName |
getPortTypeName(Class<?> implOrSeiClass)
Gives portType QName from implementatorClass or SEI |
|
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". |
|
(package private) void |
processClass(Class clazz)
|
|
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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 Class<Exception> EXCEPTION_CLASS
public static final String DecapitalizeExceptionBeanProperties
public static final String SuppressDocLitWrapperGeneration
Constructor Detail |
---|
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 featuresMethod Detail |
---|
public 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)
void processClass(Class clazz)
protected SOAPBindingImpl createBinding(javax.jws.soap.SOAPBinding soapBinding)
SOAPBinding
from a javax.jws.soap.SOAPBinding
object
soapBinding
- the javax.jws.soap.SOAPBinding
to model
soapBinding
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 object
javaMethod
- 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" method
WebFault
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 capitalize
public static QName getServiceName(Class<?> implClass)
wsdl:serviceName
for a given implementation class
implClass
- the implementation class
wsdl:serviceName
for the implClass
public static QName getServiceName(Class<?> implClass, boolean isStandard)
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 class
implClass
- the implementation classtargetNamespace
- Namespace URI for service name
wsdl:portName
for the implClass
public static QName getPortName(Class<?> implClass, String targetNamespace, boolean isStandard)
public static QName getPortName(Class<?> implClass, String targetNamespace, MetadataReader reader)
public static QName getPortName(Class<?> implClass, String targetNamespace, MetadataReader reader, boolean isStandard)
static <A extends Annotation> A getAnnotation(Class<A> t, Class<?> cls, MetadataReader reader)
public static QName getPortTypeName(Class<?> implOrSeiClass)
implOrSeiClass
- cant be null
wsdl:portType@name
, null if it could not find the annotated class.public static QName getPortTypeName(Class<?> implOrSeiClass, String tns, MetadataReader reader)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |