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.
| Modifier and Type | Field and Description |
|---|---|
| private final ConversionService |
| Access | Constructor and Description |
|---|---|
| public | ConversionServiceExposingInterceptor(ConversionService
the conversion service to export to request scope when this interceptor is invoked conversionService)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | preHandle(HttpServletRequest
current HTTP request request, HttpServletResponse current HTTP response response, Object chosen handler to execute, for type and/or instance evaluation handler)Overrides default org. Interception point before the execution of a handler. |
| conversionService | back to summary |
|---|---|
| private final ConversionService conversionService | |
| ConversionServiceExposingInterceptor | back to summary |
|---|---|
| public ConversionServiceExposingInterceptor(ConversionService conversionService) Creates a new
| |
| preHandle | back to summary |
|---|---|
| public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws ServletException, IOException Overrides default org. Doc from org. Interception point before the execution of a handler. Called after HandlerMapping determined an appropriate handler object, but before HandlerAdapter invokes the handler. DispatcherServlet processes a handler in an execution chain, consisting of any number of interceptors, with the handler itself at the end. With this method, each interceptor can decide to abort the execution chain, typically sending an HTTP error or writing a custom response. Note special considerations apply for asynchronous
request processing. For more details see
The default implementation returns
| |