|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.ws.server.EndpointFactory
public class EndpointFactory
Entry point to the JAX-WS RI server-side runtime.
Constructor Summary | |
---|---|
EndpointFactory()
|
Method Summary | ||
---|---|---|
|
create(java.lang.Class<T> implType,
boolean processHandlerAnnotation,
Invoker invoker,
javax.xml.namespace.QName serviceName,
javax.xml.namespace.QName portName,
Container container,
WSBinding binding,
SDDocumentSource primaryWsdl,
java.util.Collection<? extends SDDocumentSource> metadata,
org.xml.sax.EntityResolver resolver,
boolean isTransportSynchronous)
Implements WSEndpoint.create(java.lang.Class . |
|
|
create(java.lang.Class<T> implType,
boolean processHandlerAnnotation,
Invoker invoker,
javax.xml.namespace.QName serviceName,
javax.xml.namespace.QName portName,
Container container,
WSBinding binding,
SDDocumentSource primaryWsdl,
java.util.Collection<? extends SDDocumentSource> metadata,
org.xml.sax.EntityResolver resolver,
boolean isTransportSynchronous,
boolean isStandard)
|
|
protected
|
create(javax.xml.namespace.QName serviceName,
javax.xml.namespace.QName portName,
WSBinding binding,
Container container,
SEIModel seiModel,
WSDLPort wsdlPort,
java.lang.Class<T> implType,
ServiceDefinitionImpl serviceDefinition,
EndpointAwareTube terminal,
boolean isTransportSynchronous,
com.sun.xml.ws.policy.PolicyMap policyMap)
|
|
static
|
createEndpoint(java.lang.Class<T> implType,
boolean processHandlerAnnotation,
Invoker invoker,
javax.xml.namespace.QName serviceName,
javax.xml.namespace.QName portName,
Container container,
WSBinding binding,
SDDocumentSource primaryWsdl,
java.util.Collection<? extends SDDocumentSource> metadata,
org.xml.sax.EntityResolver resolver,
boolean isTransportSynchronous)
Implements WSEndpoint.create(java.lang.Class . |
|
static
|
createEndpoint(java.lang.Class<T> implType,
boolean processHandlerAnnotation,
Invoker invoker,
javax.xml.namespace.QName serviceName,
javax.xml.namespace.QName portName,
Container container,
WSBinding binding,
SDDocumentSource primaryWsdl,
java.util.Collection<? extends SDDocumentSource> metadata,
org.xml.sax.EntityResolver resolver,
boolean isTransportSynchronous,
boolean isStandard)
|
|
protected
|
createProviderInvokerTube(java.lang.Class<T> implType,
WSBinding binding,
Invoker invoker,
Container container)
|
|
protected EndpointAwareTube |
createSEIInvokerTube(AbstractSEIModelImpl seiModel,
Invoker invoker,
WSBinding binding)
|
|
static javax.xml.namespace.QName |
getDefaultPortName(javax.xml.namespace.QName serviceName,
java.lang.Class<?> implType)
If portName is not already set via DD or programmatically, it uses annotations on implementorClass to get PortName. |
|
static javax.xml.namespace.QName |
getDefaultPortName(javax.xml.namespace.QName serviceName,
java.lang.Class<?> implType,
boolean isStandard)
|
|
static javax.xml.namespace.QName |
getDefaultPortName(javax.xml.namespace.QName serviceName,
java.lang.Class<?> implType,
boolean isStandard,
MetadataReader metadataReader)
|
|
static javax.xml.namespace.QName |
getDefaultPortName(javax.xml.namespace.QName serviceName,
java.lang.Class<?> implType,
MetadataReader metadataReader)
|
|
static javax.xml.namespace.QName |
getDefaultServiceName(java.lang.Class<?> implType)
If service name is not already set via DD or programmatically, it uses annotations WebServiceProvider , WebService on implementorClass to get PortName. |
|
static javax.xml.namespace.QName |
getDefaultServiceName(java.lang.Class<?> implType,
boolean isStandard)
|
|
static javax.xml.namespace.QName |
getDefaultServiceName(java.lang.Class<?> implType,
boolean isStandard,
MetadataReader metadataReader)
|
|
static javax.xml.namespace.QName |
getDefaultServiceName(java.lang.Class<?> implType,
MetadataReader metadataReader)
|
|
static MetadataReader |
getExternalMetadatReader(java.lang.Class<?> implType,
WSBinding binding)
|
|
static EndpointFactory |
getInstance()
|
|
static java.lang.String |
getWsdlLocation(java.lang.Class<?> implType)
Returns the wsdl from @WebService, or @WebServiceProvider annotation using wsdlLocation element. |
|
static java.lang.String |
getWsdlLocation(java.lang.Class<?> implType,
MetadataReader metadataReader)
Returns the wsdl from @WebService, or @WebServiceProvider annotation using wsdlLocation element. |
|
protected boolean |
isUseProviderTube(java.lang.Class<?> implType,
boolean isStandard)
|
|
static boolean |
verifyImplementorClass(java.lang.Class<?> clz)
Verifies if the endpoint implementor class has @WebService or @WebServiceProvider annotation |
|
static boolean |
verifyImplementorClass(java.lang.Class<?> clz,
MetadataReader metadataReader)
Verifies if the endpoint implementor class has @WebService or @WebServiceProvider annotation; passing MetadataReader instance allows to read annotations from xml descriptor instead of class's annotations |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EndpointFactory()
Method Detail |
---|
public static EndpointFactory getInstance()
public static <T> WSEndpoint<T> createEndpoint(java.lang.Class<T> implType, boolean processHandlerAnnotation, @Nullable Invoker invoker, @Nullable javax.xml.namespace.QName serviceName, @Nullable javax.xml.namespace.QName portName, @Nullable Container container, @Nullable WSBinding binding, @Nullable SDDocumentSource primaryWsdl, @Nullable java.util.Collection<? extends SDDocumentSource> metadata, org.xml.sax.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 <T> WSEndpoint<T> createEndpoint(java.lang.Class<T> implType, boolean processHandlerAnnotation, @Nullable Invoker invoker, @Nullable javax.xml.namespace.QName serviceName, @Nullable javax.xml.namespace.QName portName, @Nullable Container container, @Nullable WSBinding binding, @Nullable SDDocumentSource primaryWsdl, @Nullable java.util.Collection<? extends SDDocumentSource> metadata, org.xml.sax.EntityResolver resolver, boolean isTransportSynchronous, boolean isStandard)
public <T> WSEndpoint<T> create(java.lang.Class<T> implType, boolean processHandlerAnnotation, @Nullable Invoker invoker, @Nullable javax.xml.namespace.QName serviceName, @Nullable javax.xml.namespace.QName portName, @Nullable Container container, @Nullable WSBinding binding, @Nullable SDDocumentSource primaryWsdl, @Nullable java.util.Collection<? extends SDDocumentSource> metadata, org.xml.sax.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 <T> WSEndpoint<T> create(java.lang.Class<T> implType, boolean processHandlerAnnotation, @Nullable Invoker invoker, @Nullable javax.xml.namespace.QName serviceName, @Nullable javax.xml.namespace.QName portName, @Nullable Container container, @Nullable WSBinding binding, @Nullable SDDocumentSource primaryWsdl, @Nullable java.util.Collection<? extends SDDocumentSource> metadata, org.xml.sax.EntityResolver resolver, boolean isTransportSynchronous, boolean isStandard)
protected <T> WSEndpoint<T> create(javax.xml.namespace.QName serviceName, javax.xml.namespace.QName portName, WSBinding binding, Container container, SEIModel seiModel, WSDLPort wsdlPort, java.lang.Class<T> implType, ServiceDefinitionImpl serviceDefinition, EndpointAwareTube terminal, boolean isTransportSynchronous, com.sun.xml.ws.policy.PolicyMap policyMap)
protected boolean isUseProviderTube(java.lang.Class<?> implType, boolean isStandard)
protected EndpointAwareTube createSEIInvokerTube(AbstractSEIModelImpl seiModel, Invoker invoker, WSBinding binding)
protected <T> EndpointAwareTube createProviderInvokerTube(java.lang.Class<T> implType, WSBinding binding, Invoker invoker, Container container)
public static boolean verifyImplementorClass(java.lang.Class<?> clz)
java.lang.IllegalArgumentException
- If it doesn't have any one of @WebService or @WebServiceProvider
If it has both @WebService and @WebServiceProvider annotationspublic static boolean verifyImplementorClass(java.lang.Class<?> clz, MetadataReader metadataReader)
java.lang.IllegalArgumentException
- If it doesn't have any one of @WebService or @WebServiceProvider
If it has both @WebService and @WebServiceProvider annotationspublic static MetadataReader getExternalMetadatReader(java.lang.Class<?> implType, WSBinding binding)
@NotNull public static javax.xml.namespace.QName getDefaultServiceName(java.lang.Class<?> implType)
WebServiceProvider
, WebService
on implementorClass to get PortName.
@NotNull public static javax.xml.namespace.QName getDefaultServiceName(java.lang.Class<?> implType, MetadataReader metadataReader)
@NotNull public static javax.xml.namespace.QName getDefaultServiceName(java.lang.Class<?> implType, boolean isStandard)
@NotNull public static javax.xml.namespace.QName getDefaultServiceName(java.lang.Class<?> implType, boolean isStandard, MetadataReader metadataReader)
@NotNull public static javax.xml.namespace.QName getDefaultPortName(javax.xml.namespace.QName serviceName, java.lang.Class<?> implType)
@NotNull public static javax.xml.namespace.QName getDefaultPortName(javax.xml.namespace.QName serviceName, java.lang.Class<?> implType, MetadataReader metadataReader)
@NotNull public static javax.xml.namespace.QName getDefaultPortName(javax.xml.namespace.QName serviceName, java.lang.Class<?> implType, boolean isStandard)
@NotNull public static javax.xml.namespace.QName getDefaultPortName(javax.xml.namespace.QName serviceName, java.lang.Class<?> implType, boolean isStandard, MetadataReader metadataReader)
@Nullable public static java.lang.String getWsdlLocation(java.lang.Class<?> implType)
implType
- endpoint implementation class
make sure that you called verifyImplementorClass(java.lang.Class>)
on it.
@Nullable public static java.lang.String getWsdlLocation(java.lang.Class<?> implType, MetadataReader metadataReader)
implType
- endpoint implementation class
make sure that you called verifyImplementorClass(java.lang.Class>)
on it.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |