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 Details

    • WebResourceRegistryInterceptor

      public WebResourceRegistryInterceptor(WebResourcePackageManager webResourcePackageManager)
  • Method Details

    • getDefaultRegistry

      public WebResourceRegistry getDefaultRegistry()
    • setDefaultRegistry

      public void setDefaultRegistry(WebResourceRegistry defaultRegistry)
    • getWebResourceTranslators

      @Deprecated public Collection<WebResourceTranslator> getWebResourceTranslators()
      Deprecated.
    • setWebResourceTranslators

      @Deprecated public void setWebResourceTranslators(Collection<WebResourceTranslator> webResourceTranslators)
      Deprecated.
    • addWebResourceTranslator

      @Deprecated public void addWebResourceTranslator(WebResourceTranslator translator)
      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 interface org.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 interface org.springframework.web.servlet.HandlerInterceptor