public class ConversionServiceExposingInterceptor extends HandlerInterceptorAdapter
ConversionService in request scope
so it's available during request processing. The request attribute name is
"org.springframework.core.convert.ConversionService", the value of
ConversionService.class.getName().
Mainly for use within JSP tags such as the spring:eval tag.
| Constructor and Description |
|---|
ConversionServiceExposingInterceptor(ConversionService conversionService)
Creates a new
ConversionServiceExposingInterceptor. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
preHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler)
This implementation always returns
true. |
afterCompletion, afterConcurrentHandlingStarted, postHandlepublic ConversionServiceExposingInterceptor(ConversionService conversionService)
ConversionServiceExposingInterceptor.conversionService - the conversion service to export to request scope when this interceptor is invokedpublic boolean preHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler)
throws javax.servlet.ServletException,
IOException
HandlerInterceptorAdaptertrue.preHandle in interface HandlerInterceptorpreHandle in class HandlerInterceptorAdapterrequest - 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.javax.servlet.ServletExceptionIOExceptionCopyright © 2015. All rights reserved.