public class RequestAttributesInterceptor extends Object implements org.springframework.web.servlet.HandlerInterceptor
| Constructor and Description |
|---|
RequestAttributesInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterCompletion(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler,
Exception ex) |
Map<String,Map<String,Object>> |
getAttributeMappings() |
void |
postHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler,
org.springframework.web.servlet.ModelAndView modelAndView) |
boolean |
preHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler) |
void |
setAlwaysUseFullPath(boolean alwaysUseFullPath)
Set if URL lookup should always use full path within current servlet
context.
|
void |
setAttributeMappings(Map<String,Map<String,Object>> attributeMappings) |
void |
setPathMatcher(org.springframework.util.PathMatcher pathMatcher)
Set the PathMatcher implementation to use for matching URL paths against
registered URL patterns, for determining cache mappings.
|
void |
setUrlDecode(boolean urlDecode)
Set if context path and request URI should be URL-decoded.
|
void |
setUrlPathHelper(org.springframework.web.util.UrlPathHelper urlPathHelper)
Set the UrlPathHelper to use for resolution of lookup paths.
|
public void afterCompletion(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler,
Exception ex)
throws Exception
afterCompletion in interface org.springframework.web.servlet.HandlerInterceptorExceptionpublic void postHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler,
org.springframework.web.servlet.ModelAndView modelAndView)
throws Exception
postHandle in interface org.springframework.web.servlet.HandlerInterceptorExceptionpublic boolean preHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler)
throws javax.servlet.ServletException
preHandle in interface org.springframework.web.servlet.HandlerInterceptorjavax.servlet.ServletExceptionpublic void setAlwaysUseFullPath(boolean alwaysUseFullPath)
Only relevant for the "cacheMappings" setting.
#setCacheMappings,
UrlPathHelper.setAlwaysUseFullPath(boolean)public void setAttributeMappings(Map<String,Map<String,Object>> attributeMappings)
public void setPathMatcher(org.springframework.util.PathMatcher pathMatcher)
public void setUrlDecode(boolean urlDecode)
Uses either the request encoding or the default encoding according to the Servlet spec (ISO-8859-1).
Only relevant for the "cacheMappings" setting.
#setCacheMappings,
UrlPathHelper.setUrlDecode(boolean)public void setUrlPathHelper(org.springframework.web.util.UrlPathHelper urlPathHelper)
urlPathHelper - The UrlPathHelper to use for resolution of lookup
paths.Copyright © 2015 Revolution Systems Inc.. All rights reserved.