public abstract class HttpContext extends Object
HttpHandler
是用来处理请求发送给路径上的关联容器的映射。
集装箱这种提供实现和它匹配的Web服务请求相应的HttpContext对象。
Modifier and Type | Field and Description |
---|---|
protected HttpHandler |
handler |
Constructor and Description |
---|
HttpContext() |
Modifier and Type | Method and Description |
---|---|
abstract Object |
getAttribute(String name)
返回容器的配置和其他数据,可以通过使用jax WS运行时属性值。
|
abstract Set<String> |
getAttributeNames()
返回容器的配置和其他数据,可以通过使用jax WS运行时所有的属性名称。
|
abstract String |
getPath()
返回此上下文的路径。
|
void |
setHandler(HttpHandler handler)
JAX-WS运行时设置处理
Endpoint.publish(HttpContext) 处理HTTP请求上下文中。
|
protected HttpHandler handler
public void setHandler(HttpHandler handler)
Endpoint.publish(HttpContext)
处理HTTP请求上下文中。容器或它的扩展使用此处理程序处理请求。
handler
-处理设置为背景
public abstract String getPath()
Servlet容器,这通常是一个端点的URL模式。
此上下文的端点的地址可以计算如下:
httpexchange交流=…;字符串的EndpointAddress =交流。getscheme() +“/”+交换。getlocaladdress()。gethostname()+“:”+交换。getlocaladdress()。getport()+ + getpath() getcontextpath()交流;
public abstract Object getAttribute(String name)
name
属性名称
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.