fc.web.servlet
Class FCBaseServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
fc.web.servlet.FCBaseServlet
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- Direct Known Subclasses:
- AdminServlet, LoginServlet, PageServlet, RawSQLServlet
public class FCBaseServlet
- extends javax.servlet.http.HttpServlet
A basic servlet that other servlets should extend. Keeps track of servlet
loaded/unloaded counts and other statistics.
Each servlet instantiates and uses it's own SystemLogger. This is
useful because per servlet/jsp log-levels can be set (via the AdminServlet)
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 ContextInit#ALL_SERVLETS_KEY). Within the map,
a particular servlet is stored with the key obtained via calling:
that_servlet.getClass().getName()
- See Also:
- Serialized Form
| Methods inherited from class javax.servlet.http.HttpServlet |
service |
| Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
FCBaseServlet
public FCBaseServlet()
init
public void init(javax.servlet.ServletConfig conf)
throws javax.servlet.ServletException
- Specified by:
init in interface javax.servlet.Servlet- Overrides:
init in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
toString
public String toString()
- Overrides:
toString in class Object
getLog
public Log getLog()
- Returns the logger for this servlet.
stats
public String stats()
- Returns usage statistics about this servlet. The
returned string is HTML formatted.
destroy
public void destroy()
- Specified by:
destroy in interface javax.servlet.Servlet- Overrides:
destroy in class javax.servlet.GenericServlet