Package org.rapidcontext.app
Class ServletApplication
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.rapidcontext.app.ServletApplication
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class ServletApplication
extends javax.servlet.http.HttpServlet
The main application servlet. This servlet handles all incoming
web requests.
- Version:
- 1.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceMethods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
DOC_PATH
The documentation storage path.
-
-
Constructor Details
-
ServletApplication
public ServletApplication()Creates a new application servlet instance.
-
-
Method Details
-
init
public void init() throws javax.servlet.ServletExceptionInitializes this servlet.- Overrides:
initin classjavax.servlet.GenericServlet- Throws:
javax.servlet.ServletException- if the initialization failed
-
destroy
public void destroy()Uninitializes this servlet.- Specified by:
destroyin interfacejavax.servlet.Servlet- Overrides:
destroyin classjavax.servlet.GenericServlet
-
service
protected void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException Processes a servlet request.- Overrides:
servicein classjavax.servlet.http.HttpServlet- Parameters:
req- the servlet requestresp- the servlet response- Throws:
javax.servlet.ServletException- if an internal error occurred when processing the requestIOException- if an IO error occurred when processing the request
-