public class ServletRequestPathFilter extends Object implements Filter
Filter to parse
and cache a RequestPath for further
access throughout the
filter chain. This is useful when parsed
PathPatterns are in use anywhere
in an application instead of String pattern matching with
PathMatcher.
Note that in Spring MVC, the DispatcherServlet will also parse and
cache the RequestPath if it detects that parsed PathPatterns
are enabled for any HandlerMapping but it will skip doing that if it
finds the ServletRequestPathUtils.PATH_ATTRIBUTE already exists.
| Constructor and Description |
|---|
ServletRequestPathFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain) |
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
doFilter in interface FilterIOExceptionServletException