spring-framework / org.springframework.web.servlet.resource / ResourceUrlProviderExposingInterceptor

ResourceUrlProviderExposingInterceptor

open class ResourceUrlProviderExposingInterceptor : HandlerInterceptorAdapter

An interceptor that exposes the ResourceUrlProvider instance it is configured with as a request attribute.

Author
Rossen Stoyanchev

Since
4.1

Constructors

<init>

ResourceUrlProviderExposingInterceptor(resourceUrlProvider: ResourceUrlProvider)

Properties

RESOURCE_URL_PROVIDER_ATTR

static val RESOURCE_URL_PROVIDER_ATTR: String

Name of the request attribute that holds the ResourceUrlProvider.

Functions

preHandle

open fun preHandle(request: HttpServletRequest, response: HttpServletResponse, handler: Any): Boolean