|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.xml.ws.spi.http.HttpContext
public abstract class HttpContext
HttpContext represents a mapping between the root URI path of a web
service to a 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.
Field Summary | |
---|---|
protected HttpHandler |
handler
|
Constructor Summary | |
---|---|
HttpContext()
|
Method Summary | |
---|---|
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 jax-ws 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 jax-ws runtime. |
abstract java.lang.String |
getPath()
Returns the path for this context. |
void |
setHandler(HttpHandler handler)
JAX-WS runtime sets its handler during Endpoint#publish(HttpContext) to handle
HTTP requests for this context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected HttpHandler handler
Constructor Detail |
---|
public HttpContext()
Method Detail |
---|
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 name
public abstract java.util.Set<java.lang.String> getAttributeNames()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2009, 2010, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 4-June-2010 04:34