|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javawebparts.filter.ParameterMungerFilter
This filter can perform various operations on incoming parameters. It allows
for including or excluding paths from filter functionality. It also allows
for performing one or more defined operations on every parameter received.
Init parameters are:
Field Summary | |
private static java.lang.String |
FUNCTION_LCASE
Constant for function lcase function. |
private static java.lang.String |
FUNCTION_REVERSE
Constant for function reverse function. |
private static java.lang.String |
FUNCTION_TRIM
Constant for function trim function. |
private static java.lang.String |
FUNCTION_UCASE
Constant for function ucase function. |
private java.util.ArrayList |
functionList
The list of functions to be performed. |
private static org.apache.commons.logging.Log |
log
Log instance. |
private java.util.ArrayList |
pathList
List of paths for filter functionality determination. |
private java.lang.String |
pathSpec
Whether pathList includes or excludes. |
Constructor Summary | |
ParameterMungerFilter()
|
Method Summary | |
void |
destroy()
Destroy. |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain filterChain)
Do filter's work. |
void |
init(javax.servlet.FilterConfig filterConfig)
Initialize this filter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static org.apache.commons.logging.Log log
private static final java.lang.String FUNCTION_TRIM
private static final java.lang.String FUNCTION_LCASE
private static final java.lang.String FUNCTION_UCASE
private static final java.lang.String FUNCTION_REVERSE
private java.lang.String pathSpec
private java.util.ArrayList pathList
private java.util.ArrayList functionList
Constructor Detail |
public ParameterMungerFilter()
Method Detail |
public void destroy()
destroy
in interface javax.servlet.Filter
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
filterConfig
- The configuration information for this filter.
javax.servlet.ServletException
- ServletException.public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain filterChain) throws javax.servlet.ServletException, java.io.IOException
doFilter
in interface javax.servlet.Filter
request
- The current request object.response
- The current response object.filterChain
- The current filter chain.
javax.servlet.ServletException
- ServletException.
java.io.IOException
- IOException.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |