Class AbstractCheckedUriFilter

java.lang.Object
org.springframework.web.filter.GenericFilterBean
de.hybris.platform.servicelayer.web.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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected boolean
    Checks if uri matches any of defined url paths.
    void
    setUrlPaths(List<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 Details

    • AbstractCheckedUriFilter

      public AbstractCheckedUriFilter()
  • Method Details

    • isUrlPathsContainsUri

      protected boolean isUrlPathsContainsUri(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 List<String> getUrlPaths()
    • setUrlPaths

      public void setUrlPaths(List<String> urlPaths)