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

java.lang.Object
  extended by org.springframework.web.servlet.handler.HandlerInterceptorAdapter
      extended by org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.PathExposingHandlerInterceptor
All Implemented Interfaces:
HandlerInterceptor
Enclosing class:
AbstractUrlHandlerMapping

private class AbstractUrlHandlerMapping.PathExposingHandlerInterceptor
extends HandlerInterceptorAdapter

Special interceptor for exposing the HandlerMapping.PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE attribute.


Field Summary
private  java.lang.String bestMatchingPattern
           
private  java.lang.String pathWithinMapping
           
 
Constructor Summary
AbstractUrlHandlerMapping.PathExposingHandlerInterceptor(java.lang.String bestMatchingPattern, java.lang.String pathWithinMapping)
           
 
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

bestMatchingPattern

private final java.lang.String bestMatchingPattern

pathWithinMapping

private final java.lang.String pathWithinMapping
Constructor Detail

AbstractUrlHandlerMapping.PathExposingHandlerInterceptor

public AbstractUrlHandlerMapping.PathExposingHandlerInterceptor(java.lang.String bestMatchingPattern,
                                                                java.lang.String pathWithinMapping)
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.