Class WSServletDelegate

java.lang.Object
com.sun.xml.ws.transport.http.servlet.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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    All ServletAdapters that are deployed in the current web application.
  • Constructor Summary

    Constructors
    Constructor
    Description
    WSServletDelegate(List<ServletAdapter> adapters, jakarta.servlet.ServletContext context)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    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.

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • WSServletDelegate

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

    • 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
      context - the Servlet context object
      Throws:
      jakarta.servlet.ServletException - for errors
    • 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
      Parameters:
      request - the HTTP request object
      response - the HTTP response object
      context - the Servlet context object
      Throws:
      jakarta.servlet.ServletException - for errors
    • 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
      Parameters:
      request - the HTTP request object
      response - the HTTP response object
      context - the Servlet context object
      Throws:
      jakarta.servlet.ServletException - for errors
    • getTarget

      protected ServletAdapter getTarget(jakarta.servlet.http.HttpServletRequest request)
      Determines which ServletAdapter serves the given request.
      Parameters:
      request - request
      Returns:
      the adapter
    • getLocalizerFor

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