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

    Constructors
    Constructor
    Description
    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.
    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 Type
    Method
    Description
    long
     
    boolean
     
    void
    service(org.glassfish.grizzly.http.server.Request req, org.glassfish.grizzly.http.server.Response res)
    Main entry point of the HttpHandler to service a request
    void
    setAsyncTimeout(long timeout, TimeUnit timeUnit)
     
    void

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • 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 Details

    • start

      public void start()
      Overrides:
      start in class org.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 Exception
      Main entry point of the HttpHandler to service a request
      Specified by:
      service in class org.glassfish.grizzly.http.server.HttpHandler
      Parameters:
      req - incoming HTTP request
      res - HTTP response to prepare
      Throws:
      Exception