|
||||||||||
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 java.lang.String |
BEAN
|
static java.lang.String |
DecapitalizeExceptionBeanProperties
|
static java.lang.String |
DocWrappeeNamespapceQualified
|
static java.lang.Class<java.lang.Exception> |
EXCEPTION_CLASS
|
static java.lang.Class |
HOLDER_CLASS
|
static java.lang.String |
JAXWS_PACKAGE_PD
|
static java.lang.String |
PD_JAXWS_PACKAGE_PD
|
static java.lang.String |
PORT
|
static java.lang.Class<java.rmi.RemoteException> |
REMOTE_EXCEPTION_CLASS
|
static java.lang.String |
RESPONSE
|
static java.lang.String |
RETURN
|
static java.lang.Class<java.lang.RuntimeException> |
RUNTIME_EXCEPTION_CLASS
|
static java.lang.String |
SERVICE
|
static java.lang.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 java.lang.String |
capitalize(java.lang.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(java.lang.Class clazz)
|
static java.lang.String |
getNamespace(java.lang.String packageName)
gets the namespace String for a given packageName |
static javax.xml.namespace.QName |
getPortName(java.lang.Class<?> implClass,
MetadataReader reader,
java.lang.String targetNamespace)
|
static javax.xml.namespace.QName |
getPortName(java.lang.Class<?> implClass,
MetadataReader reader,
java.lang.String targetNamespace,
boolean isStandard)
|
static javax.xml.namespace.QName |
getPortName(java.lang.Class<?> implClass,
java.lang.String targetNamespace)
gets the wsdl:portName for a given implementation class |
static javax.xml.namespace.QName |
getPortName(java.lang.Class<?> implClass,
java.lang.String targetNamespace,
boolean isStandard)
|
static javax.xml.namespace.QName |
getPortTypeName(java.lang.Class<?> implOrSeiClass)
Gives portType QName from implementatorClass or SEI |
static javax.xml.namespace.QName |
getPortTypeName(java.lang.Class<?> implOrSeiClass,
MetadataReader metadataReader)
|
static javax.xml.namespace.QName |
getPortTypeName(java.lang.Class<?> implOrSeiClass,
java.lang.String tns,
MetadataReader reader)
|
static javax.xml.namespace.QName |
getServiceName(java.lang.Class<?> implClass)
gets the wsdl:serviceName for a given implementation class |
static javax.xml.namespace.QName |
getServiceName(java.lang.Class<?> implClass,
boolean isStandard)
|
static javax.xml.namespace.QName |
getServiceName(java.lang.Class<?> implClass,
MetadataReader reader)
|
static javax.xml.namespace.QName |
getServiceName(java.lang.Class<?> implClass,
MetadataReader reader,
boolean isStandard)
|
protected java.lang.reflect.Method |
getWSDLExceptionFaultInfo(java.lang.Class exception)
returns the method that corresponds to "getFaultInfo". |
protected void |
processDocBareMethod(JavaMethodImpl javaMethod,
java.lang.String operationName,
java.lang.reflect.Method method)
models a document/literal bare method |
protected void |
processDocWrappedMethod(JavaMethodImpl javaMethod,
java.lang.String methodName,
java.lang.String operationName,
java.lang.reflect.Method method)
models a document/literal wrapped method |
protected void |
processExceptions(JavaMethodImpl javaMethod,
java.lang.reflect.Method method)
models the exceptions thrown by method and adds them to the javaMethod
runtime model object |
protected void |
processRpcMethod(JavaMethodImpl javaMethod,
java.lang.String methodName,
java.lang.String operationName,
java.lang.reflect.Method method)
models a rpc/literal method |
void |
setClassLoader(java.lang.ClassLoader classLoader)
sets the classloader to be used when loading classes by the RuntimeModeler . |
void |
setPortName(javax.xml.namespace.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 java.lang.String PD_JAXWS_PACKAGE_PD
public static final java.lang.String JAXWS_PACKAGE_PD
public static final java.lang.String RESPONSE
public static final java.lang.String RETURN
public static final java.lang.String BEAN
public static final java.lang.String SERVICE
public static final java.lang.String PORT
public static final java.lang.Class HOLDER_CLASS
public static final java.lang.Class<java.rmi.RemoteException> REMOTE_EXCEPTION_CLASS
public static final java.lang.Class<java.lang.RuntimeException> RUNTIME_EXCEPTION_CLASS
public static final java.lang.Class<java.lang.Exception> EXCEPTION_CLASS
public static final java.lang.String DecapitalizeExceptionBeanProperties
public static final java.lang.String SuppressDocLitWrapperGeneration
public static final java.lang.String DocWrappeeNamespapceQualified
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(java.lang.ClassLoader classLoader)
RuntimeModeler
.
classLoader
- ClassLoader used to load classespublic void setPortName(javax.xml.namespace.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(java.lang.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 java.lang.String getNamespace(@NotNull java.lang.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, java.lang.String methodName, java.lang.String operationName, java.lang.reflect.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, java.lang.String methodName, java.lang.String operationName, java.lang.reflect.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, java.lang.reflect.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 java.lang.reflect.Method getWSDLExceptionFaultInfo(java.lang.Class exception)
exception
- the class to search for the "getFaultInfo" method
WebFault
annotation. Otherwise it returns nullprotected void processDocBareMethod(JavaMethodImpl javaMethod, java.lang.String operationName, java.lang.reflect.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 java.lang.String capitalize(java.lang.String name)
name
- the string to capitalize
public static javax.xml.namespace.QName getServiceName(java.lang.Class<?> implClass)
wsdl:serviceName
for a given implementation class
implClass
- the implementation class
wsdl:serviceName
for the implClass
public static javax.xml.namespace.QName getServiceName(java.lang.Class<?> implClass, boolean isStandard)
public static javax.xml.namespace.QName getServiceName(java.lang.Class<?> implClass, MetadataReader reader)
public static javax.xml.namespace.QName getServiceName(java.lang.Class<?> implClass, MetadataReader reader, boolean isStandard)
public static javax.xml.namespace.QName getPortName(java.lang.Class<?> implClass, java.lang.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 javax.xml.namespace.QName getPortName(java.lang.Class<?> implClass, java.lang.String targetNamespace, boolean isStandard)
public static javax.xml.namespace.QName getPortName(java.lang.Class<?> implClass, MetadataReader reader, java.lang.String targetNamespace)
public static javax.xml.namespace.QName getPortName(java.lang.Class<?> implClass, MetadataReader reader, java.lang.String targetNamespace, boolean isStandard)
public static javax.xml.namespace.QName getPortTypeName(java.lang.Class<?> implOrSeiClass)
implOrSeiClass
- cant be null
wsdl:portType@name
, null if it could not find the annotated class.public static javax.xml.namespace.QName getPortTypeName(java.lang.Class<?> implOrSeiClass, MetadataReader metadataReader)
public static javax.xml.namespace.QName getPortTypeName(java.lang.Class<?> implOrSeiClass, java.lang.String tns, MetadataReader reader)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |