< prev index next >

src/java.xml.ws/share/classes/javax/xml/ws/spi/http/package-info.java

Print this page

        

*** 45,55 **** callback to handle incoming requests or {@link javax.xml.ws.spi.http.HttpExchange} objects. The HttpExchange object encapsulates a HTTP request and a response. </ol> ! <pre> Container JAX-WS runtime --------- -------------- 1. Creates Invoker1, ... InvokerN 2. Provider.createEndpoint(...) --> 3. creates Endpoint1 configures Endpoint1 --- 45,55 ---- callback to handle incoming requests or {@link javax.xml.ws.spi.http.HttpExchange} objects. The HttpExchange object encapsulates a HTTP request and a response. </ol> ! <pre>{@literal Container JAX-WS runtime --------- -------------- 1. Creates Invoker1, ... InvokerN 2. Provider.createEndpoint(...) --> 3. creates Endpoint1 configures Endpoint1
*** 62,91 **** HttpContext1.setHandler(HttpHandler1) ... 10. EndpointN.publish(HttpContextN) --> 11. creates HttpHandlerN HttpContextN.setHandler(HttpHandlerN) ! </pre> The request processing is done as below(for every request): ! <pre> Container JAX-WS runtime --------- -------------- 1. Creates a HttpExchange 2. Gets handler from HttpContext 3. HttpHandler.handle(HttpExchange) --> 4. reads request from HttpExchange <-- 5. Calls Invoker 6. Invokes the actual instance 7. Writes the response to HttpExchange ! </pre> <p> The portable undeployment is done as below: <pre> Container --------- ! 1. @preDestroy on instances 2. Endpoint1.stop() ... 3. EndpointN.stop() </pre> --- 62,91 ---- HttpContext1.setHandler(HttpHandler1) ... 10. EndpointN.publish(HttpContextN) --> 11. creates HttpHandlerN HttpContextN.setHandler(HttpHandlerN) ! }</pre> The request processing is done as below(for every request): ! <pre>{@literal Container JAX-WS runtime --------- -------------- 1. Creates a HttpExchange 2. Gets handler from HttpContext 3. HttpHandler.handle(HttpExchange) --> 4. reads request from HttpExchange <-- 5. Calls Invoker 6. Invokes the actual instance 7. Writes the response to HttpExchange ! }</pre> <p> The portable undeployment is done as below: <pre> Container --------- ! 1. {@literal @}preDestroy on instances 2. Endpoint1.stop() ... 3. EndpointN.stop() </pre>
< prev index next >