Class HttpServletDispatcher
- java.lang.Object
-
- jakarta.servlet.GenericServlet
-
- jakarta.servlet.http.HttpServlet
-
- org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher
-
- All Implemented Interfaces:
Servlet,ServletConfig,Serializable,HttpRequestFactory,HttpResponseFactory
- Direct Known Subclasses:
HttpServlet30Dispatcher
public class HttpServletDispatcher extends HttpServlet implements HttpRequestFactory, HttpResponseFactory
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ServletContainerDispatcherservletContainerDispatcher-
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD
-
-
Constructor Summary
Constructors Constructor Description HttpServletDispatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HttpRequestcreateHttpRequest(String httpMethod, HttpServletRequest request, ResteasyHttpHeaders headers, ResteasyUriInfo uriInfo, HttpResponse theResponse, HttpServletResponse response)HttpRequestcreateResteasyHttpRequest(String httpMethod, HttpServletRequest request, ResteasyHttpHeaders headers, ResteasyUriInfo uriInfo, HttpResponse theResponse, HttpServletResponse response)HttpResponsecreateResteasyHttpResponse(HttpServletResponse response, HttpServletRequest request)protected HttpResponsecreateServletResponse(HttpServletResponse response, HttpServletRequest request)voiddestroy()Called by the servlet container to indicate to a servlet that the servlet is being taken out of service.DispatchergetDispatcher()voidinit(ServletConfig servletConfig)Called by the servlet container to indicate to a servlet that the servlet is being placed into service.protected voidservice(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)Receives standard HTTP requests from the publicservicemethod and dispatches them to thedoXXX methods defined in this class.voidservice(String httpMethod, HttpServletRequest request, HttpServletResponse response)-
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
-
Methods inherited from class jakarta.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
-
-
-
Field Detail
-
servletContainerDispatcher
protected ServletContainerDispatcher servletContainerDispatcher
-
-
Method Detail
-
getDispatcher
public Dispatcher getDispatcher()
-
init
public void init(ServletConfig servletConfig) throws ServletException
Description copied from class:GenericServletCalled by the servlet container to indicate to a servlet that the servlet is being placed into service. SeeServlet.init(jakarta.servlet.ServletConfig).This implementation stores the
ServletConfigobject it receives from the servlet container for later use. When overriding this form of the method, callsuper.init(config).- Specified by:
initin interfaceServlet- Overrides:
initin classHttpServlet- Parameters:
servletConfig- theServletConfigobject that contains configuration information for this servlet- Throws:
ServletException- if an exception occurs that interrupts the servlet's normal operation- See Also:
UnavailableException
-
destroy
public void destroy()
Description copied from class:GenericServletCalled by the servlet container to indicate to a servlet that the servlet is being taken out of service. SeeServlet.destroy().- Specified by:
destroyin interfaceServlet- Overrides:
destroyin classGenericServlet
-
service
protected void service(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException
Description copied from class:HttpServletReceives standard HTTP requests from the publicservicemethod and dispatches them to thedoXXX methods defined in this class. This method is an HTTP-specific version of theServlet.service(jakarta.servlet.ServletRequest, jakarta.servlet.ServletResponse)method. There's no need to override this method.- Overrides:
servicein classHttpServlet- Parameters:
httpServletRequest- theHttpServletRequestobject that contains the request the client made of the servlethttpServletResponse- theHttpServletResponseobject that contains the response the servlet returns to the client- Throws:
ServletException- if the HTTP request cannot be handledIOException- if an input or output error occurs while the servlet is handling the HTTP request- See Also:
Servlet.service(jakarta.servlet.ServletRequest, jakarta.servlet.ServletResponse)
-
service
public void service(String httpMethod, HttpServletRequest request, HttpServletResponse response) throws IOException
- Throws:
IOException
-
createResteasyHttpRequest
public HttpRequest createResteasyHttpRequest(String httpMethod, HttpServletRequest request, ResteasyHttpHeaders headers, ResteasyUriInfo uriInfo, HttpResponse theResponse, HttpServletResponse response)
- Specified by:
createResteasyHttpRequestin interfaceHttpRequestFactory
-
createResteasyHttpResponse
public HttpResponse createResteasyHttpResponse(HttpServletResponse response, HttpServletRequest request)
- Specified by:
createResteasyHttpResponsein interfaceHttpResponseFactory
-
createHttpRequest
protected HttpRequest createHttpRequest(String httpMethod, HttpServletRequest request, ResteasyHttpHeaders headers, ResteasyUriInfo uriInfo, HttpResponse theResponse, HttpServletResponse response)
-
createServletResponse
protected HttpResponse createServletResponse(HttpServletResponse response, HttpServletRequest request)
-
-