org.glassfish.grizzly.jaxws
Class JaxwsHandler

java.lang.Object
  extended by org.glassfish.grizzly.http.server.HttpHandler
      extended by org.glassfish.grizzly.jaxws.JaxwsHandler

public class JaxwsHandler
extends HttpHandler

JAX-WS HttpHandler implementation.

Author:
Alexey Stashok, JAX-WS team

Constructor Summary
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.
 
Method Summary
 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().
 
Methods inherited from class org.glassfish.grizzly.http.server.HttpHandler
customizedErrorPage, destroy, doHandle, getName, getRequestURIEncoding, isAllowCustomStatusMessage, isAllowEncodedSlash, sendAcknowledgment, setAllowCustomStatusMessage, setAllowEncodedSlash, setDecodeUrl, setDispatcherHelper, setRequestURIEncoding, setRequestURIEncoding, updatePaths
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 become SDDocuments. Can be null.
properties - extra properties to be used, when constructing WebService WSEndpoint.

JaxwsHandler

public JaxwsHandler(com.sun.xml.ws.api.server.WSEndpoint endpoint)
Create JaxwsHandler based on WSEndpoint, 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 on WSEndpoint, 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()
Called when the HttpHandler's container is started by invoking HttpServer.start(). By default, it does nothing.

Overrides:
start in class HttpHandler

isAsync

public boolean isAsync()

setAsyncTimeout

public void setAsyncTimeout(long timeout,
                            TimeUnit timeUnit)

getAsyncTimeout

public long getAsyncTimeout(TimeUnit timeUnit)

service

public void service(Request req,
                    Response res)
             throws Exception
Main entry point of the HttpHandler to service a request

Specified by:
service in class HttpHandler
Parameters:
req - incoming HTTP request
res - HTTP response to prepare
Throws:
Exception


Copyright © 2013 Oracle Corporation. All Rights Reserved.