Class InterceptorRegistry

java.lang.Object
org.springframework.web.servlet.config.annotation.InterceptorRegistry
com.foreach.across.modules.web.mvc.InterceptorRegistry

public class InterceptorRegistry extends org.springframework.web.servlet.config.annotation.InterceptorRegistry
Replacement of InterceptorRegistry that supports adding an interceptor to the front of the list, keeping existing support for MappedInterceptor intact.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.web.servlet.config.annotation.InterceptorRegistration
    addFirst(org.springframework.web.context.request.WebRequestInterceptor interceptor)
     
    org.springframework.web.servlet.config.annotation.InterceptorRegistration
    addFirst(org.springframework.web.servlet.HandlerInterceptor interceptor)
     
    org.springframework.web.servlet.config.annotation.InterceptorRegistration
    addInterceptor(org.springframework.web.servlet.HandlerInterceptor interceptor)
     
    org.springframework.web.servlet.config.annotation.InterceptorRegistration
    addWebRequestInterceptor(org.springframework.web.context.request.WebRequestInterceptor interceptor)
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • InterceptorRegistry

      public InterceptorRegistry()
  • Method Details

    • addFirst

      public org.springframework.web.servlet.config.annotation.InterceptorRegistration addFirst(org.springframework.web.servlet.HandlerInterceptor interceptor)
    • addFirst

      public org.springframework.web.servlet.config.annotation.InterceptorRegistration addFirst(org.springframework.web.context.request.WebRequestInterceptor interceptor)
    • addInterceptor

      public org.springframework.web.servlet.config.annotation.InterceptorRegistration addInterceptor(org.springframework.web.servlet.HandlerInterceptor interceptor)
      Overrides:
      addInterceptor in class org.springframework.web.servlet.config.annotation.InterceptorRegistry
    • addWebRequestInterceptor

      public org.springframework.web.servlet.config.annotation.InterceptorRegistration addWebRequestInterceptor(org.springframework.web.context.request.WebRequestInterceptor interceptor)
      Overrides:
      addWebRequestInterceptor in class org.springframework.web.servlet.config.annotation.InterceptorRegistry
    • getInterceptors

      public List<Object> getInterceptors()
      Overrides:
      getInterceptors in class org.springframework.web.servlet.config.annotation.InterceptorRegistry