Endpoints are created using the static methods defined in this
class. An endpoint is always tied to one Binding
and one implementor, both set at endpoint creation time.
An endpoint is either in a published or an unpublished state.
The publish methods can be used to start publishing
an endpoint, at which point it starts accepting incoming requests.
Conversely, the stop method can be used to stop
accepting incoming requests and take the endpoint down.
Once stopped, an endpoint cannot be published again.
An Executor may be set on the endpoint in order
to gain better control over the threads used to dispatch incoming
requests. For instance, thread pooling with certain parameters
can be enabled by creating a ThreadPoolExecutor and
registering it with the endpoint.
Handler chains can be set using the contained Binding.
An endpoint may have a list of metadata documents, such as WSDL and XMLSchema documents, bound to it. At publishing time, the JAX-WS implementation will try to reuse as much of that metadata as possible instead of generating new ones based on the annotations present on the implementor.
javax.xml.ws.Binding, javax.xml.ws.BindingType, javax.xml.ws.soap.SOAPBinding, java.util.concurrent.Executor
| Modifier and Type | Field and Description |
|---|---|
| public static final String | WSDL_PORT
Standard property: name of WSDL port. |
| public static final String | WSDL_SERVICE
Standard property: name of WSDL service. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Endpoint | |
| public static Endpoint | Returns: The newly created endpoint.The endpoint implementor. implementor, WebServiceFeature... A list of WebServiceFeature to configure on the
endpoint. Supported features not in the features)features
parameter will have their default values.Creates an endpoint with the specified implementor object and web service features. |
| public static Endpoint | Returns: The newly created endpoint.A URI specifying the binding to use. If the bindingID is
bindingId, Object null and no binding is specified via a BindingType
annotation then a default SOAP 1.1 / HTTP binding MUST be used.The endpoint implementor. implementor)Creates an endpoint with the specified binding type and implementor object. |
| public static Endpoint | Returns: The newly created endpoint.A URI specifying the binding to use. If the bindingID is
bindingId, Object null and no binding is specified via a BindingType
annotation then a default SOAP 1.1 / HTTP binding MUST be used.The endpoint implementor. implementor, WebServiceFeature... A list of WebServiceFeature to configure on the
endpoint. Supported features not in the features)features
parameter will have their default values.Creates an endpoint with the specified binding type, implementor object, and web service features. |
| public abstract Binding | |
| public abstract EndpointReference | Returns: EndpointReference of thisEndpoint instance.
If the returned EndpointReference is of type
W3CEndpointReference then it MUST contain the
the specified referenceParameters.Reference parameters to be associated with the
returned referenceParameters)EndpointReference instance.Returns the |
| public abstract < The type of EndpointReference. T extends EndpointReference> T | Returns: EndpointReference of typeclazz of this
Endpoint instance.
If the returned EndpointReference is of type
W3CEndpointReference then it MUST contain the
the specified referenceParameters.Specifies the type of EndpointReference that MUST be returned. clazz, Element... Reference parameters to be associated with the
returned referenceParameters)EndpointReference instance.Returns the |
| public abstract Executor | Returns: Thejava.util.concurrent.Executor to be
used to dispatch a request.Returns the executor for this |
| public abstract Object | Returns: The implementor for this endpointReturns the implementation object for this endpoint. |
| public abstract List | Returns: List<javax.xml.transform.Source> A list of metadata documents for the serviceReturns a list of metadata documents for the service. |
| public abstract Map | Returns: Map<String,Object> The property bag associated with this instance.Returns the property bag for this |
| public abstract boolean | Returns: true if the endpoint is in the published state.Returns true if the endpoint is in the published state. |
| public abstract void | |
| public static Endpoint | Returns: The newly created endpoint.A URI specifying the address and transport/protocol
to use. A http: URI MUST result in the SOAP 1.1/HTTP
binding being used. Implementations may support other
URI schemes. address, Object The endpoint implementor. implementor)Creates and publishes an endpoint for the specified implementor object at the given address. |
| public static Endpoint | Returns: The newly created endpoint.A URI specifying the address and transport/protocol
to use. A http: URI MUST result in the SOAP 1.1/HTTP
binding being used. Implementations may support other
URI schemes. address, Object The endpoint implementor. implementor, WebServiceFeature... A list of WebServiceFeature to configure on the
endpoint. Supported features not in the features)features
parameter will have their default values.Creates and publishes an endpoint for the specified implementor object at the given address. |
| public abstract void | |
| public void | publish(HttpContext
An object representing a server
context to be used for publishing the endpoint. serverContext)Publishes this endpoint at the provided server context. |
| public void | setEndpointContext(EndpointContext
that is shared for multiple endpoints ctxt)By setting a |
| public abstract void | setExecutor(Executor
The executor)java.util.concurrent.Executor
to be used to dispatch a request.Sets the executor for this |
| public abstract void | setMetadata(List<Source>
A list of XML document sources containing
metadata information for the endpoint (e.g.
WSDL or XML Schema documents) metadata)Sets the metadata for this endpoint. |
| public abstract void | setProperties(Map<String, Object>
The property bag associated with
this instance. properties)Sets the property bag for this |
| public abstract void |
| WSDL_PORT | back to summary |
|---|---|
| public static final String WSDL_PORT Standard property: name of WSDL port. Type: javax.xml.namespace.QName | |
| WSDL_SERVICE | back to summary |
|---|---|
| public static final String WSDL_SERVICE Standard property: name of WSDL service. Type: javax.xml.namespace.QName | |
| Endpoint | back to summary |
|---|---|
| public Endpoint() | |
| create | back to summary |
|---|---|
| public static Endpoint create(Object implementor) Creates an endpoint with the specified implementor object. If there is a binding specified via a BindingType annotation then it MUST be used else a default of SOAP 1.1 / HTTP binding MUST be used.
The newly created endpoint may be published by calling
one of the | |
| create | back to summary |
|---|---|
| public static Endpoint create(Object implementor, WebServiceFeature... features) Creates an endpoint with the specified implementor object and web service features. If there is a binding specified via a BindingType annotation then it MUST be used else a default of SOAP 1.1 / HTTP binding MUST be used.
The newly created endpoint may be published by calling
one of the
| |
| create | back to summary |
|---|---|
| public static Endpoint create(String bindingId, Object implementor) Creates an endpoint with the specified binding type and implementor object.
The newly created endpoint may be published by calling
one of the | |
| create | back to summary |
|---|---|
| public static Endpoint create(String bindingId, Object implementor, WebServiceFeature... features) Creates an endpoint with the specified binding type, implementor object, and web service features.
The newly created endpoint may be published by calling
one of the
| |
| getBinding | back to summary |
|---|---|
| public abstract Binding getBinding() Returns the binding for this endpoint.
| |
| getEndpointReference | back to summary |
|---|---|
| public abstract EndpointReference getEndpointReference(Element... referenceParameters) Returns the
If the Binding for this
| |
| getEndpointReference | back to summary |
|---|---|
| public abstract <T extends EndpointReference> T getEndpointReference(Class<T> clazz, Element... referenceParameters) Returns the
| |
| getExecutor | back to summary |
|---|---|
| public abstract Executor getExecutor() Returns the executor for this
| |
| getImplementor | back to summary |
|---|---|
| public abstract Object getImplementor() Returns the implementation object for this endpoint.
| |
| getMetadata | back to summary |
|---|---|
| public abstract List Returns a list of metadata documents for the service. | |
| getProperties | back to summary |
|---|---|
| public abstract Map Returns the property bag for this | |
| isPublished | back to summary |
|---|---|
| public abstract boolean isPublished() Returns true if the endpoint is in the published state.
| |
| publish | back to summary |
|---|---|
| public abstract void publish(String address) Publishes this endpoint at the given address.
The necessary server infrastructure will be created and
configured by the JAX-WS implementation using some default configuration.
In order to get more control over the server configuration, please
use the
| |
| publish | back to summary |
|---|---|
| public static Endpoint publish(String address, Object implementor) Creates and publishes an endpoint for the specified implementor object at the given address.
The necessary server infrastructure will be created and
configured by the JAX-WS implementation using some default configuration.
In order to get more control over the server configuration, please
use the
| |
| publish | back to summary |
|---|---|
| public static Endpoint publish(String address, Object implementor, WebServiceFeature... features) Creates and publishes an endpoint for the specified implementor object at the given address. The created endpoint is configured with the web service features.
The necessary server infrastructure will be created and
configured by the JAX-WS implementation using some default configuration.
In order to get more control over the server configuration, please
use the
| |
| publish | back to summary |
|---|---|
| public abstract void publish(Object serverContext) Publishes this endpoint at the provided server context. A server context encapsulates the server infrastructure and addressing information for a particular transport. For a call to this method to succeed, the server context passed as an argument to it MUST be compatible with the endpoint's binding.
| |
| publish | back to summary |
|---|---|
| public void publish(HttpContext serverContext) Publishes this endpoint at the provided server context. A server context encapsulates the server infrastructure and addressing information for a particular transport. For a call to this method to succeed, the server context passed as an argument to it MUST be compatible with the endpoint's binding. This is meant for container developers to publish the the endpoints portably and not intended for the end developers.
| |
| setEndpointContext | back to summary |
|---|---|
| public void setEndpointContext(EndpointContext ctxt) By setting a This needs to be set before publishing the endpoints.
| |
| setExecutor | back to summary |
|---|---|
| public abstract void setExecutor(Executor executor) Sets the executor for this
| |
| setMetadata | back to summary |
|---|---|
| public abstract void setMetadata(List<Source> metadata) Sets the metadata for this endpoint.
| |
| setProperties | back to summary |
|---|---|
| public abstract void setProperties(Map<String, Object> properties) Sets the property bag for this | |
| stop | back to summary |
|---|---|
| public abstract void stop() Stops publishing this endpoint. If the endpoint is not in a published state, this method has no effect. | |