Class WSServletDelegate
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
FieldsModifier and TypeFieldDescriptionfinal List<ServletAdapter> AllServletAdapters that are deployed in the current web application. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()voiddoDelete(HttpServletRequest request, HttpServletResponse response, ServletContext context) Handles HTTP DELETE for XML/HTTP binding based endpointsvoiddoGet(HttpServletRequest request, HttpServletResponse response, ServletContext context) voiddoHead(HttpServletRequest request, HttpServletResponse response, ServletContext context) voiddoPost(HttpServletRequest request, HttpServletResponse response, ServletContext context) processes web service requests by finding theServletAdaptercreated by theWSServletContextListenerand creating aServletConnectionImpl.voiddoPut(HttpServletRequest request, HttpServletResponse response, ServletContext context) Handles HTTP PUT for XML/HTTP binding based endpointsprotected LocalizergetLocalizerFor(ServletRequest request) protected ServletAdaptergetTarget(HttpServletRequest request) Determines whichServletAdapterserves the given request.
-
Field Details
-
adapters
AllServletAdapters that are deployed in the current web application.
-
-
Constructor Details
-
WSServletDelegate
-
-
Method Details
-
destroy
public void destroy() -
doHead
public void doHead(HttpServletRequest request, HttpServletResponse response, ServletContext context) throws ServletException - Throws:
ServletException
-
doGet
public void doGet(HttpServletRequest request, HttpServletResponse response, ServletContext context) throws ServletException - Throws:
ServletException
-
doPost
public void doPost(HttpServletRequest request, HttpServletResponse response, ServletContext context) throws ServletException processes web service requests by finding theServletAdaptercreated by theWSServletContextListenerand creating aServletConnectionImpl.- Parameters:
request- the HTTP request objectresponse- the HTTP response objectcontext- the Servlet context object- Throws:
ServletException- for errors
-
doPut
public void doPut(HttpServletRequest request, HttpServletResponse response, ServletContext context) throws 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:
ServletException- for errors
-
doDelete
public void doDelete(HttpServletRequest request, HttpServletResponse response, ServletContext context) throws 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:
ServletException- for errors
-
getTarget
Determines whichServletAdapterserves the given request.- Parameters:
request- request- Returns:
- the adapter
-
getLocalizerFor
-