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 all HttpServletRequests
on the root path- Since:
- 1.0.0
- Version:
- 3.0.0
- See Also:
-
Field Summary
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoRequest(@Nullable HttpServletRequest request, @Nullable HttpServletResponse response) Handles a request.Methods inherited from class me.chrisswr1.test.webapp.BaseServlet
doGet, doPostMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPatch, doPut, doTrace, getLastModified, init, isSensitiveHeader, service, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
MainServlet
public MainServlet()
-
-
Method Details
-
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:
-