|
||||||||||
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 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 String |
SERVICE
|
Constructor Summary | |
---|---|
RuntimeModeler(Class portClass,
QName serviceName,
BindingID bindingId)
creates an instance of RunTimeModeler given a portClass and bindingId |
|
RuntimeModeler(Class sei,
QName serviceName,
WSDLPortImpl wsdlPort)
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)
|
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 |
getPortTypeName(Class<?> implOrSeiClass)
Gives portType QName from implementatorClass or SEI |
static QName |
getServiceName(Class<?> implClass)
gets the wsdl:serviceName for a given implementation class |
protected Method |
getWSDLExceptionFaultInfo(Class exception)
returns the method that corresponds to "getFaultInfo". |
protected boolean |
isWebMethod(Method method,
Class clazz)
|
(package private) void |
processClass(Class clazz)
|
protected void |
processDocBareMethod(JavaMethodImpl javaMethod,
String methodName,
javax.jws.WebMethod webMethod,
String operationName,
Method method,
javax.jws.WebService webService)
models a document/literal bare method |
protected void |
processDocWrappedMethod(JavaMethodImpl javaMethod,
String methodName,
javax.jws.WebMethod webMethod,
String operationName,
Method method,
javax.jws.WebService webService)
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 |
processMethod(Method method,
javax.jws.WebService webService)
creates the runtime model for a method on the portClass |
protected void |
processRpcMethod(JavaMethodImpl javaMethod,
String methodName,
javax.jws.WebMethod webMethod,
String operationName,
Method method,
javax.jws.WebService webService)
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 . |
protected void |
setUsesWebMethod(Class clazz,
Boolean usesWebMethod)
|
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
Constructor Detail |
---|
public RuntimeModeler(@NotNull Class portClass, @NotNull QName serviceName, @NotNull BindingID bindingId)
portClass
and bindingId
portClass
- The SEI class to be modeled.serviceName
- The ServiceName to use instead of one calculated from the implementation classbindingId
- The binding identifier to be used when modeling the portClass
.public RuntimeModeler(@NotNull Class sei, @NotNull QName serviceName, @NotNull WSDLPortImpl wsdlPort)
sei
and binding
sei
- The SEI class to be modeled.serviceName
- The ServiceName to use instead of one calculated from the implementation classwsdlPort
- WSDLPort
Method 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 setUsesWebMethod(Class clazz, Boolean usesWebMethod)
protected void determineWebMethodUse(Class clazz)
void processClass(Class clazz)
protected boolean isWebMethod(Method method, 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 processMethod(Method method, javax.jws.WebService webService)
portClass
method
- the method to modelwebService
- the instance of the WebService
annotation on the portClass
protected void processDocWrappedMethod(JavaMethodImpl javaMethod, String methodName, javax.jws.WebMethod webMethod, String operationName, Method method, javax.jws.WebService webService)
javaMethod
- the runtime model JavaMethod
instance being createdmethodName
- the runtime model JavaMethod
instance being createdwebMethod
- the runtime model JavaMethod
instance being createdoperationName
- the runtime model JavaMethod
instance being createdmethod
- the method
to modelwebService
- The WebService
annotation instance on the portClass
protected void processRpcMethod(JavaMethodImpl javaMethod, String methodName, javax.jws.WebMethod webMethod, String operationName, Method method, javax.jws.WebService webService)
javaMethod
- the runtime model JavaMethod
instance being createdmethodName
- the name of the method
being modeled.webMethod
- the WebMethod
annotations instance on the method
operationName
- the WSDL operation name for this method
method
- the runtime model JavaMethod
instance being createdwebService
- 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 methodName, javax.jws.WebMethod webMethod, String operationName, Method method, javax.jws.WebService webService)
javaMethod
- the runtime model JavaMethod
instance being createdmethodName
- the runtime model JavaMethod
instance being createdwebMethod
- the runtime model JavaMethod
instance being createdoperationName
- the runtime model JavaMethod
instance being createdmethod
- the runtime model JavaMethod
instance being createdwebService
- 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 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 getPortTypeName(Class<?> implOrSeiClass)
implOrSeiClass
- cant be null
wsdl:portType@name
, null if it could not find the annotated class.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |