@Component(value="blGeolocationRequestProcessor")
public class GeolocationRequestProcessor
extends org.broadleafcommerce.common.web.AbstractBroadleafWebRequestProcessor
| Modifier and Type | Field and Description |
|---|---|
protected static String |
BLC_RULE_MAP_PARAM |
protected org.springframework.core.env.Environment |
env |
static String |
FORWARD_HEADER |
protected GeolocationService |
geolocationService |
static String |
GEOLOCATON_ATTRIBUTE_NAME |
| Constructor and Description |
|---|
GeolocationRequestProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getIPAddress(org.springframework.web.context.request.ServletWebRequest request) |
protected Map<String,Object> |
getRuleMapFromRequest(org.springframework.web.context.request.WebRequest request) |
protected boolean |
isGeolocationEnabled() |
void |
process(org.springframework.web.context.request.WebRequest request) |
public static final String FORWARD_HEADER
public static final String GEOLOCATON_ATTRIBUTE_NAME
protected static final String BLC_RULE_MAP_PARAM
protected GeolocationService geolocationService
protected org.springframework.core.env.Environment env
public void process(org.springframework.web.context.request.WebRequest request)
protected boolean isGeolocationEnabled()
protected String getIPAddress(org.springframework.web.context.request.ServletWebRequest request)
Copyright © 2022. All rights reserved.