- java.lang.Object
-
- jakarta.servlet.GenericServlet
-
- jakarta.servlet.http.HttpServlet
-
- me.chrisswr1.test.webapp.BaseServlet
-
- me.chrisswr1.test.webapp.MainServlet
-
- All Implemented Interfaces:
Servlet,ServletConfig,Serializable
@WebServlet(description="handles the HTTP request", urlPatterns="/*") public class MainServlet extends BaseServlet
Servlet, which handles allHttpServletRequests on the root path- Since:
- 1.0.0
- Version:
- 3.0.0
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD
-
-
Constructor Summary
Constructors Constructor Description MainServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoRequest(@Nullable HttpServletRequest request, @Nullable HttpServletResponse response)Handles a request.-
Methods inherited from class me.chrisswr1.test.webapp.BaseServlet
doGet, doPost
-
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPatch, doPut, doTrace, getLastModified, init, isSensitiveHeader, service, service
-
Methods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
-
-
-
Method Detail
-
doRequest
protected void doRequest(@Nullable @Nullable HttpServletRequest request, @Nullable @Nullable HttpServletResponse response) throws IOException
Description copied from class:BaseServletHandles a request. Independent to the method (GET or POST).- Specified by:
doRequestin classBaseServlet- Parameters:
request- theHttpServletRequestfrom the clientresponse- theHttpServletResponse, which will be sent to the client- Throws:
IOException- if any in- or outputExceptionoccurred- See Also:
BaseServlet.doGet(HttpServletRequest, HttpServletResponse),BaseServlet.doPost(HttpServletRequest, HttpServletResponse)
-
-