|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.xml.ws.spi.ServiceDelegate
com.sun.xml.ws.api.WSService
com.sun.xml.ws.client.WSServiceDelegate
public class WSServiceDelegate
Service objects provide the client view of a Web service.
Service acts as a factory of the following:
javax.xml.ws.Dispatch for
dynamic message-oriented invocation of a remote
operation.
The ports available on a service can be enumerated using the
getPorts method. Alternatively, you can pass a
service endpoint interface to the unary getPort method
and let the runtime select a compatible port.
Handler chains for all the objects created by a Service
can be set by means of the provided HandlerRegistry.
An Executor may be set on the service in order
to gain better control over the threads used to dispatch asynchronous
callbacks. For instance, thread pooling with certain parameters
can be enabled by creating a ThreadPoolExecutor and
registering it with the service.
Executor| Nested Class Summary | |
|---|---|
(package private) class |
WSServiceDelegate.DaemonThreadFactory
|
| Nested classes/interfaces inherited from class com.sun.xml.ws.api.WSService |
|---|
WSService.InitParams |
| Field Summary | |
|---|---|
(package private) ServiceInterceptor |
serviceInterceptor
Multiple ServiceInterceptors are aggregated into one. |
| Fields inherited from class com.sun.xml.ws.api.WSService |
|---|
EMPTY_PARAMS, INIT_PARAMS |
| Constructor Summary | |
|---|---|
WSServiceDelegate(Source wsdl,
QName serviceName,
Class<? extends javax.xml.ws.Service> serviceClass)
|
|
WSServiceDelegate(URL wsdlDocumentLocation,
QName serviceName,
Class<? extends javax.xml.ws.Service> serviceClass)
|
|
| Methods inherited from class com.sun.xml.ws.api.WSService |
|---|
create, create, create, create, unwrap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@NotNull final ServiceInterceptor serviceInterceptor
ServiceInterceptors are aggregated into one.
| Constructor Detail |
|---|
public WSServiceDelegate(URL wsdlDocumentLocation,
QName serviceName,
Class<? extends javax.xml.ws.Service> serviceClass)
public WSServiceDelegate(@Nullable
Source wsdl,
@NotNull
QName serviceName,
@NotNull
Class<? extends javax.xml.ws.Service> serviceClass)
serviceClass - Either Service.class or other generated service-derived classes.| Method Detail |
|---|
public Executor getExecutor()
getExecutor in class javax.xml.ws.spi.ServiceDelegatepublic void setExecutor(Executor executor)
setExecutor in class javax.xml.ws.spi.ServiceDelegatepublic javax.xml.ws.handler.HandlerResolver getHandlerResolver()
getHandlerResolver in class javax.xml.ws.spi.ServiceDelegatefinal HandlerConfigurator getHandlerConfigurator()
public void setHandlerResolver(javax.xml.ws.handler.HandlerResolver resolver)
setHandlerResolver in class javax.xml.ws.spi.ServiceDelegate
public <T> T getPort(QName portName,
Class<T> portInterface)
throws javax.xml.ws.WebServiceException
getPort in class javax.xml.ws.spi.ServiceDelegatejavax.xml.ws.WebServiceException
public <T> T getPort(QName portName,
Class<T> portInterface,
javax.xml.ws.WebServiceFeature... features)
getPort in class javax.xml.ws.spi.ServiceDelegate
public <T> T getPort(javax.xml.ws.EndpointReference epr,
Class<T> portInterface,
javax.xml.ws.WebServiceFeature... features)
getPort in class javax.xml.ws.spi.ServiceDelegate
public <T> T getPort(WSEndpointReference wsepr,
Class<T> portInterface,
javax.xml.ws.WebServiceFeature... features)
WSServiceServiceDelegate.getPort(EndpointReference, Class, WebServiceFeature...)
but takes WSEndpointReference.
getPort in class WSService
public <T> T getPort(Class<T> portInterface,
javax.xml.ws.WebServiceFeature... features)
getPort in class javax.xml.ws.spi.ServiceDelegate
public <T> T getPort(Class<T> portInterface)
throws javax.xml.ws.WebServiceException
getPort in class javax.xml.ws.spi.ServiceDelegatejavax.xml.ws.WebServiceException
public void addPort(QName portName,
String bindingId,
String endpointAddress)
throws javax.xml.ws.WebServiceException
addPort in class javax.xml.ws.spi.ServiceDelegatejavax.xml.ws.WebServiceException
public <T> javax.xml.ws.Dispatch<T> createDispatch(QName portName,
Class<T> aClass,
javax.xml.ws.Service.Mode mode)
throws javax.xml.ws.WebServiceException
createDispatch in class javax.xml.ws.spi.ServiceDelegatejavax.xml.ws.WebServiceException
public <T> javax.xml.ws.Dispatch<T> createDispatch(QName portName,
WSEndpointReference wsepr,
Class<T> aClass,
javax.xml.ws.Service.Mode mode,
javax.xml.ws.WebServiceFeature... features)
WSService#createDispatch(EndpointReference, Class, Mode, WebServiceFeature[])
but it takes the port name separately, so that EPR without embedded metadata can be used.
createDispatch in class WSService
public <T> javax.xml.ws.Dispatch<T> createDispatch(QName portName,
Class<T> aClass,
javax.xml.ws.Service.Mode mode,
javax.xml.ws.WebServiceFeature... features)
createDispatch in class javax.xml.ws.spi.ServiceDelegate
public <T> javax.xml.ws.Dispatch<T> createDispatch(javax.xml.ws.EndpointReference endpointReference,
Class<T> type,
javax.xml.ws.Service.Mode mode,
javax.xml.ws.WebServiceFeature... features)
createDispatch in class javax.xml.ws.spi.ServiceDelegate@NotNull public PortInfo safeGetPort(QName portName)
PortInfo for the given name, with error check.
public EndpointAddress getEndpointAddress(QName qName)
public javax.xml.ws.Dispatch<Object> createDispatch(QName portName,
JAXBContext jaxbContext,
javax.xml.ws.Service.Mode mode)
throws javax.xml.ws.WebServiceException
createDispatch in class javax.xml.ws.spi.ServiceDelegatejavax.xml.ws.WebServiceException
public javax.xml.ws.Dispatch<Object> createDispatch(QName portName,
WSEndpointReference wsepr,
JAXBContext jaxbContext,
javax.xml.ws.Service.Mode mode,
javax.xml.ws.WebServiceFeature... features)
WSService#createDispatch(EndpointReference, JAXBContext, Mode, WebServiceFeature[])
but it takes the port name separately, so that EPR without embedded metadata can be used.
createDispatch in class WSService@NotNull public Container getContainer()
WSServiceContainer object.
The components inside WSEndpoint uses this reference
to communicate with the hosting environment.
getContainer in class WSServiceContainer instance
is given, Container.NONE will be returned.
public javax.xml.ws.Dispatch<Object> createDispatch(QName portName,
JAXBContext jaxbContext,
javax.xml.ws.Service.Mode mode,
javax.xml.ws.WebServiceFeature... webServiceFeatures)
createDispatch in class javax.xml.ws.spi.ServiceDelegate
public javax.xml.ws.Dispatch<Object> createDispatch(javax.xml.ws.EndpointReference endpointReference,
JAXBContext context,
javax.xml.ws.Service.Mode mode,
javax.xml.ws.WebServiceFeature... features)
createDispatch in class javax.xml.ws.spi.ServiceDelegatepublic QName getServiceName()
getServiceName in class javax.xml.ws.spi.ServiceDelegateprotected Class getServiceClass()
public Iterator<QName> getPorts()
throws javax.xml.ws.WebServiceException
getPorts in class javax.xml.ws.spi.ServiceDelegatejavax.xml.ws.WebServiceExceptionpublic URL getWSDLDocumentLocation()
getWSDLDocumentLocation in class javax.xml.ws.spi.ServiceDelegate@NotNull public WSDLPortImpl getPortModel(QName portName)
WSDLPortImpl with error check.
public WSDLServiceImpl getWsdlService()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||