private class AbstractUrlHandlerMapping.PathExposingHandlerInterceptor extends HandlerInterceptorAdapter
HandlerMapping.PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE
attribute.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
bestMatchingPattern |
private java.lang.String |
pathWithinMapping |
Constructor and Description |
---|
AbstractUrlHandlerMapping.PathExposingHandlerInterceptor(java.lang.String bestMatchingPattern,
java.lang.String pathWithinMapping) |
Modifier and Type | Method and Description |
---|---|
boolean |
preHandle(HttpServletRequest request,
HttpServletResponse response,
java.lang.Object handler)
This implementation always returns
true . |
afterCompletion, afterConcurrentHandlingStarted, postHandle
private final java.lang.String bestMatchingPattern
private final java.lang.String pathWithinMapping
public AbstractUrlHandlerMapping.PathExposingHandlerInterceptor(java.lang.String bestMatchingPattern, java.lang.String pathWithinMapping)
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, java.lang.Object handler)
HandlerInterceptorAdapter
true
.preHandle
in interface HandlerInterceptor
preHandle
in class HandlerInterceptorAdapter
request
- current HTTP requestresponse
- current HTTP responsehandler
- chosen handler to execute, for type and/or instance evaluationtrue
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.