com.sun.xml.ws.server
public class TG_EndpointFactory extends Object
| Constructor and 描述 |
|---|
TG_EndpointFactory() |
| Modifier and Type | Method and 描述 |
|---|---|
static <T> com.sun.xml.ws.api.server.WSEndpoint<T> |
createEndpoint(Class<T> implType,
boolean processHandlerAnnotation,
com.sun.xml.ws.api.server.Invoker invoker,
QName serviceName,
QName portName,
com.sun.xml.ws.api.server.Container container,
com.sun.xml.ws.api.WSBinding binding,
com.sun.xml.ws.api.server.SDDocumentSource primaryWsdl,
Collection<? extends com.sun.xml.ws.api.server.SDDocumentSource> metadata,
EntityResolver resolver,
boolean isTransportSynchronous)
Implements
WSEndpoint.create(java.lang.Class. |
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.
|
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. |
static String |
getWsdlLocation(Class<?> implType)
Returns the wsdl from @WebService, or @WebServiceProvider annotation using
wsdlLocation element.
|
static boolean |
verifyImplementorClass(Class<?> clz)
Verifies if the endpoint implementor class has @WebService or @WebServiceProvider
annotation
|
public static <T> com.sun.xml.ws.api.server.WSEndpoint<T> createEndpoint(Class<T> implType, boolean processHandlerAnnotation, @Nullable com.sun.xml.ws.api.server.Invoker invoker, @Nullable QName serviceName, @Nullable QName portName, @Nullable com.sun.xml.ws.api.server.Container container, @Nullable com.sun.xml.ws.api.WSBinding binding, @Nullable com.sun.xml.ws.api.server.SDDocumentSource primaryWsdl, @Nullable Collection<? extends com.sun.xml.ws.api.server.SDDocumentSource> metadata, EntityResolver resolver, boolean isTransportSynchronous)
WSEndpoint.create(java.lang.Class, boolean, com.sun.xml.ws.api.server.Invoker, javax.xml.namespace.QName, javax.xml.namespace.QName, com.sun.xml.ws.api.server.Container, com.sun.xml.ws.api.WSBinding, com.sun.xml.ws.api.server.SDDocumentSource, java.util.Collection extends com.sun.xml.ws.api.server.SDDocumentSource>, org.xml.sax.EntityResolver, boolean) .
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.
public static boolean verifyImplementorClass(Class<?> clz)
IllegalArgumentException - If it doesn't have any one of @WebService or @WebServiceProvider
If it has both @WebService and @WebServiceProvider annotations@NotNull public static QName getDefaultServiceName(Class<?> implType)
WebServiceProvider, WebService on implementorClass to get PortName.@NotNull public static QName getDefaultPortName(QName serviceName, Class<?> implType)
@Nullable public static String getWsdlLocation(Class<?> implType)
implType - endpoint implementation class
make sure that you called verifyImplementorClass(java.lang.Class>) on it.Copyright © 2006–2015 TinyGroup. All rights reserved.