com.sun.xml.ws.transport.http.server
Class WSHttpHandler
java.lang.Object
com.sun.xml.ws.transport.http.server.WSHttpHandler
- All Implemented Interfaces:
- com.sun.net.httpserver.HttpHandler
final class WSHttpHandler
- extends Object
- implements com.sun.net.httpserver.HttpHandler
HttpHandler
implementation that serves the actual request.
Nested Class Summary |
(package private) class |
WSHttpHandler.HttpHandlerRunnable
Wrapping the processing of request in a Runnable so that it can be
executed in Executor. |
Method Summary |
(package private) static String |
getRequestAddress(com.sun.net.httpserver.HttpExchange msg)
Computes the Endpoint's address from the request. |
void |
handle(com.sun.net.httpserver.HttpExchange msg)
Called by HttpServer when there is a matching request for the context |
void |
handleExchange(com.sun.net.httpserver.HttpExchange msg)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WSHttpHandler
public WSHttpHandler(@NotNull
HttpAdapter adapter,
@Nullable
Executor executor)
handle
public void handle(com.sun.net.httpserver.HttpExchange msg)
- Called by HttpServer when there is a matching request for the context
- Specified by:
handle
in interface com.sun.net.httpserver.HttpHandler
handleExchange
public void handleExchange(com.sun.net.httpserver.HttpExchange msg)
throws IOException
- Throws:
IOException
getRequestAddress
@NotNull
static String getRequestAddress(com.sun.net.httpserver.HttpExchange msg)
- Computes the Endpoint's address from the request. Use "Host" header
so that it has correct address(IP address or someother hostname) through
which the application reached the endpoint.
- Returns:
- a string like "http://foo.bar:1234/abc/def"