org.springframework.web.servlet.handler
Class AbstractUrlHandlerMapping.UriTemplateVariablesHandlerInterceptor
java.lang.Object
org.springframework.web.servlet.handler.HandlerInterceptorAdapter
org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.UriTemplateVariablesHandlerInterceptor
- All Implemented Interfaces:
- HandlerInterceptor
- Enclosing class:
- AbstractUrlHandlerMapping
private class AbstractUrlHandlerMapping.UriTemplateVariablesHandlerInterceptor
- extends HandlerInterceptorAdapter
Special interceptor for exposing the
HandlerMapping.URI_TEMPLATE_VARIABLES_ATTRIBUTE
attribute.
Method Summary |
boolean |
preHandle(HttpServletRequest request,
HttpServletResponse response,
java.lang.Object handler)
This implementation always returns true . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
uriTemplateVariables
private final java.util.Map<java.lang.String,java.lang.String> uriTemplateVariables
AbstractUrlHandlerMapping.UriTemplateVariablesHandlerInterceptor
public AbstractUrlHandlerMapping.UriTemplateVariablesHandlerInterceptor(java.util.Map<java.lang.String,java.lang.String> uriTemplateVariables)
preHandle
public boolean preHandle(HttpServletRequest request,
HttpServletResponse response,
java.lang.Object handler)
- Description copied from class:
HandlerInterceptorAdapter
- This implementation always returns
true
.
- Specified by:
preHandle
in interface HandlerInterceptor
- Overrides:
preHandle
in class HandlerInterceptorAdapter
- Parameters:
request
- current HTTP requestresponse
- current HTTP responsehandler
- chosen handler to execute, for type and/or instance evaluation
- Returns:
true
if the execution chain should proceed with the
next interceptor or the handler itself. Else, DispatcherServlet assumes
that this interceptor has already dealt with the response itself.