com.atlassian.confluence.web.filter.validateparam
Class RequestParamValidationFilter
java.lang.Object
com.atlassian.core.filters.AbstractHttpFilter
com.atlassian.confluence.web.filter.validateparam.RequestParamValidationFilter
- All Implemented Interfaces:
- javax.servlet.Filter
public class RequestParamValidationFilter
- extends com.atlassian.core.filters.AbstractHttpFilter
Validates request parameter values so that they cannot contain null characters.
Invalid parameters will result in an SC_BAD_REQUEST response. Parameters may not contain null characters
unless explicitly allowed by the whitelistStrategy.
Method Summary |
protected void |
doFilter(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
javax.servlet.FilterChain chain)
|
void |
init(javax.servlet.FilterConfig filterConfig)
|
Methods inherited from class com.atlassian.core.filters.AbstractHttpFilter |
destroy, doFilter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestParamValidationFilter
public RequestParamValidationFilter()
init
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
- Specified by:
init
in interface javax.servlet.Filter
- Overrides:
init
in class com.atlassian.core.filters.AbstractHttpFilter
- Throws:
javax.servlet.ServletException
doFilter
protected void doFilter(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
- Specified by:
doFilter
in class com.atlassian.core.filters.AbstractHttpFilter
- Throws:
IOException
javax.servlet.ServletException
Copyright © 2003-2012 Atlassian. All Rights Reserved.