private class AbstractUrlHandlerMapping.UriTemplateVariablesHandlerInterceptor extends HandlerInterceptorAdapter
HandlerMapping.URI_TEMPLATE_VARIABLES_ATTRIBUTE
attribute.Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.lang.String> |
uriTemplateVariables |
Constructor and Description |
---|
UriTemplateVariablesHandlerInterceptor(java.util.Map<java.lang.String,java.lang.String> uriTemplateVariables) |
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.util.Map<java.lang.String,java.lang.String> uriTemplateVariables
public UriTemplateVariablesHandlerInterceptor(java.util.Map<java.lang.String,java.lang.String> uriTemplateVariables)
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.