Package org.javlo.filter
Class CatchAllFilter
- java.lang.Object
-
- org.javlo.filter.CatchAllFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
public class CatchAllFilter extends Object implements javax.servlet.Filter
-
-
Field Summary
Fields Modifier and Type Field Description static String
CHECK_CONTEXT_PARAM
static Logger
logger
create a static logger.static String
MAIN_URI_KEY
static String
POLICY
-
Constructor Summary
Constructors Constructor Description CatchAllFilter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain next)
static boolean
doLoginFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
void
init(javax.servlet.FilterConfig config)
void
initElements(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
-
-
-
Field Detail
-
CHECK_CONTEXT_PARAM
public static final String CHECK_CONTEXT_PARAM
- See Also:
- Constant Field Values
-
POLICY
public static final String POLICY
- See Also:
- Constant Field Values
-
MAIN_URI_KEY
public static final String MAIN_URI_KEY
- See Also:
- Constant Field Values
-
logger
public static Logger logger
create a static logger.
-
-
Method Detail
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.servlet.Filter
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain next) throws IOException, javax.servlet.ServletException
- Specified by:
doFilter
in interfacejavax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
-
doLoginFilter
public static boolean doLoginFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) throws IOException, javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
-
init
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Filter
- Throws:
javax.servlet.ServletException
-
initElements
public void initElements(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
-
-