Service objects
to allow pluggability of JAX-WS implementations.
Every Service object has its own delegate, created using
the javax.xml.ws.spi.Provider#createServiceDelegate method. A Service
object delegates all of its instance methods to its delegate.
javax.xml.ws.Service, javax.xml.ws.spi.Provider
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | |
| public abstract < type used for messages or message payloads. Implementations are required to
support T> Dispatchjavax.xml.transform.Source and javax.xml.soap.SOAPMessage. | Returns: Dispatch instanceQualified name for the target service endpoint portName, Class<T> The class of object used for messages or message
payloads. Implementations are required to support
type, Service.javax.xml.transform.Source and javax.xml.soap.SOAPMessage.Controls whether the created dispatch instance is message
or payload oriented, i.e. whether the user will work with complete
protocol messages or message payloads. E.g. when using the SOAP
protocol, this parameter controls whether the user will work with
SOAP messages or the contents of a SOAP body. Mode MUST be modeMESSAGE
when type is SOAPMessage.Creates a |
| public abstract < type used for messages or message payloads. Implementations are required to
support T> Dispatchjavax.xml.transform.Source and javax.xml.soap.SOAPMessage. | Returns: Dispatch instanceQualified name for the target service endpoint portName, Class<T> The class of object used for messages or message
payloads. Implementations are required to support
type, Service.javax.xml.transform.Source and javax.xml.soap.SOAPMessage.Controls whether the created dispatch instance is message
or payload oriented, i.e. whether the user will work with complete
protocol messages or message payloads. E.g. when using the SOAP
protocol, this parameter controls whether the user will work with
SOAP messages or the contents of a SOAP body. Mode MUST be mode,MESSAGE
when type is SOAPMessage.A list of features)WebServiceFeatures to configure on the
proxy. Supported features not in the features
parameter will have their default values.Creates a |
| public abstract < type of object used to messages or message
payloads. Implementations are required to support
T> Dispatchjavax.xml.transform.Source and javax.xml.soap.SOAPMessage. | Returns: Dispatch instanceThe endpointReference, Class<T> EndpointReference
for the target service endpoint that will be invoked by the
returned Dispatch object.The class of object used to messages or message
payloads. Implementations are required to support
type, Service.javax.xml.transform.Source and javax.xml.soap.SOAPMessage.Controls whether the created dispatch instance is message
or payload oriented, i.e. whether the user will work with complete
protocol messages or message payloads. E.g. when using the SOAP
protocol, this parameter controls whether the user will work with
SOAP messages or the contents of a SOAP body. Mode MUST be mode,MESSAGE
when type is SOAPMessage.An array of features)WebServiceFeatures to configure on the
proxy. Supported features not in the features
parameter will have their default values.Creates a |
| public abstract Dispatch | Returns: Dispatch instanceQualified name for the target service endpoint portName, JAXBContext The JAXB context used to marshall and unmarshall
messages or message payloads. context, Service.Controls whether the created dispatch instance is message
or payload oriented, i.e. whether the user will work with complete
protocol messages or message payloads. E.g. when using the SOAP
protocol, this parameter controls whether the user will work with
SOAP messages or the contents of a SOAP body. modeCreates a |
| public abstract Dispatch | Returns: Dispatch instanceQualified name for the target service endpoint portName, JAXBContext The JAXB context used to marshall and unmarshall
messages or message payloads. context, Service.Controls whether the created dispatch instance is message
or payload oriented, i.e. whether the user will work with complete
protocol messages or message payloads. E.g. when using the SOAP
protocol, this parameter controls whether the user will work with
SOAP messages or the contents of a SOAP body. mode,A list of features)WebServiceFeatures to configure on the
proxy. Supported features not in the features
parameter will have their default values.Creates a |
| public abstract Dispatch | Returns: Dispatch instanceThe endpointReference, JAXBContext EndpointReference
for the target service endpoint that will be invoked by the
returned Dispatch object.The JAXB context used to marshall and unmarshall
messages or message payloads. context, Service.Controls whether the created dispatch instance is message
or payload oriented, i.e. whether the user will work with complete
protocol messages or message payloads. E.g. when using the SOAP
protocol, this parameter controls whether the user will work with
SOAP messages or the contents of a SOAP body. mode,An array of features)WebServiceFeatures to configure on the
proxy. Supported features not in the features
parameter will have their default values.Creates a |
| public abstract Executor | Returns: Thejava.util.concurrent.Executor to be
used to invoke a callback.Returns the executor for this |
| public abstract HandlerResolver | Returns: HandlerResolver TheHandlerResolver being
used by this Service instance, or null
if there isn't one.Returns the configured handler resolver. |
| public abstract < Service endpoint interface T> T | Returns: Object Proxy instance that supports the specified service endpoint interfaceQualified name of the service endpoint in
the WSDL service description portName, Class<T> Service endpoint interface
supported by the dynamic proxy serviceEndpointInterface)The |
| public abstract < Service endpoint interface T> T | Returns: Object Proxy instance that supports the specified service endpoint interfaceQualified name of the service endpoint in
the WSDL service description portName, Class<T> Service endpoint interface
supported by the dynamic proxy or instance serviceEndpointInterface, WebServiceFeature... A list of WebServiceFeatures to configure on the
proxy. Supported features not in the features)features
parameter will have their default values.The |
| public abstract < Service endpoint interface. T> T | Returns: Object Proxy instance that supports the specified service endpoint interface.The endpointReference, Class<T> EndpointReference
for the target service endpoint that will be invoked by the
returned proxy.Service endpoint interface. serviceEndpointInterface, WebServiceFeature... A list of features)WebServiceFeatures to configure on the
proxy. Supported features not in the features
parameter will have their default values.The |
| public abstract < Service endpoint interface T> T | |
| public abstract < Service endpoint interface T> T | Returns: Object instance that supports the specified service endpoint interfaceService endpoint interface serviceEndpointInterface, WebServiceFeature... An array of features)WebServiceFeatures to configure on the
proxy. Supported features not in the features
parameter will have their default values.The |
| public abstract Iterator | Returns: Returnsjava.util.Iterator with elements
of type javax.xml.namespace.QNameReturns an |
| public abstract QName | |
| public abstract URL | Returns: URL for the location of the WSDL document for this serviceGets the location of the WSDL document for this Service. |
| public abstract void | setExecutor(Executor
The executor)java.util.concurrent.Executor
to be used to invoke a callback.Sets the executor for this |
| public abstract void | setHandlerResolver(HandlerResolver
The handlerResolver)HandlerResolver to use
for all subsequently created proxy/dispatch objects.Sets the |
| ServiceDelegate | back to summary |
|---|---|
| protected ServiceDelegate() Default constructor. | |
| addPort | back to summary |
|---|---|
| public abstract void addPort(QName portName, String bindingId, String endpointAddress) Creates a new port for the service. Ports created in this way contain
no WSDL port type information and can only be used for creating
| |
| createDispatch | back to summary |
|---|---|
| public abstract <T> Dispatch Creates a
| |
| createDispatch | back to summary |
|---|---|
| public abstract <T> Dispatch Creates a
| |
| createDispatch | back to summary |
|---|---|
| public abstract <T> Dispatch Creates a This method behaves the same as calling
where the portName is retrieved from the
WSDL or EndpointReference metadata.
| |
| createDispatch | back to summary |
|---|---|
| public abstract Dispatch Creates a
| |
| createDispatch | back to summary |
|---|---|
| public abstract Dispatch Creates a
| |
| createDispatch | back to summary |
|---|---|
| public abstract Dispatch Creates a This method behavies the same as calling
where the portName is retrieved from the
WSDL or endpointReference metadata.
| |
| getExecutor | back to summary |
|---|---|
| public abstract Executor getExecutor() Returns the executor for this
| |
| getHandlerResolver | back to summary |
|---|---|
| public abstract HandlerResolver getHandlerResolver() Returns the configured handler resolver.
| |
| getPort | back to summary |
|---|---|
| public abstract <T> T getPort(QName portName, Class<T> serviceEndpointInterface) The
| |
| getPort | back to summary |
|---|---|
| public abstract <T> T getPort(QName portName, Class<T> serviceEndpointInterface, WebServiceFeature... features) The
| |
| getPort | back to summary |
|---|---|
| public abstract <T> T getPort(EndpointReference endpointReference, Class<T> serviceEndpointInterface, WebServiceFeature... features) The Calling this method has the same behavior as the following
where the portName is retrieved from the
metadata of the endpointReference or from the
serviceEndpointInterface and the WSDL
associated with this Service instance.
| |
| getPort | back to summary |
|---|---|
| public abstract <T> T getPort(Class<T> serviceEndpointInterface) The
| |
| getPort | back to summary |
|---|---|
| public abstract <T> T getPort(Class<T> serviceEndpointInterface, WebServiceFeature... features) The
| |
| getPorts | back to summary |
|---|---|
| public abstract Iterator Returns an
| |
| getServiceName | back to summary |
|---|---|
| public abstract QName getServiceName() Gets the name of this service.
| |
| getWSDLDocumentLocation | back to summary |
|---|---|
| public abstract URL getWSDLDocumentLocation() Gets the location of the WSDL document for this Service.
| |
| setExecutor | back to summary |
|---|---|
| public abstract void setExecutor(Executor executor) Sets the executor for this
| |
| setHandlerResolver | back to summary |
|---|---|
| public abstract void setHandlerResolver(HandlerResolver handlerResolver) Sets the The handler resolver, if present, will be called once for each proxy or dispatch instance that is created, and the handler chain returned by the resolver will be set on the instance.
| |