Class AbstractUrlMatchingFilter

java.lang.Object
org.springframework.web.filter.GenericFilterBean
org.springframework.web.filter.OncePerRequestFilter
de.hybris.platform.coreairlinecommonsocc.filter.AbstractUrlMatchingFilter
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:
AirlineCartMatchingFilter

public abstract class AbstractUrlMatchingFilter extends org.springframework.web.filter.OncePerRequestFilter
Abstract matching filter that helps parsing urls.
  • Field Summary

    Fields inherited from class org.springframework.web.filter.OncePerRequestFilter

    ALREADY_FILTERED_SUFFIX

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

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Matcher
    getMatcher(javax.servlet.http.HttpServletRequest request, String regexp)
    Gets matcher.
    protected String
    getPath(javax.servlet.http.HttpServletRequest request)
    Gets path.
    protected String
    getValue(javax.servlet.http.HttpServletRequest request, String regexp)
    Gets value.
    protected String
    getValue(javax.servlet.http.HttpServletRequest request, String regexp, String groupName)
    Gets value.
    protected boolean
    matchesUrl(javax.servlet.http.HttpServletRequest request, String regexp)
    Matches url.

    Methods inherited from class org.springframework.web.filter.OncePerRequestFilter

    doFilter, doFilterInternal, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatch

    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
  • Constructor Details

    • AbstractUrlMatchingFilter

      public AbstractUrlMatchingFilter()
  • Method Details

    • matchesUrl

      protected boolean matchesUrl(javax.servlet.http.HttpServletRequest request, String regexp)
      Matches url.
      Parameters:
      request - the request
      regexp - the regexp
      Returns:
      the boolean
    • getValue

      protected String getValue(javax.servlet.http.HttpServletRequest request, String regexp)
      Gets value.
      Parameters:
      request - the request
      regexp - the regexp
      Returns:
      the value
    • getValue

      protected String getValue(javax.servlet.http.HttpServletRequest request, String regexp, String groupName)
      Gets value.
      Parameters:
      request - the request
      regexp - the regexp
      groupName - the group name
      Returns:
      the value
    • getMatcher

      protected Matcher getMatcher(javax.servlet.http.HttpServletRequest request, String regexp)
      Gets matcher.
      Parameters:
      request - the request
      regexp - the regexp
      Returns:
      the matcher
    • getPath

      protected String getPath(javax.servlet.http.HttpServletRequest request)
      Gets path.
      Parameters:
      request - the request
      Returns:
      the path