org.springframework.web.servlet.handler
Class AbstractUrlHandlerMapping.PathExposingHandlerInterceptor
java.lang.Object
org.springframework.web.servlet.handler.HandlerInterceptorAdapter
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.
- See Also:
AbstractUrlHandlerMapping.exposePathWithinMapping(java.lang.String, java.lang.String, HttpServletRequest)
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 |
bestMatchingPattern
private final java.lang.String bestMatchingPattern
pathWithinMapping
private final java.lang.String pathWithinMapping
AbstractUrlHandlerMapping.PathExposingHandlerInterceptor
public AbstractUrlHandlerMapping.PathExposingHandlerInterceptor(java.lang.String bestMatchingPattern,
java.lang.String pathWithinMapping)
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.