|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Endpoint
A Web service endpoint.
Endpoints are created using the EndpointFactory
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.
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 one based on the annotations present on the implementor.
EndpointFactory.createEndpoint(java.net.URI, java.lang.Object),
Binding,
Executor| Field Summary | |
|---|---|
static java.lang.String |
WSDL_PORT
Standard property: name of WSDL port. |
static java.lang.String |
WSDL_SERVICE
Standard property: name of WSDL service. |
| Method Summary | |
|---|---|
Binding |
getBinding()
Returns the binding for this endpoint. |
java.util.concurrent.Executor |
getExecutor()
Returns the executor for this Endpointinstance. |
java.lang.Object |
getImplementor()
Returns the implementation object for this endpoint. |
java.util.List<javax.xml.transform.Source> |
getMetadata()
Returns a list of metadata documents for the service. |
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
Returns the property bag for this Endpoint instance. |
boolean |
isPublished()
Returns true if the endpoint has been published. |
void |
publish(java.lang.Object serverContext)
Publishes this endpoint at the provided server context. |
void |
publish(java.lang.String address)
Publishes this endpoint at the given address. |
void |
setExecutor(java.util.concurrent.Executor executor)
Sets the executor for this Endpoint instance. |
void |
setMetadata(java.util.List<javax.xml.transform.Source> metadata)
Sets the metadata for this endpoint. |
void |
setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
Sets the property bag for this Endpoint instance. |
void |
stop()
Stops publishing this endpoint. |
| Field Detail |
|---|
static final java.lang.String WSDL_SERVICE
Type: javax.xml.namespace.QName
static final java.lang.String WSDL_PORT
Type: javax.xml.namespace.QName
| Method Detail |
|---|
Binding getBinding()
java.lang.Object getImplementor()
void publish(java.lang.String address)
address - A URI specifying the address and transport/protocol
to use. By default, a http: URI results in a SOAP/HTTP
binding being used. Implementations may support other
URI schemes.void publish(java.lang.Object serverContext)
serverContext - An object representing a server
context to be used for publishing the endpoint.
java.lang.IllegalArgumentException - If the provided server context is not
supported by the implementation or turns
out to be unusable in conjunction with
endpoint's binding.void stop()
boolean isPublished()
true if the endpoint has been publishedjava.util.List<javax.xml.transform.Source> getMetadata()
List<javax.xml.transform.Source> A list of metadata documents for the servicevoid setMetadata(java.util.List<javax.xml.transform.Source> metadata)
metadata - A list of XML document sources containing
metadata information for the endpoint (e.g.
WSDL or XML Schema documents)
java.lang.IllegalStateException - If the endpoint
has already been published.java.util.concurrent.Executor getExecutor()
Endpointinstance.
The executor is used to dispatch an incoming request to
the implementor object.
java.util.concurrent.Executor to be
used to dispatch a request.Executorvoid setExecutor(java.util.concurrent.Executor executor)
Endpoint instance.
The executor is used to dispatch an incoming request to
the implementor object.
If this Endpoint is published using the
publish(Object) method and the specified server
context defines its own threading behavior, the executor
may be ignored.
executor - The java.util.concurrent.Executor
to be used to dispatch a request.
java.lang.SecurityException - If the instance does not support
setting an executor for security reasons (e.g. the
necessary permissions are missing).Executorjava.util.Map<java.lang.String,java.lang.Object> getProperties()
Endpoint instance.
void setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
Endpoint instance.
properties - The property bag associated with
this instance.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||