Class CartMatchingFilter
- java.lang.Object
-
- org.springframework.web.filter.GenericFilterBean
-
- org.springframework.web.filter.OncePerRequestFilter
-
- de.hybris.platform.ycommercewebservices.v2.filter.AbstractUrlMatchingFilter
-
- de.hybris.platform.ycommercewebservices.v2.filter.CartMatchingFilter
-
- 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 CartMatchingFilter extends AbstractUrlMatchingFilter
Filter that puts cart from the requested url into the session.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringREFRESH_CART_PARAM-
Fields inherited from class de.hybris.platform.ycommercewebservices.v2.filter.AbstractUrlMatchingFilter
BASE_SITES_ENDPOINT_PATH
-
-
Constructor Summary
Constructors Constructor Description CartMatchingFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain)CartLoaderStrategygetCartLoaderStrategy()protected java.lang.StringgetRegexp()booleanisCartRefreshedByDefault()voidsetCartLoaderStrategy(CartLoaderStrategy cartLoaderStrategy)voidsetCartRefreshedByDefault(boolean cartRefreshedByDefault)voidsetRegexp(java.lang.String regexp)protected booleanshouldCartBeRefreshed(javax.servlet.http.HttpServletRequest request)-
Methods inherited from class de.hybris.platform.ycommercewebservices.v2.filter.AbstractUrlMatchingFilter
getBaseSiteValue, getMatcher, getPath, getValue, getValue, matchesUrl
-
Methods inherited from class org.springframework.web.filter.OncePerRequestFilter
doFilter, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatch
-
-
-
-
Field Detail
-
REFRESH_CART_PARAM
public static final java.lang.String REFRESH_CART_PARAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
doFilterInternal
protected void doFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain) throws javax.servlet.ServletException, java.io.IOException- Specified by:
doFilterInternalin classorg.springframework.web.filter.OncePerRequestFilter- Throws:
javax.servlet.ServletExceptionjava.io.IOException
-
shouldCartBeRefreshed
protected boolean shouldCartBeRefreshed(javax.servlet.http.HttpServletRequest request)
-
getRegexp
protected java.lang.String getRegexp()
-
setRegexp
public void setRegexp(java.lang.String regexp)
-
getCartLoaderStrategy
public CartLoaderStrategy getCartLoaderStrategy()
-
setCartLoaderStrategy
public void setCartLoaderStrategy(CartLoaderStrategy cartLoaderStrategy)
-
isCartRefreshedByDefault
public boolean isCartRefreshedByDefault()
-
setCartRefreshedByDefault
public void setCartRefreshedByDefault(boolean cartRefreshedByDefault)
-
-