类 | 描述 |
---|---|
HttpContext |
HttpContext代表Web服务的根URI路径之间的一个
HttpHandler 是用来处理请求发送给路径上的关联容器的映射。
|
HttpExchange |
这个类封装了一个HTTP请求的接收,是在一个交易所产生的响应。
|
HttpHandler |
一个处理程序被调用来处理HTTP请求。
|
便携式部署是如下所示:
Endpoint
对象。创建端点对象的必要信息可能来自Web服务部署描述符文件。HttpContext
对象。例如,可以使用一个HttpContext servlet所创建的配置(例如URL模式)的Web服务在servlet容器的情况下。Endpoint.publish(HttpContext)
。在publish(),JAX-WS运行时注册一个HttpHandler
回调处理传入的请求或HttpExchange
对象。的httpexchange对象封装了一个HTTP请求和响应。集装箱JAX-WS运行--------- --------------1。创建invoker1,…invokern2。供应商。createendpoint(…)--> 3。创建endpoint1配置endpoint1…4。供应商。createendpoint(…)--> 5。创建endpointn配置endpointn6。创建和应用7。创建httpcontext1,…httpcontextn8。endpoint1。发布(httpcontext1)--> 9。创建httphandler1httpcontext1 sethandler(httphandler1)。…10。EndpointN。出版(httpcontextn)--> 11。创建httphandlernhttpcontextn sethandler(httphandlern)。请求处理如下(为每个请求):
集装箱JAX-WS运行--------- --------------1。创建一个httpexchange2。从HttpContext获取句柄三.HttpHandler。手柄(httpexchange)--> 4。读取请求HttpExchange< - 5。调用调用6。调用实际实例7。写回应HttpExchange
便携式系统完成如下:
容器---------1。“predestroy实例2。endpoint1。stop()…三.EndpointN。stop()
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.