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:
-
Field Summary
FieldsFields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected HttpRequestcreateHttpRequest(String httpMethod, HttpServletRequest request, ResteasyHttpHeaders headers, ResteasyUriInfo uriInfo, HttpResponse theResponse, HttpServletResponse response) createResteasyHttpRequest(String httpMethod, HttpServletRequest request, ResteasyHttpHeaders headers, ResteasyUriInfo uriInfo, HttpResponse theResponse, HttpServletResponse response) createResteasyHttpResponse(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.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, serviceMethods inherited from class jakarta.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
servletContainerDispatcher
-
-
Constructor Details
-
HttpServletDispatcher
public HttpServletDispatcher()
-
-
Method Details
-
getDispatcher
-
init
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:
-
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:
-
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)
-