Class 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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getAsyncTimeout​(TimeUnit timeUnit)  
      boolean isAsync()  
      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 start()
      • 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 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()
        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