Package org.apache.catalina.servlets
Class InvokerServlet
- java.lang.Object
-
- jakarta.servlet.GenericServlet
-
- jakarta.servlet.http.HttpServlet
-
- org.apache.catalina.servlets.InvokerServlet
-
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable,ContainerServlet
public final class InvokerServlet extends jakarta.servlet.http.HttpServlet implements ContainerServlet
The default servlet-invoking servlet for most web applications, used to serve requests to servlets that have not been registered in the web application deployment descriptor.- Version:
- $Revision: 1.3 $ $Date: 2005/12/08 01:27:56 $
- Author:
- Craig R. McClanahan
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ResourceBundlerb
-
Constructor Summary
Constructors Constructor Description InvokerServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Finalize this servlet.voiddoGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)Process a GET request for the specified resource.voiddoHead(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)Process a HEAD request for the specified resource.voiddoPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)Process a POST request for the specified resource.WrappergetWrapper()Return the Wrapper with which we are associated.voidinit()Initialize this servlet.voidserveRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)Serve the specified request, creating the corresponding response.voidsetWrapper(Wrapper wrapper)Set the Wrapper with which we are associated.-
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doOptions, doPut, doTrace, getLastModified, init, service, service
-
-
-
-
Field Detail
-
rb
public static final ResourceBundle rb
-
-
Method Detail
-
getWrapper
public Wrapper getWrapper()
Return the Wrapper with which we are associated.- Specified by:
getWrapperin interfaceContainerServlet
-
setWrapper
public void setWrapper(Wrapper wrapper)
Set the Wrapper with which we are associated.- Specified by:
setWrapperin interfaceContainerServlet- Parameters:
wrapper- The new wrapper
-
destroy
public void destroy()
Finalize this servlet.- Specified by:
destroyin interfacejakarta.servlet.Servlet- Overrides:
destroyin classjakarta.servlet.GenericServlet
-
doGet
public void doGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletExceptionProcess a GET request for the specified resource.- Overrides:
doGetin classjakarta.servlet.http.HttpServlet- Parameters:
request- The servlet request we are processingresponse- The servlet response we are creating- Throws:
IOException- if an input/output error occursjakarta.servlet.ServletException- if a servlet-specified error occurs
-
doHead
public void doHead(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletExceptionProcess a HEAD request for the specified resource.- Overrides:
doHeadin classjakarta.servlet.http.HttpServlet- Parameters:
request- The servlet request we are processingresponse- The servlet response we are creating- Throws:
IOException- if an input/output error occursjakarta.servlet.ServletException- if a servlet-specified error occurs
-
doPost
public void doPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletExceptionProcess a POST request for the specified resource.- Overrides:
doPostin classjakarta.servlet.http.HttpServlet- Parameters:
request- The servlet request we are processingresponse- The servlet response we are creating- Throws:
IOException- if an input/output error occursjakarta.servlet.ServletException- if a servlet-specified error occurs
-
init
public void init() throws jakarta.servlet.ServletExceptionInitialize this servlet.- Overrides:
initin classjakarta.servlet.GenericServlet- Throws:
jakarta.servlet.ServletException
-
serveRequest
public void serveRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletExceptionServe the specified request, creating the corresponding response. After the first time a particular servlet class is requested, it will be served directly (like any registered servlet) because it will have been registered and mapped in our associated Context.Synchronize to avoid race conditions when multiple requests try to initialize the same servlet at the same time
- Parameters:
request- The servlet request we are processingresponse- The servlet response we are creating- Throws:
IOException- if an input/output error occursjakarta.servlet.ServletException- if a servlet-specified error occurs
-
-