org.apache.logging.log4j.core.javaee
Class JNDIContextFilter
java.lang.Object
org.apache.logging.log4j.core.javaee.JNDIContextFilter
- All Implemented Interfaces:
- javax.servlet.Filter
public class JNDIContextFilter
- extends Object
- implements javax.servlet.Filter
ServletFilter than may be used to set up a LoggerContext for each web application.
Field Summary |
static String |
CONFIG_LOCATION
The Filter init parameter that defines the configuration location for the LoggerContext. |
static String |
CONTEXT_NAME
The Filter init parameter that defines the name of the LoggerContext. |
Method Summary |
void |
destroy()
|
void |
doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain)
|
void |
init(javax.servlet.FilterConfig filterConfig)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONTEXT_NAME
public static final String CONTEXT_NAME
- The Filter init parameter that defines the name of the LoggerContext.
- See Also:
- Constant Field Values
CONFIG_LOCATION
public static final String CONFIG_LOCATION
- The Filter init parameter that defines the configuration location for the LoggerContext.
- See Also:
- Constant Field Values
JNDIContextFilter
public JNDIContextFilter()
init
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
- Specified by:
init
in interface javax.servlet.Filter
- Throws:
javax.servlet.ServletException
doFilter
public void doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain)
throws IOException,
javax.servlet.ServletException
- Specified by:
doFilter
in interface javax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
destroy
public void destroy()
- Specified by:
destroy
in interface javax.servlet.Filter
Copyright © 1999-2012 Apache Software Foundation. All Rights Reserved.