Class CustomerLocationRestorationFilter
- java.lang.Object
-
- org.springframework.web.filter.GenericFilterBean
-
- org.springframework.web.filter.OncePerRequestFilter
-
- de.hybris.platform.yacceleratorstorefront.filters.CustomerLocationRestorationFilter
-
- 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 CustomerLocationRestorationFilter extends org.springframework.web.filter.OncePerRequestFilter
-
-
Constructor Summary
Constructors Constructor Description CustomerLocationRestorationFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected UserLocationDatadecipherUserLocationData(java.lang.String customerLocationString)voiddoFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain)protected CustomerLocationCookieGeneratorgetCustomerLocationCookieGenerator()protected CustomerLocationFacadegetCustomerLocationFacade()voidsetCustomerLocationCookieGenerator(CustomerLocationCookieGenerator customerLocationCookieGenerator)voidsetCustomerLocationFacade(CustomerLocationFacade customerLocationFacade)protected voidsetUserLocationDataFromCookies(javax.servlet.http.Cookie[] cookies)-
Methods inherited from class org.springframework.web.filter.OncePerRequestFilter
doFilter, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatch
-
-
-
-
Method Detail
-
doFilterInternal
public 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
-
setUserLocationDataFromCookies
protected void setUserLocationDataFromCookies(javax.servlet.http.Cookie[] cookies)
-
decipherUserLocationData
protected UserLocationData decipherUserLocationData(java.lang.String customerLocationString)
-
getCustomerLocationFacade
protected CustomerLocationFacade getCustomerLocationFacade()
-
setCustomerLocationFacade
public void setCustomerLocationFacade(CustomerLocationFacade customerLocationFacade)
-
getCustomerLocationCookieGenerator
protected CustomerLocationCookieGenerator getCustomerLocationCookieGenerator()
-
setCustomerLocationCookieGenerator
public void setCustomerLocationCookieGenerator(CustomerLocationCookieGenerator customerLocationCookieGenerator)
-
-