public class ExceptionDisplayServlet extends AdminDisplayServlet
Should you use other logging frameworks, you can have those exceptions tracked by writingand installing a custom appender for that framework. See Log4JExceptionAppender for an example.
You will need to map this servlet to an url pattern (e.g. '/admin4j/error').
This servlet does not require other web resources.
Init parameters for this servlet are as follows:
ExceptionTracker
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
static java.lang.String |
PUBLIC_HANDLE |
ADMIN4J_SESSION_VARIABLE_PREFIX
Constructor and Description |
---|
ExceptionDisplayServlet() |
Modifier and Type | Method and Description |
---|---|
static java.util.Set<javax.servlet.http.HttpServlet> |
getRegisteredServletSet(java.lang.Class klass) |
java.lang.String |
getServletLabel() |
void |
init() |
void |
init(javax.servlet.ServletConfig config) |
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
displayFreeMarkerPage, displayFreeMarkerResponse, hasDisplay
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
public static final java.lang.String PUBLIC_HANDLE
protected org.slf4j.Logger logger
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
javax.servlet.ServletException
protected void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
service
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
public java.lang.String getServletLabel()
getServletLabel
in class AdminDisplayServlet
public void init() throws javax.servlet.ServletException
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public static java.util.Set<javax.servlet.http.HttpServlet> getRegisteredServletSet(java.lang.Class klass)
Copyright © 2015 The Admin4J Project. All Rights Reserved.