org.springframework.web.servlet.handler
Class AbstractUrlHandlerMapping.UriTemplateVariablesHandlerInterceptor

java.lang.Object
  extended by org.springframework.web.servlet.handler.HandlerInterceptorAdapter
      extended by 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.

See Also:
AbstractUrlHandlerMapping.exposePathWithinMapping(java.lang.String, java.lang.String, HttpServletRequest)

Field Summary
private  java.util.Map<java.lang.String,java.lang.String> uriTemplateVariables
           
 
Constructor Summary
AbstractUrlHandlerMapping.UriTemplateVariablesHandlerInterceptor(java.util.Map<java.lang.String,java.lang.String> uriTemplateVariables)
           
 
Method Summary
 boolean preHandle(HttpServletRequest request, HttpServletResponse response, java.lang.Object handler)
          This implementation always returns true.
 
Methods inherited from class org.springframework.web.servlet.handler.HandlerInterceptorAdapter
afterCompletion, postHandle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uriTemplateVariables

private final java.util.Map<java.lang.String,java.lang.String> uriTemplateVariables
Constructor Detail

AbstractUrlHandlerMapping.UriTemplateVariablesHandlerInterceptor

public AbstractUrlHandlerMapping.UriTemplateVariablesHandlerInterceptor(java.util.Map<java.lang.String,java.lang.String> uriTemplateVariables)
Method Detail

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 request
response - current HTTP response
handler - 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.