Class CommandServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.deltava.servlet.GenericServlet
org.deltava.servlet.CommandServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable, Thread.UncaughtExceptionHandler
The main command controller. This is the application's brain stem.
- Since:
- 1.0
- Version:
- 12.3
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class GenericServlet
GenericServlet.ForbiddenException, GenericServlet.NotFoundException, GenericServlet.ServletSecurityContext -
Field Summary
FieldsFields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()voiddoGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp) GET request handler for this servlet.voiddoPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp) POST request handler for this servlet.voidinit()voiduncaughtException(Thread t, Throwable e) Methods inherited from class GenericServlet
getURLMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPatch, doPut, doTrace, getLastModified, init, isSensitiveHeader, service, serviceMethods inherited from class jakarta.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, log, log
-
Field Details
-
_cmdLogPool
-
-
Constructor Details
-
CommandServlet
public CommandServlet()
-
-
Method Details
-
getServletInfo
- Specified by:
getServletInfoin interfacejakarta.servlet.Servlet- Overrides:
getServletInfoin classjakarta.servlet.GenericServlet
-
init
public void init() throws jakarta.servlet.ServletException- Overrides:
initin classjakarta.servlet.GenericServlet- Throws:
jakarta.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroyin interfacejakarta.servlet.Servlet- Overrides:
destroyin classjakarta.servlet.GenericServlet
-
doPost
public void doPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp) throws IOException, jakarta.servlet.ServletException POST request handler for this servlet. POST and GET requests are handled the same way.- Overrides:
doPostin classjakarta.servlet.http.HttpServlet- Parameters:
req- the HTTP requestrsp- the HTTP response- Throws:
IOExceptionjakarta.servlet.ServletException- See Also:
-
doGet
public void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp) throws IOException, jakarta.servlet.ServletException GET request handler for this servlet.- Overrides:
doGetin classjakarta.servlet.http.HttpServlet- Parameters:
req- the servlet requestrsp- the servlet response- Throws:
IOException- if a network I/O error occursjakarta.servlet.ServletException- if the error handler cannot forward to the error page
-
uncaughtException
- Specified by:
uncaughtExceptionin interfaceThread.UncaughtExceptionHandler
-