Class FCBaseServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
fc.web.servlet.FCBaseServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable
- Direct Known Subclasses:
AdminServlet, LoginServlet, PageServlet, RawSQLServlet
A basic servlet that other servlets should extend. Keeps track of servlet
loaded/unloaded counts and other statistics. The
WebApp servlet should
be loaded before this servlet and the appName parameter specified in
the WebApp servlet must be the same as specified to this servlet.
Each servlet instantiates and uses it's own
. This is
useful because per servlet/jsp log-levels can be set (via the invalid reference
SystemLoggerAdminServlet)
Each servlet also stores an instance of itself in a map containing all
servlets in the servletcontext (This map can be obtained via the context
attribute of name
). Within the map,
a particular servlet is stored with the key obtained via calling:
that_servlet.getClass().getName()invalid reference
ContextInit#ALL_SERVLETS_KEY
- See Also:
-
Field Summary
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jakarta.servlet.http.HttpServlet
serviceMethods inherited from class jakarta.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
FCBaseServlet
public FCBaseServlet()
-
-
Method Details
-
init
- Specified by:
initin interfacejakarta.servlet.Servlet- Overrides:
initin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletException
-
toString
-
getLog
-
stats
-
destroy
- Specified by:
destroyin interfacejakarta.servlet.Servlet- Overrides:
destroyin classjakarta.servlet.GenericServlet
-