Package org.glassfish.grizzly.jaxws
Class JaxwsHandler
- java.lang.Object
-
- org.glassfish.grizzly.http.server.HttpHandler
-
- org.glassfish.grizzly.jaxws.JaxwsHandler
-
public class JaxwsHandler extends org.glassfish.grizzly.http.server.HttpHandlerJAX-WSHttpHandlerimplementation.- Author:
- Alexey Stashok, JAX-WS team
-
-
Constructor Summary
Constructors Constructor Description JaxwsHandler(com.sun.xml.ws.api.server.WSEndpoint endpoint)Create JaxwsHandler based onWSEndpoint, which will operate in synchronous mode.JaxwsHandler(com.sun.xml.ws.api.server.WSEndpoint endpoint, boolean isAsync)Create JaxwsHandler based onWSEndpoint, which will operate in synchronous mode.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetAsyncTimeout(TimeUnit timeUnit)booleanisAsync()voidservice(org.glassfish.grizzly.http.server.Request req, org.glassfish.grizzly.http.server.Response res)Main entry point of theHttpHandlerto service a requestvoidsetAsyncTimeout(long timeout, TimeUnit timeUnit)voidstart()-
Methods inherited from class org.glassfish.grizzly.http.server.HttpHandler
destroy, getErrorPageGenerator, getName, getRequestExecutorProvider, getRequestURIEncoding, getSessionCookieName, getSessionManager, isAllowCustomStatusMessage, isAllowEncodedSlash, sendAcknowledgment, setAllowCustomStatusMessage, setAllowEncodedSlash, setDecodeUrl, setDispatcherHelper, setRequestURIEncoding, setRequestURIEncoding, updatePaths
-
-
-
-
Constructor Detail
-
JaxwsHandler
public JaxwsHandler(Object implementor)
Create JaxwsHandler based on WebService implementation class, which will operate in synchronous mode.- Parameters:
implementor- WebService implementation.
-
JaxwsHandler
public JaxwsHandler(Object implementor, boolean isAsync)
Create JaxwsHandler based on WebService implementation class.- Parameters:
implementor- WebService implementation class.isAsync- if true the handler will execute WebService in asynchronous mode, otherwise synchronous.
-
JaxwsHandler
public JaxwsHandler(Object implementor, boolean isAsync, List<Source> metadata, Map<String,Object> properties)
Create JaxwsHandler based on WebService implementation class.- Parameters:
implementor- WebService implementation class.isAsync- if true the handler will execute WebService in asynchronous mode, otherwise synchronous.metadata- Other documents that becomeSDDocuments. Can be null.properties- extra properties to be used, when constructing WebServiceWSEndpoint.
-
JaxwsHandler
public JaxwsHandler(com.sun.xml.ws.api.server.WSEndpoint endpoint)
Create JaxwsHandler based onWSEndpoint, which will operate in synchronous mode.- Parameters:
endpoint-WSEndpoint.
-
JaxwsHandler
public JaxwsHandler(com.sun.xml.ws.api.server.WSEndpoint endpoint, boolean isAsync)Create JaxwsHandler based onWSEndpoint, which will operate in synchronous mode.- Parameters:
endpoint-WSEndpoint.isAsync- if true the handler will execute WebService in asynchronous mode, otherwise synchronous.
-
-
Method Detail
-
start
public void start()
- Overrides:
startin classorg.glassfish.grizzly.http.server.HttpHandler
-
isAsync
public boolean isAsync()
-
setAsyncTimeout
public void setAsyncTimeout(long timeout, TimeUnit timeUnit)
-
getAsyncTimeout
public long getAsyncTimeout(TimeUnit timeUnit)
-
service
public void service(org.glassfish.grizzly.http.server.Request req, org.glassfish.grizzly.http.server.Response res) throws ExceptionMain entry point of theHttpHandlerto service a request- Specified by:
servicein classorg.glassfish.grizzly.http.server.HttpHandler- Parameters:
req- incoming HTTP requestres- HTTP response to prepare- Throws:
Exception
-
-