Class ServletAdapter

    • Method Detail

      • getServletContext

        public jakarta.servlet.ServletContext getServletContext()
      • getName

        public String getName()
        Gets the name of the endpoint as given in the sun-jaxws.xml deployment descriptor.
      • getAddress

        @NotNull
        public URI getAddress()
        Description copied from interface: BoundEndpoint
        The address of the bound endpoint.

        For example, if this endpoint is bound to a servlet endpoint "http://foobar/myapp/myservice", then this method should return that address.

        Specified by:
        getAddress in interface BoundEndpoint
        Returns:
        address of the endpoint
      • getAddress

        @NotNull
        public URI getAddress​(String baseAddress)
        Description copied from interface: BoundEndpoint
        The address of the bound endpoint using the base address. Often times, baseAddress is only avaialble during the request.

        If the endpoint is bound to a servlet endpoint, the base address won't include the url-pattern, so the base address would be "http://host:port/context". This method would include url-pattern for the endpoint and return that address for e.g. "http://host:port/context/url-pattern"

        Specified by:
        getAddress in interface BoundEndpoint
        Parameters:
        baseAddress - that is used in computing the full address
        Returns:
        address of the endpoint
      • getPortName

        public QName getPortName()
        Convenient method to return a port name from WSEndpoint.
        Returns:
        null if WSEndpoint isn't tied to any paritcular port.
      • handle

        public void handle​(jakarta.servlet.ServletContext context,
                           jakarta.servlet.http.HttpServletRequest request,
                           jakarta.servlet.http.HttpServletResponse response)
                    throws IOException
        Version of HttpAdapter.handle(WSHTTPConnection) that takes convenient parameters for servlet.
        Parameters:
        context - Servlet Context
        request - Servlet Request
        response - Servlet Response
        Throws:
        IOException - when there is i/o error in handling request
      • createConnection

        protected WSHTTPConnection createConnection​(jakarta.servlet.ServletContext context,
                                                    jakarta.servlet.http.HttpServletRequest request,
                                                    jakarta.servlet.http.HttpServletResponse response)
      • invokeAsync

        public void invokeAsync​(jakarta.servlet.ServletContext context,
                                jakarta.servlet.http.HttpServletRequest request,
                                jakarta.servlet.http.HttpServletResponse response,
                                HttpAdapter.CompletionCallback callback)
                         throws IOException
        Version of HttpAdapter.handle(WSHTTPConnection) that takes convenient parameters for servlet. Based on the async capabilities of the request and the application processing it, the method may run in asynchronous mode. When run in async mode, this method returns immediately. The response is delayed until the application is ready with the response or the corresponding asynchronous operation times out. The CompletionCallback is guaranteed to run after response is committed..
        Parameters:
        context - Servlet Context
        request - Servlet Request
        response - Servlet Response
        callback - CompletionCallback
        Throws:
        IOException - when there is i/o error in handling request
      • publishWSDL

        public void publishWSDL​(jakarta.servlet.ServletContext context,
                                jakarta.servlet.http.HttpServletRequest request,
                                jakarta.servlet.http.HttpServletResponse response)
                         throws IOException
        Parameters:
        context - Servlet Context
        request - Servlet Request
        response - Servlet Response
        Throws:
        IOException - when there is i/o error in handling request