public class JaxwsHandler extends HttpHandler
HttpHandler
implementation.Constructor and Description |
---|
JaxwsHandler(Object implementor)
Create JaxwsHandler based on WebService implementation class, which will
operate in synchronous mode.
|
JaxwsHandler(Object implementor,
boolean isAsync)
Create JaxwsHandler based on WebService implementation class.
|
JaxwsHandler(Object implementor,
boolean isAsync,
List<Source> metadata,
Map<String,Object> properties)
Create JaxwsHandler based on WebService implementation class.
|
JaxwsHandler(com.sun.xml.ws.api.server.WSEndpoint endpoint)
Create JaxwsHandler based on
WSEndpoint , which will
operate in synchronous mode. |
JaxwsHandler(com.sun.xml.ws.api.server.WSEndpoint endpoint,
boolean isAsync)
Create JaxwsHandler based on
WSEndpoint , which will
operate in synchronous mode. |
Modifier and Type | Method and Description |
---|---|
long |
getAsyncTimeout(TimeUnit timeUnit) |
boolean |
isAsync() |
void |
service(Request req,
Response res)
Main entry point of the
HttpHandler to service a request |
void |
setAsyncTimeout(long timeout,
TimeUnit timeUnit) |
void |
start()
Called when the
HttpHandler 's
container is started by invoking HttpServer.start() . |
destroy, getErrorPageGenerator, getName, getRequestExecutorProvider, getRequestURIEncoding, getSessionCookieName, getSessionManager, isAllowCustomStatusMessage, isAllowEncodedSlash, sendAcknowledgment, setAllowCustomStatusMessage, setAllowEncodedSlash, setDecodeUrl, setDispatcherHelper, setRequestURIEncoding, setRequestURIEncoding, updatePaths
public JaxwsHandler(Object implementor)
implementor
- WebService implementation.public JaxwsHandler(Object implementor, boolean isAsync)
implementor
- WebService implementation class.isAsync
- if true the handler will execute WebService in
asynchronous mode, otherwise synchronous.public JaxwsHandler(Object implementor, boolean isAsync, List<Source> metadata, Map<String,Object> properties)
implementor
- WebService implementation class.isAsync
- if true the handler will execute WebService in
asynchronous mode, otherwise synchronous.metadata
- Other documents that become SDDocument
s. Can be null.properties
- extra properties to be used, when constructing WebService WSEndpoint
.public JaxwsHandler(com.sun.xml.ws.api.server.WSEndpoint endpoint)
WSEndpoint
, which will
operate in synchronous mode.endpoint
- WSEndpoint
.public JaxwsHandler(com.sun.xml.ws.api.server.WSEndpoint endpoint, boolean isAsync)
WSEndpoint
, which will
operate in synchronous mode.endpoint
- WSEndpoint
.isAsync
- if true the handler will execute WebService in
asynchronous mode, otherwise synchronous.public void start()
HttpHandler
's
container is started by invoking HttpServer.start()
.
By default, it does nothing.start
in class HttpHandler
public boolean isAsync()
public void setAsyncTimeout(long timeout, TimeUnit timeUnit)
public long getAsyncTimeout(TimeUnit timeUnit)
public void service(Request req, Response res) throws Exception
HttpHandler
to service a requestservice
in class HttpHandler
req
- incoming HTTP requestres
- HTTP response to prepareException
Copyright © 2015 Oracle Corporation. All rights reserved.