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 String
static final String
static final String
static final Class
static final String
static final String
static final String
static final String
static final String
static final String
static final Class<RuntimeException>
static final String
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilds the runtime model from theportClass
using the binding IDbindingId
.static String
capitalize
(String name) utility to capitalize the first letter in a stringprotected SOAPBindingImpl
createBinding
(jakarta.jws.soap.SOAPBinding soapBinding) creates a runtime modelSOAPBinding
from ajakarta.jws.soap.SOAPBinding
objectprotected void
determineWebMethodUse
(Class clazz) static Class
static String
getNamespace
(String packageName) gets the namespaceString
for a givenpackageName
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 thewsdl:portName
for a given implementation classstatic QName
getPortName
(Class<?> implClass, String targetNamespace, boolean isStandard) static QName
getPortTypeName
(Class<?> implOrSeiClass) Gives portType QName from implementatorClass or SEIstatic QName
getPortTypeName
(Class<?> implOrSeiClass, MetadataReader metadataReader) static QName
getPortTypeName
(Class<?> implOrSeiClass, String tns, MetadataReader reader) static QName
getServiceName
(Class<?> implClass) gets thewsdl:serviceName
for a given implementation classstatic 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 methodprotected void
processDocWrappedMethod
(JavaMethodImpl javaMethod, String methodName, String operationName, Method method) models a document/literal wrapped methodprotected void
processExceptions
(JavaMethodImpl javaMethod, Method method) models the exceptions thrown bymethod
and adds them to thejavaMethod
runtime model objectprotected void
processRpcMethod
(JavaMethodImpl javaMethod, String methodName, String operationName, Method method) models a rpc/literal methodvoid
setClassLoader
(ClassLoader classLoader) sets the classloader to be used when loading classes by theRuntimeModeler
.void
setPortName
(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 theportClass
using the binding IDbindingId
.- Returns:
- the runtime model for the
portClass
.
-
determineWebMethodUse
-
createBinding
creates a runtime modelSOAPBinding
from ajakarta.jws.soap.SOAPBinding
object- Parameters:
soapBinding
- thejakarta.jws.soap.SOAPBinding
to model- Returns:
- returns the runtime model SOAPBinding corresponding to
soapBinding
-
getNamespace
gets the namespaceString
for 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 modelJavaMethod
instance being createdmethodName
- the runtime modelJavaMethod
instance being createdoperationName
- the runtime modelJavaMethod
instance being createdmethod
- themethod
to model
-
processRpcMethod
protected void processRpcMethod(JavaMethodImpl javaMethod, String methodName, String operationName, Method method) models a rpc/literal method- Parameters:
javaMethod
- the runtime modelJavaMethod
instance being createdmethodName
- the name of themethod
being modeled.operationName
- the WSDL operation name for thismethod
method
- the runtime modelJavaMethod
instance being created
-
processExceptions
models the exceptions thrown bymethod
and adds them to thejavaMethod
runtime model object- Parameters:
javaMethod
- the runtime model object to add the exception model objects tomethod
- themethod
from 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
WebFault
annotation. Otherwise it returns null
-
processDocBareMethod
models a document/literal bare method- Parameters:
javaMethod
- the runtime modelJavaMethod
instance being createdoperationName
- the runtime modelJavaMethod
instance being createdmethod
- the runtime modelJavaMethod
instance 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:serviceName
for a given implementation class- Parameters:
implClass
- the implementation class- Returns:
- the
wsdl:serviceName
for theimplClass
-
getServiceName
-
getServiceName
-
getServiceName
-
getPortName
gets thewsdl:portName
for a given implementation class- Parameters:
implClass
- the implementation classtargetNamespace
- Namespace URI for service name- Returns:
- the
wsdl:portName
for 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
-