| java.lang.Object com.sun.xml.ws.model.RuntimeModeler
RuntimeModeler | public class RuntimeModeler (Code) | | Creates a runtime model of a SEI (portClass).
author: WS Developement Team |
Method Summary | |
public AbstractSEIModelImpl | buildRuntimeModel() builds the runtime model from the portClass using the binding ID bindingId . | public static String | capitalize(String name) | protected SOAPBindingImpl | createBinding(SOAPBinding soapBinding) | protected void | determineWebMethodUse(Class clazz) | public static String | getNamespace(String packageName) gets the namespace String for a given packageName
Parameters: packageName - the name of the package used to find a namespace.can be empty. | public static QName | getPortName(Class> implClass, String targetNamespace) | public static QName | getPortTypeName(Class> implOrSeiClass) | public static QName | getServiceName(Class> implClass) | protected Method | getWSDLExceptionFaultInfo(Class exception) returns the method that corresponds to "getFaultInfo". | protected boolean | isWebMethod(Method method, Class clazz) | void | processClass(Class clazz) | protected void | processDocBareMethod(JavaMethodImpl javaMethod, String methodName, WebMethod webMethod, String operationName, Method method, WebService webService) | protected void | processDocWrappedMethod(JavaMethodImpl javaMethod, String methodName, WebMethod webMethod, String operationName, Method method, WebService webService) | protected void | processExceptions(JavaMethodImpl javaMethod, Method method) | protected void | processMethod(Method method, WebService webService) | protected void | processRpcMethod(JavaMethodImpl javaMethod, String methodName, WebMethod webMethod, String operationName, Method method, WebService webService) | public void | setClassLoader(ClassLoader classLoader) sets the classloader to be used when loading classes by the RuntimeModeler . | public void | setPortName(QName portName) sets the PortName to be used by the RuntimeModeler . | protected void | setUsesWebMethod(Class clazz, Boolean usesWebMethod) |
HOLDER_CLASS | final public static Class HOLDER_CLASS(Code) | | |
JAXWS_PACKAGE_PD | final public static String JAXWS_PACKAGE_PD(Code) | | |
PD_JAXWS_PACKAGE_PD | final public static String PD_JAXWS_PACKAGE_PD(Code) | | |
RuntimeModeler | public RuntimeModeler(Class portClass, QName serviceName, BindingID bindingId)(Code) | | creates an instance of RunTimeModeler given a portClass and bindingId
Parameters: portClass - The SEI class to be modeled. Parameters: serviceName - The ServiceName to use instead of one calculated from the implementation class Parameters: bindingId - The binding identifier to be used when modeling the portClass . |
RuntimeModeler | public RuntimeModeler(Class sei, QName serviceName, WSDLPortImpl wsdlPort)(Code) | | creates an instance of RunTimeModeler given a sei and binding
Parameters: sei - The SEI class to be modeled. Parameters: serviceName - The ServiceName to use instead of one calculated from the implementation class Parameters: wsdlPort - com.sun.xml.ws.api.model.wsdl.WSDLPort |
buildRuntimeModel | public AbstractSEIModelImpl buildRuntimeModel()(Code) | | builds the runtime model from the portClass using the binding ID bindingId .
the runtime model for the portClass . |
capitalize | public static String capitalize(String name)(Code) | | utility to capitalize the first letter in a string
Parameters: name - the string to capitalize the capitalized string |
createBinding | protected SOAPBindingImpl createBinding(SOAPBinding soapBinding)(Code) | | creates a runtime model SOAPBinding from a javax.jws.soap.SOAPBinding object
Parameters: soapBinding - the javax.jws.soap.SOAPBinding to model returns the runtime model SOAPBinding corresponding to soapBinding |
determineWebMethodUse | protected void determineWebMethodUse(Class clazz)(Code) | | |
getNamespace | public static String getNamespace(String packageName)(Code) | | gets the namespace String for a given packageName
Parameters: packageName - the name of the package used to find a namespace.can be empty. the namespace for the specified packageName |
getPortName | public static QName getPortName(Class> implClass, String targetNamespace)(Code) | | gets the wsdl:portName for a given implementation class
Parameters: implClass - the implementation class Parameters: targetNamespace - Namespace URI for service name the wsdl:portName for the implClass |
getPortTypeName | public static QName getPortTypeName(Class> implOrSeiClass)(Code) | | Gives portType QName from implementatorClass or SEI
Parameters: implOrSeiClass - cant be null wsdl:portType@name , null if it could not find the annotated class. |
getServiceName | public static QName getServiceName(Class> implClass)(Code) | | gets the wsdl:serviceName for a given implementation class
Parameters: implClass - the implementation class the wsdl:serviceName for the implClass |
getWSDLExceptionFaultInfo | protected Method getWSDLExceptionFaultInfo(Class exception)(Code) | | 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 the method named "getFaultInfo" if this is an exception generated from WSDL or anexception that contains the WebFault annotation. Otherwise it returns null |
processDocBareMethod | protected void processDocBareMethod(JavaMethodImpl javaMethod, String methodName, WebMethod webMethod, String operationName, Method method, WebService webService)(Code) | | models a document/literal bare method
Parameters: javaMethod - the runtime model JavaMethod instance being created Parameters: methodName - the runtime model JavaMethod instance being created Parameters: webMethod - the runtime model JavaMethod instance being created Parameters: operationName - the runtime model JavaMethod instance being created Parameters: method - the runtime model JavaMethod instance being created Parameters: webService - the runtime model JavaMethod instance being created |
processDocWrappedMethod | protected void processDocWrappedMethod(JavaMethodImpl javaMethod, String methodName, WebMethod webMethod, String operationName, Method method, WebService webService)(Code) | | models a document/literal wrapped method
Parameters: javaMethod - the runtime model JavaMethod instance being created Parameters: methodName - the runtime model JavaMethod instance being created Parameters: webMethod - the runtime model JavaMethod instance being created Parameters: operationName - the runtime model JavaMethod instance being created Parameters: method - the method to model Parameters: webService - The WebService annotation instance on the portClass |
processExceptions | protected void processExceptions(JavaMethodImpl javaMethod, Method method)(Code) | | models the exceptions thrown by method and adds them to the javaMethod
runtime model object
Parameters: javaMethod - the runtime model object to add the exception model objects to Parameters: method - the method from which to find the exceptions to model |
processMethod | protected void processMethod(Method method, WebService webService)(Code) | | creates the runtime model for a method on the portClass
Parameters: method - the method to model Parameters: webService - the instance of the WebService annotation on the portClass |
processRpcMethod | protected void processRpcMethod(JavaMethodImpl javaMethod, String methodName, WebMethod webMethod, String operationName, Method method, WebService webService)(Code) | | models a rpc/literal method
Parameters: javaMethod - the runtime model JavaMethod instance being created Parameters: methodName - the name of the method being modeled. Parameters: webMethod - the WebMethod annotations instance on the method Parameters: operationName - the WSDL operation name for this method Parameters: method - the runtime model JavaMethod instance being created Parameters: webService - the runtime model JavaMethod instance being created |
setClassLoader | public void setClassLoader(ClassLoader classLoader)(Code) | | sets the classloader to be used when loading classes by the RuntimeModeler .
Parameters: classLoader - ClassLoader used to load classes |
setPortName | public void setPortName(QName portName)(Code) | | sets the PortName to be used by the RuntimeModeler .
Parameters: portName - The PortName to be used instead of the PortNameretrieved via annotations |
|
|