Class TravelCartMatchingFilter

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

public class TravelCartMatchingFilter extends AbstractUrlMatchingFilter
Filter that puts cart from the requested url into the session.
  • 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 void
    doFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain)
     
    protected de.hybris.platform.commercewebservicescommons.strategies.CartLoaderStrategy
    Gets cart loader strategy.
    Gets error code resolver.
    protected String
    Gets regexp.
    protected boolean
    Is cart refreshed by default boolean.
    void
    setCartLoaderStrategy(de.hybris.platform.commercewebservicescommons.strategies.CartLoaderStrategy cartLoaderStrategy)
    Sets cart loader strategy.
    void
    setCartRefreshedByDefault(boolean cartRefreshedByDefault)
    Sets cart refreshed by default.
    void
    Sets error code resolver.
    void
    setRegexp(String regexp)
    Sets regexp.
    protected boolean
    shouldCartBeRefreshed(javax.servlet.http.HttpServletRequest request)
    Should cart be refreshed.

    Methods inherited from class de.hybris.platform.coretravelcommonsocc.filter.AbstractUrlMatchingFilter

    getMatcher, getPath, getValue, getValue, matchesUrl

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

    doFilter, 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

    • TravelCartMatchingFilter

      public TravelCartMatchingFilter()
  • Method Details

    • doFilterInternal

      protected void doFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain) throws javax.servlet.ServletException, IOException
      Specified by:
      doFilterInternal in class org.springframework.web.filter.OncePerRequestFilter
      Throws:
      javax.servlet.ServletException
      IOException
    • shouldCartBeRefreshed

      protected boolean shouldCartBeRefreshed(javax.servlet.http.HttpServletRequest request)
      Should cart be refreshed.
      Parameters:
      request - the request
      Returns:
      the boolean
    • getRegexp

      protected String getRegexp()
      Gets regexp.
      Returns:
      the regexp
    • setRegexp

      public void setRegexp(String regexp)
      Sets regexp.
      Parameters:
      regexp - the regexp
    • getCartLoaderStrategy

      protected de.hybris.platform.commercewebservicescommons.strategies.CartLoaderStrategy getCartLoaderStrategy()
      Gets cart loader strategy.
      Returns:
      the cart loader strategy
    • setCartLoaderStrategy

      public void setCartLoaderStrategy(de.hybris.platform.commercewebservicescommons.strategies.CartLoaderStrategy cartLoaderStrategy)
      Sets cart loader strategy.
      Parameters:
      cartLoaderStrategy - the cart loader strategy
    • isCartRefreshedByDefault

      protected boolean isCartRefreshedByDefault()
      Is cart refreshed by default boolean.
      Returns:
      the boolean
    • setCartRefreshedByDefault

      public void setCartRefreshedByDefault(boolean cartRefreshedByDefault)
      Sets cart refreshed by default.
      Parameters:
      cartRefreshedByDefault - the cart refreshed by default
    • getErrorCodeResolver

      protected ErrorCodeResolver getErrorCodeResolver()
      Gets error code resolver.
      Returns:
      the error code resolver
    • setErrorCodeResolver

      public void setErrorCodeResolver(ErrorCodeResolver errorCodeResolver)
      Sets error code resolver.
      Parameters:
      errorCodeResolver - the error code resolver