Class WSServletDelegate
java.lang.Object
com.sun.xml.ws.transport.httpspi.servlet.WSServletDelegate
Called by
WSSPIServlet to choose EndpointAdapter
and sends a request to it.
One instance of this object is created, and then shared across
WSSPIServlet instances (the container might deploy many of them,
depending on how the user writes web.xml.)
- Author:
- Jitendra Kotamraju
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal List<EndpointAdapter>AllEndpointAdapters 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) voiddoPost(HttpServletRequest request, HttpServletResponse response, ServletContext context) processes web service requests by finding theEndpointAdaptercreated by theWSSPIContextListenervoiddoPut(HttpServletRequest request, HttpServletResponse response, ServletContext context) Handles HTTP PUT for XML/HTTP binding based endpointsprotected EndpointAdaptergetTarget(HttpServletRequest request) Determines whichEndpointAdapterserves the given request.
-
Field Details
-
adapters
AllEndpointAdapters that are deployed in the current web application.
-
-
Constructor Details
-
WSServletDelegate
-
-
Method Details
-
destroy
public void destroy() -
doGet
-
doPost
public void doPost(HttpServletRequest request, HttpServletResponse response, ServletContext context) processes web service requests by finding theEndpointAdaptercreated by theWSSPIContextListener- Parameters:
request- the HTTP request objectresponse- the HTTP response objectcontext- servlet context
-
doPut
Handles HTTP PUT for XML/HTTP binding based endpoints- Parameters:
request- the HTTP request objectresponse- the HTTP response objectcontext- servlet context
-
doDelete
public void doDelete(HttpServletRequest request, HttpServletResponse response, ServletContext context) Handles HTTP DELETE for XML/HTTP binding based endpoints- Parameters:
request- the HTTP request objectresponse- the HTTP response objectcontext- servlet context
-
getTarget
Determines whichEndpointAdapterserves the given request.- Parameters:
request- the HTTP request object
-