Class AbstractCheckedUriFilter

  • All Implemented Interfaces:
    javax.servlet.Filter, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.EnvironmentAware, org.springframework.core.env.EnvironmentCapable, org.springframework.web.context.ServletContextAware
    Direct Known Subclasses:
    RedirectWhenSystemIsNotInitializedFilter

    public abstract class AbstractCheckedUriFilter
    extends org.springframework.web.filter.GenericFilterBean
    Base filter for all filters which have to rely on list of url paths and perform some action when request URI matches url path.
    • Field Summary

      • Fields inherited from class org.springframework.web.filter.GenericFilterBean

        logger
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getUrlPaths()  
      protected boolean isUrlPathsContainsUri​(java.lang.String uri)
      Checks if uri matches any of defined url paths.
      void setUrlPaths​(java.util.List<java.lang.String> urlPaths)  
      • Methods inherited from class org.springframework.web.filter.GenericFilterBean

        addRequiredProperty, afterPropertiesSet, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.servlet.Filter

        doFilter
    • Constructor Detail

      • AbstractCheckedUriFilter

        public AbstractCheckedUriFilter()
    • Method Detail

      • isUrlPathsContainsUri

        protected boolean isUrlPathsContainsUri​(java.lang.String uri)
        Checks if uri matches any of defined url paths. First match wins.
        Parameters:
        uri - the uri string to check
        Returns:
        true, if matches
      • getUrlPaths

        public java.util.List<java.lang.String> getUrlPaths()
      • setUrlPaths

        public void setUrlPaths​(java.util.List<java.lang.String> urlPaths)