HttpHandler which is invoked to handle requests
destined for that path on the associated container.
Container provides the implementation for this and it matches web service requests to corresponding HttpContext objects.
| Modifier and Type | Field and Description |
|---|---|
| protected HttpHandler | handler
The handler to set for this context. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Object | Returns: attribute valueattribute name name)Returns an attribute value for container's configuration and other data that can be used by jax-ws runtime. |
| public abstract Set | Returns: set of all attribute namesReturns all attribute names for container's configuration and other data that can be used by jax-ws runtime. |
| public abstract String | |
| public void | setHandler(HttpHandler
the handler to set for this context handler)JAX-WS runtime sets its handler during
|
| handler | back to summary |
|---|---|
| protected HttpHandler handler The handler to set for this context. | |
| HttpContext | back to summary |
|---|---|
| public HttpContext() | |
| getAttribute | back to summary |
|---|---|
| public abstract Object getAttribute(String name) Returns an attribute value for container's configuration and other data that can be used by jax-ws runtime. | |
| getAttributeNames | back to summary |
|---|---|
| public abstract Set Returns all attribute names for container's configuration and other data that can be used by jax-ws runtime. | |
| getPath | back to summary |
|---|---|
| public abstract String getPath() Returns the path for this context. This path uniquely identifies an endpoint inside an application and the path is relative to application's context path. Container should give this path based on how it matches request URIs to this HttpContext object. For servlet container, this is typically a url-pattern for an endpoint. Endpoint's address for this context can be computed as follows:
HttpExchange exch = ...;
String endpointAddress =
exch.getScheme() + "://"
+ exch.getLocalAddress().getHostName()
+ ":" + exch.getLocalAddress().getPort()
+ exch.getContextPath() + getPath();
| |
| setHandler | back to summary |
|---|---|
| public void setHandler(HttpHandler handler) JAX-WS runtime sets its handler during
| |