org.springframework.web.servlet.resource

Class ResourceUrlProviderExposingInterceptor

    • Field Detail

      • RESOURCE_URL_PROVIDER_ATTR

        public static final java.lang.String RESOURCE_URL_PROVIDER_ATTR
        Name of the request attribute that holds the ResourceUrlProvider.
    • Constructor Detail

      • ResourceUrlProviderExposingInterceptor

        public ResourceUrlProviderExposingInterceptor(ResourceUrlProvider resourceUrlProvider)
    • Method Detail

      • preHandle

        public boolean preHandle(HttpServletRequest request,
                                 HttpServletResponse response,
                                 java.lang.Object handler)
                          throws java.lang.Exception
        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 request
        response - current HTTP response
        handler - 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.
        Throws:
        java.lang.Exception - in case of errors