Class WebResourceRegistryInterceptor
java.lang.Object
com.foreach.across.modules.web.resource.WebResourceRegistryInterceptor
- All Implemented Interfaces:
org.springframework.web.servlet.HandlerInterceptor
public class WebResourceRegistryInterceptor
extends Object
implements org.springframework.web.servlet.HandlerInterceptor
Configures a WebResourceRegistry for the request. Will initialize using the default
registry provided and will fire the registry build events.
-
Constructor Summary
ConstructorDescriptionWebResourceRegistryInterceptor
(WebResourcePackageManager webResourcePackageManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addWebResourceTranslator
(WebResourceTranslator translator) Deprecated.Deprecated.void
postHandle
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Object handler, org.springframework.web.servlet.ModelAndView modelAndView) Prepares the WebResourceRegistry for rendering by translating locations.boolean
preHandle
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Object handler) Adds a new default WebResourceRegistry to the request.void
setDefaultRegistry
(WebResourceRegistry defaultRegistry) void
setWebResourceTranslators
(Collection<WebResourceTranslator> webResourceTranslators) Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.web.servlet.HandlerInterceptor
afterCompletion
-
Constructor Details
-
WebResourceRegistryInterceptor
-
-
Method Details
-
getDefaultRegistry
-
setDefaultRegistry
-
getWebResourceTranslators
Deprecated. -
setWebResourceTranslators
@Deprecated public void setWebResourceTranslators(Collection<WebResourceTranslator> webResourceTranslators) Deprecated. -
addWebResourceTranslator
Deprecated. -
preHandle
public boolean preHandle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Object handler) Adds a new default WebResourceRegistry to the request.- Specified by:
preHandle
in interfaceorg.springframework.web.servlet.HandlerInterceptor
-
postHandle
public void postHandle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Object handler, org.springframework.web.servlet.ModelAndView modelAndView) Prepares the WebResourceRegistry for rendering by translating locations.- Specified by:
postHandle
in interfaceorg.springframework.web.servlet.HandlerInterceptor
-