public class CookieRuleRequestProcessor
extends org.broadleafcommerce.common.web.AbstractBroadleafWebRequestProcessor
cookie.content.targeting.enabled=true to a property file visible to both admin and site (i.e. common-shared.properties)
Add a cookie configuration to your Spring xml or Java configuration. Sample below demonstrated Java-based config:
{@code| Modifier and Type | Field and Description |
|---|---|
protected static String |
BLC_RULE_MAP_PARAM |
protected List<RuleDTOConfig> |
configs |
static String |
COOKIE_ATTRIBUTE_NAME |
protected org.broadleafcommerce.common.security.util.CookieUtils |
cookieUtils |
static String |
FORWARD_HEADER |
| Constructor and Description |
|---|
CookieRuleRequestProcessor(List<RuleDTOConfig> configs,
org.broadleafcommerce.common.security.util.CookieUtils cookieUtils) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getRuleMapFromRequest(org.springframework.web.context.request.WebRequest request) |
protected Map<String,String> |
getVals(org.springframework.web.context.request.ServletWebRequest request) |
void |
process(org.springframework.web.context.request.WebRequest request) |
public static final String FORWARD_HEADER
public static final String COOKIE_ATTRIBUTE_NAME
protected static final String BLC_RULE_MAP_PARAM
protected org.broadleafcommerce.common.security.util.CookieUtils cookieUtils
protected List<RuleDTOConfig> configs
public CookieRuleRequestProcessor(List<RuleDTOConfig> configs, org.broadleafcommerce.common.security.util.CookieUtils cookieUtils)
Copyright © 2018. All rights reserved.