public class FCBaseServlet extends HttpServlet
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 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()
Constructor and Description |
---|
FCBaseServlet() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
Log |
getLog()
Returns the logger for this servlet.
|
void |
init(ServletConfig conf) |
java.lang.String |
stats()
Returns usage statistics about this servlet.
|
java.lang.String |
toString() |
service
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
public FCBaseServlet()
public void init(ServletConfig conf) throws ServletException
init
in interface Servlet
init
in class GenericServlet
ServletException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String stats()
public void destroy()
destroy
in interface Servlet
destroy
in class GenericServlet