java.lang.Object
com.sun.xml.ws.transport.http.servlet.WSServletDelegate
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
Modifier and TypeFieldDescriptionfinal List<ServletAdapter>
AllServletAdapter
s that are deployed in the current web application. -
Constructor Summary
ConstructorDescriptionWSServletDelegate
(List<ServletAdapter> adapters, jakarta.servlet.ServletContext context) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 endpointsvoid
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 theServletAdapter
created by theWSServletContextListener
and creating aServletConnectionImpl
.void
doPut
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.ServletContext context) Handles HTTP PUT for XML/HTTP binding based endpointsprotected com.sun.istack.localization.Localizer
getLocalizerFor
(jakarta.servlet.ServletRequest request) protected ServletAdapter
getTarget
(jakarta.servlet.http.HttpServletRequest request) Determines whichServletAdapter
serves the given request.
-
Field Details
-
adapters
AllServletAdapter
s that are deployed in the current web application.
-
-
Constructor Details
-
WSServletDelegate
-
-
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 theServletAdapter
created by theWSServletContextListener
and creating aServletConnectionImpl
.- Parameters:
request
- the HTTP request objectresponse
- the HTTP response objectcontext
- 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 objectresponse
- the HTTP response objectcontext
- 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 objectresponse
- the HTTP response objectcontext
- the Servlet context object- Throws:
jakarta.servlet.ServletException
- for errors
-
getTarget
Determines whichServletAdapter
serves the given request.- Parameters:
request
- request- Returns:
- the adapter
-
getLocalizerFor
protected com.sun.istack.localization.Localizer getLocalizerFor(jakarta.servlet.ServletRequest request)
-