| java.lang.Object com.sun.xml.ws.server.EndpointFactory
EndpointFactory | public class EndpointFactory (Code) | | Entry point to the JAX-WS RI server-side runtime.
author: Kohsuke Kawaguchi author: Jitendra Kotamraju |
Method Summary | |
public static WSEndpoint<T> | createEndpoint(Class<T> implType, boolean processHandlerAnnotation, Invoker invoker, QName serviceName, QName portName, Container container, WSBinding binding, SDDocumentSource primaryWsdl, Collection<? extends SDDocumentSource> metadata, EntityResolver resolver, boolean isTransportSynchronous) Implements
WSEndpoint.create .
No need to take WebServiceContext implementation. | public static QName | getDefaultPortName(QName serviceName, Class> implType) If portName is not already set via DD or programmatically, it uses
annotations on implementorClass to get PortName. | public static QName | getDefaultServiceName(Class> implType) If service name is not already set via DD or programmatically, it uses
annotations
WebServiceProvider ,
WebService on implementorClass to get PortName. | public static String | getWsdlLocation(Class> implType) Returns the wsdl from @WebService, or @WebServiceProvider annotation using
wsdlLocation element.
Parameters: implType - endpoint implementation classmake sure that you called EndpointFactory.verifyImplementorClass on it. | public static boolean | verifyImplementorClass(Class> clz) |
createEndpoint | public static WSEndpoint<T> createEndpoint(Class<T> implType, boolean processHandlerAnnotation, Invoker invoker, QName serviceName, QName portName, Container container, WSBinding binding, SDDocumentSource primaryWsdl, Collection<? extends SDDocumentSource> metadata, EntityResolver resolver, boolean isTransportSynchronous)(Code) | | Implements
WSEndpoint.create .
No need to take WebServiceContext implementation. When InvokerPipe is
instantiated, it calls InstanceResolver to set up a WebServiceContext.
We shall only take delegate to getUserPrincipal and isUserInRole from adapter.
Nobody else should be calling this method.
|
getDefaultPortName | public static QName getDefaultPortName(QName serviceName, Class> implType)(Code) | | If portName is not already set via DD or programmatically, it uses
annotations on implementorClass to get PortName.
non-null port name |
getDefaultServiceName | public static QName getDefaultServiceName(Class> implType)(Code) | | If service name is not already set via DD or programmatically, it uses
annotations
WebServiceProvider ,
WebService on implementorClass to get PortName.
non-null service name |
getWsdlLocation | public static String getWsdlLocation(Class> implType)(Code) | | Returns the wsdl from @WebService, or @WebServiceProvider annotation using
wsdlLocation element.
Parameters: implType - endpoint implementation classmake sure that you called EndpointFactory.verifyImplementorClass on it. wsdl if there is wsdlLocation, else null |
verifyImplementorClass | public static boolean verifyImplementorClass(Class> clz)(Code) | | Verifies if the endpoint implementor class has @WebService or @WebServiceProvider
annotation
true if it is a Provider or AsyncProvider endpointfalse otherwise throws: java.lang.IllegalArgumentException - If it doesn't have any one of @WebService or @WebServiceProviderIf it has both @WebService and @WebServiceProvider annotations |
|
|