Package com.sun.xml.ws.model
Class RuntimeModeler
java.lang.Object
com.sun.xml.ws.model.RuntimeModeler
Creates a runtime model of a SEI (portClass).
- Author:
- WS Developement Team
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Classstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Class<RuntimeException>static final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilds the runtime model from theportClassusing the binding IDbindingId.static Stringcapitalize(String name) utility to capitalize the first letter in a stringprotected SOAPBindingImplcreateBinding(javax.jws.soap.SOAPBinding soapBinding) creates a runtime modelSOAPBindingfrom ajavax.jws.soap.SOAPBindingobjectprotected voiddetermineWebMethodUse(Class clazz) static Classstatic StringgetNamespace(String packageName) gets the namespaceStringfor a givenpackageNamestatic QNamegetPortName(Class<?> implClass, MetadataReader reader, String targetNamespace) static QNamegetPortName(Class<?> implClass, MetadataReader reader, String targetNamespace, boolean isStandard) static QNamegetPortName(Class<?> implClass, String targetNamespace) gets thewsdl:portNamefor a given implementation classstatic QNamegetPortName(Class<?> implClass, String targetNamespace, boolean isStandard) static QNamegetPortTypeName(Class<?> implOrSeiClass) Gives portType QName from implementatorClass or SEIstatic QNamegetPortTypeName(Class<?> implOrSeiClass, MetadataReader metadataReader) static QNamegetPortTypeName(Class<?> implOrSeiClass, String tns, MetadataReader reader) static QNamegetServiceName(Class<?> implClass) gets thewsdl:serviceNamefor a given implementation classstatic QNamegetServiceName(Class<?> implClass, boolean isStandard) static QNamegetServiceName(Class<?> implClass, MetadataReader reader) static QNamegetServiceName(Class<?> implClass, MetadataReader reader, boolean isStandard) protected MethodgetWSDLExceptionFaultInfo(Class exception) returns the method that corresponds to "getFaultInfo".protected voidprocessDocBareMethod(JavaMethodImpl javaMethod, String operationName, Method method) models a document/literal bare methodprotected voidprocessDocWrappedMethod(JavaMethodImpl javaMethod, String methodName, String operationName, Method method) models a document/literal wrapped methodprotected voidprocessExceptions(JavaMethodImpl javaMethod, Method method) models the exceptions thrown bymethodand adds them to thejavaMethodruntime model objectprotected voidprocessRpcMethod(JavaMethodImpl javaMethod, String methodName, String operationName, Method method) models a rpc/literal methodvoidsetClassLoader(ClassLoader classLoader) sets the classloader to be used when loading classes by theRuntimeModeler.voidsetPortName(QName portName) sets the PortName to be used by theRuntimeModeler.
-
Field Details
-
PD_JAXWS_PACKAGE_PD
- See Also:
-
JAXWS_PACKAGE_PD
- See Also:
-
RESPONSE
- See Also:
-
RETURN
- See Also:
-
BEAN
- See Also:
-
SERVICE
- See Also:
-
PORT
- See Also:
-
HOLDER_CLASS
-
REMOTE_EXCEPTION_CLASS
- See Also:
-
RUNTIME_EXCEPTION_CLASS
-
EXCEPTION_CLASS
-
DecapitalizeExceptionBeanProperties
- See Also:
-
SuppressDocLitWrapperGeneration
- See Also:
-
DocWrappeeNamespapceQualified
- See Also:
-
-
Constructor Details
-
RuntimeModeler
-
-
Method Details
-
setClassLoader
sets the classloader to be used when loading classes by theRuntimeModeler.- Parameters:
classLoader- ClassLoader used to load classes
-
setPortName
sets the PortName to be used by theRuntimeModeler.- Parameters:
portName- The PortName to be used instead of the PortName retrieved via annotations
-
buildRuntimeModel
builds the runtime model from theportClassusing the binding IDbindingId.- Returns:
- the runtime model for the
portClass.
-
determineWebMethodUse
-
createBinding
creates a runtime modelSOAPBindingfrom ajavax.jws.soap.SOAPBindingobject- Parameters:
soapBinding- thejavax.jws.soap.SOAPBindingto model- Returns:
- returns the runtime model SOAPBinding corresponding to
soapBinding
-
getNamespace
gets the namespaceStringfor a givenpackageName- Parameters:
packageName- the name of the package used to find a namespace. can be empty.- Returns:
- the namespace for the specified
packageName
-
processDocWrappedMethod
protected void processDocWrappedMethod(JavaMethodImpl javaMethod, String methodName, String operationName, Method method) models a document/literal wrapped method- Parameters:
javaMethod- the runtime modelJavaMethodinstance being createdmethodName- the runtime modelJavaMethodinstance being createdoperationName- the runtime modelJavaMethodinstance being createdmethod- themethodto model
-
processRpcMethod
protected void processRpcMethod(JavaMethodImpl javaMethod, String methodName, String operationName, Method method) models a rpc/literal method- Parameters:
javaMethod- the runtime modelJavaMethodinstance being createdmethodName- the name of themethodbeing modeled.operationName- the WSDL operation name for thismethodmethod- the runtime modelJavaMethodinstance being created
-
processExceptions
models the exceptions thrown bymethodand adds them to thejavaMethodruntime model object- Parameters:
javaMethod- the runtime model object to add the exception model objects tomethod- themethodfrom which to find the exceptions to model
-
getWSDLExceptionFaultInfo
returns the method that corresponds to "getFaultInfo". Returns null if this is not an exception generated from a WSDL- Parameters:
exception- the class to search for the "getFaultInfo" method- Returns:
- the method named "getFaultInfo" if this is an exception generated from WSDL or an
exception that contains the
WebFaultannotation. Otherwise it returns null
-
processDocBareMethod
models a document/literal bare method- Parameters:
javaMethod- the runtime modelJavaMethodinstance being createdoperationName- the runtime modelJavaMethodinstance being createdmethod- the runtime modelJavaMethodinstance being created
-
capitalize
utility to capitalize the first letter in a string- Parameters:
name- the string to capitalize- Returns:
- the capitalized string
-
getServiceName
gets thewsdl:serviceNamefor a given implementation class- Parameters:
implClass- the implementation class- Returns:
- the
wsdl:serviceNamefor theimplClass
-
getServiceName
-
getServiceName
-
getServiceName
-
getPortName
gets thewsdl:portNamefor a given implementation class- Parameters:
implClass- the implementation classtargetNamespace- Namespace URI for service name- Returns:
- the
wsdl:portNamefor theimplClass
-
getPortName
-
getPortName
-
getPortName
public static QName getPortName(Class<?> implClass, MetadataReader reader, String targetNamespace, boolean isStandard) -
getPortTypeName
Gives portType QName from implementatorClass or SEI- Parameters:
implOrSeiClass- cant be null- Returns:
wsdl:portType@name, null if it could not find the annotated class.
-
getPortTypeName
-
getPortTypeName
-
erasure
-