Class WSServletDelegate


  • public class WSServletDelegate
    extends Object
    Called by WSServlet to choose HttpAdapter and sends a request to it.

    One instance of this object is created, and then shared across WSServlet instances (the container might deploy many of them, depending on how the user writes web.xml.)

    Author:
    WS Development Team
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()  
      void doDelete​(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.ServletContext context)
      Handles HTTP DELETE for XML/HTTP binding based endpoints
      void doGet​(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.ServletContext context)  
      void doHead​(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.ServletContext context)  
      void doPost​(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.ServletContext context)
      processes web service requests by finding the ServletAdapter created by the WSServletContextListener and creating a ServletConnectionImpl.
      void doPut​(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.ServletContext context)
      Handles HTTP PUT for XML/HTTP binding based endpoints
      protected com.sun.istack.localization.Localizer getLocalizerFor​(jakarta.servlet.ServletRequest request)  
      protected ServletAdapter getTarget​(jakarta.servlet.http.HttpServletRequest request)
      Determines which ServletAdapter serves the given request.
    • Constructor Detail

      • WSServletDelegate

        public WSServletDelegate​(List<ServletAdapter> adapters,
                                 jakarta.servlet.ServletContext context)
    • Method Detail

      • destroy

        public void destroy()
      • doHead

        public void doHead​(jakarta.servlet.http.HttpServletRequest request,
                           jakarta.servlet.http.HttpServletResponse response,
                           jakarta.servlet.ServletContext context)
                    throws jakarta.servlet.ServletException
        Throws:
        jakarta.servlet.ServletException
      • doGet

        public void doGet​(jakarta.servlet.http.HttpServletRequest request,
                          jakarta.servlet.http.HttpServletResponse response,
                          jakarta.servlet.ServletContext context)
                   throws jakarta.servlet.ServletException
        Throws:
        jakarta.servlet.ServletException
      • doPost

        public void doPost​(jakarta.servlet.http.HttpServletRequest request,
                           jakarta.servlet.http.HttpServletResponse response,
                           jakarta.servlet.ServletContext context)
                    throws jakarta.servlet.ServletException
        processes web service requests by finding the ServletAdapter created by the WSServletContextListener and creating a ServletConnectionImpl.
        Parameters:
        request - the HTTP request object
        response - the HTTP response object
        Throws:
        jakarta.servlet.ServletException
      • doPut

        public void doPut​(jakarta.servlet.http.HttpServletRequest request,
                          jakarta.servlet.http.HttpServletResponse response,
                          jakarta.servlet.ServletContext context)
                   throws jakarta.servlet.ServletException
        Handles HTTP PUT for XML/HTTP binding based endpoints
        Throws:
        jakarta.servlet.ServletException
      • doDelete

        public void doDelete​(jakarta.servlet.http.HttpServletRequest request,
                             jakarta.servlet.http.HttpServletResponse response,
                             jakarta.servlet.ServletContext context)
                      throws jakarta.servlet.ServletException
        Handles HTTP DELETE for XML/HTTP binding based endpoints
        Throws:
        jakarta.servlet.ServletException
      • getTarget

        protected ServletAdapter getTarget​(jakarta.servlet.http.HttpServletRequest request)
        Determines which ServletAdapter serves the given request.
      • getLocalizerFor

        protected com.sun.istack.localization.Localizer getLocalizerFor​(jakarta.servlet.ServletRequest request)