public abstract class HttpContext
extends java.lang.Object
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. 
 | 
| Constructor and Description | 
|---|
HttpContext()  | 
| Modifier and Type | Method and Description | 
|---|---|
abstract java.lang.Object | 
getAttribute(java.lang.String name)
Returns an attribute value for container's configuration
 and other data that can be used by Jakarta XML Web Services runtime. 
 | 
abstract java.util.Set<java.lang.String> | 
getAttributeNames()
Returns all attribute names for container's configuration
 and other data that can be used by Jakarta XML Web Services runtime. 
 | 
abstract java.lang.String | 
getPath()
Returns the path for this context. 
 | 
void | 
setHandler(HttpHandler handler)
Jakarta XML Web Services runtime sets its handler during
  
Endpoint.publish(HttpContext) to handle
 HTTP requests for this context. | 
protected HttpHandler handler
public void setHandler(HttpHandler handler)
Endpoint.publish(HttpContext) to handle
 HTTP requests for this context. Container or its extensions
 use this handler to process the requests.handler - the handler to set for this contextpublic abstract java.lang.String getPath()
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();
 public abstract java.lang.Object getAttribute(java.lang.String name)
name - attribute namepublic abstract java.util.Set<java.lang.String> getAttributeNames()