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.HttpHandler
JAX-WS
HttpHandler implementation.- Author:
- Alexey Stashok, JAX-WS team
-
Constructor Summary
ConstructorsConstructorDescriptionJaxwsHandler(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
Modifier and TypeMethodDescriptionlonggetAsyncTimeout(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 Details
-
JaxwsHandler
Create JaxwsHandler based on WebService implementation class, which will operate in synchronous mode.- Parameters:
implementor- WebService implementation.
-
JaxwsHandler
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 Details
-
start
public void start()- Overrides:
startin classorg.glassfish.grizzly.http.server.HttpHandler
-
isAsync
public boolean isAsync() -
setAsyncTimeout
-
getAsyncTimeout
-
service
public void service(org.glassfish.grizzly.http.server.Request req, org.glassfish.grizzly.http.server.Response res) throws Exception Main 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
-