public class ParameterUnpackerFilter extends OncePerRequestFilter
ALREADY_FILTERED_SUFFIX
logger
Constructor and Description |
---|
ParameterUnpackerFilter() |
Modifier and Type | Method and Description |
---|---|
protected void |
doFilterInternal(HttpServletRequest request,
HttpServletResponse response,
FilterChain filterChain) |
protected Collection<? extends String> |
extractPathKeys(String paramName,
String delimiter) |
void |
setDelimiter(String delimiter) |
void |
setPrefix(String prefix) |
void |
setPutEmptyParamsInPath(boolean putEmptyParamsInPath)
Flag to say that empty parameter value signal their name should be used
as a path parameter.
|
protected Map<String,String[]> |
unpack(String paramName,
String delimiter) |
doFilter, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatch
addRequiredProperty, afterPropertiesSet, destroy, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext
public void setPutEmptyParamsInPath(boolean putEmptyParamsInPath)
/context/path?unpack_foo
goes to
context/path/foo
.putEmptyParamsInPath
- the flag value to set (defaults to false)public void setDelimiter(String delimiter)
delimiter
- the delimiter used to separate parameter names from
valuespublic void setPrefix(String prefix)
prefix
- the prefix for parameter names that need to be unpackedprotected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException
doFilterInternal
in class OncePerRequestFilter
ServletException
IOException
protected Collection<? extends String> extractPathKeys(String paramName, String delimiter)
Copyright © 2015. All rights reserved.