org.broadleafcommerce.core.web.order.security
Class CartStateFilter

java.lang.Object
  extended by org.springframework.web.filter.GenericFilterBean
      extended by org.broadleafcommerce.core.web.order.security.CartStateFilter
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.Ordered, org.springframework.web.context.ServletContextAware

@Component(value="blCartStateFilter")
public class CartStateFilter
extends org.springframework.web.filter.GenericFilterBean
implements org.springframework.core.Ordered


Field Summary
static String BLC_RULE_MAP_PARAM
           
protected  org.apache.commons.logging.Log LOG
          Logger for this class and subclasses
protected  OrderService orderService
           
 
Fields inherited from class org.springframework.web.filter.GenericFilterBean
logger
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
CartStateFilter()
           
 
Method Summary
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
           
static String getCartRequestAttributeName()
           
 int getOrder()
           
static void setCartRequestAttributeName(String cartRequestAttributeName)
           
 
Methods inherited from class org.springframework.web.filter.GenericFilterBean
addRequiredProperty, afterPropertiesSet, destroy, 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
 

Field Detail

LOG

protected final org.apache.commons.logging.Log LOG
Logger for this class and subclasses


BLC_RULE_MAP_PARAM

public static final String BLC_RULE_MAP_PARAM
See Also:
Constant Field Values

orderService

protected OrderService orderService
Constructor Detail

CartStateFilter

public CartStateFilter()
Method Detail

doFilter

public void doFilter(javax.servlet.ServletRequest request,
                     javax.servlet.ServletResponse response,
                     javax.servlet.FilterChain chain)
              throws IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in interface javax.servlet.Filter
Throws:
IOException
javax.servlet.ServletException

getOrder

public int getOrder()
Specified by:
getOrder in interface org.springframework.core.Ordered

getCartRequestAttributeName

public static String getCartRequestAttributeName()

setCartRequestAttributeName

public static void setCartRequestAttributeName(String cartRequestAttributeName)


Copyright © 2013. All Rights Reserved.