Class StorefrontFilter
java.lang.Object
org.springframework.web.filter.GenericFilterBean
org.springframework.web.filter.OncePerRequestFilter
de.hybris.platform.yacceleratorstorefront.filters.StorefrontFilter
- 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 StorefrontFilter
extends org.springframework.web.filter.OncePerRequestFilter
Filter that initializes the session for the yacceleratorstorefront. This is a spring configured filter that is
executed by the PlatformFilterChain.
-
Field Summary
FieldsFields inherited from class org.springframework.web.filter.OncePerRequestFilter
ALREADY_FILTERED_SUFFIXFields inherited from class org.springframework.web.filter.GenericFilterBean
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain) protected BrowseHistoryprotected org.springframework.util.PathMatcherprotected StoreSessionFacadeprotected voidinitDefaults(javax.servlet.http.HttpServletRequest request) protected booleanisGetMethod(javax.servlet.http.HttpServletRequest httpRequest) protected booleanisRequestPathExcluded(javax.servlet.http.HttpServletRequest request) protected booleanisRequestSecure(javax.servlet.http.HttpServletRequest httpRequest) protected booleanisSessionInitialized(javax.servlet.http.HttpSession session) protected booleanisSessionNotInitialized(javax.servlet.http.HttpSession session, String queryString) protected voidmarkSessionInitialized(javax.servlet.http.HttpSession session) voidsetBrowseHistory(BrowseHistory browseHistory) voidsetCommerceCommonI18NService(CommerceCommonI18NService commerceCommonI18NService) voidsetPathMatcher(org.springframework.util.PathMatcher pathMatcher) voidsetRefererExcludeUrlSet(Set<String> refererExcludeUrlSet) voidsetStoreSessionFacade(StoreSessionFacade storeSessionFacade) Methods inherited from class org.springframework.web.filter.OncePerRequestFilter
doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatchMethods inherited from class org.springframework.web.filter.GenericFilterBean
addRequiredProperty, afterPropertiesSet, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext
-
Field Details
-
AJAX_REQUEST_HEADER_NAME
- See Also:
-
ORIGINAL_REFERER
- See Also:
-
-
Constructor Details
-
StorefrontFilter
public StorefrontFilter()
-
-
Method Details
-
doFilterInternal
public void doFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException - Specified by:
doFilterInternalin classorg.springframework.web.filter.OncePerRequestFilter- Throws:
IOExceptionjavax.servlet.ServletException
-
isGetMethod
protected boolean isGetMethod(javax.servlet.http.HttpServletRequest httpRequest) -
isRequestSecure
protected boolean isRequestSecure(javax.servlet.http.HttpServletRequest httpRequest) -
isSessionNotInitialized
protected boolean isSessionNotInitialized(javax.servlet.http.HttpSession session, String queryString) -
setStoreSessionFacade
-
setBrowseHistory
-
initDefaults
protected void initDefaults(javax.servlet.http.HttpServletRequest request) -
getStoreSessionFacade
-
getBrowseHistory
-
isSessionInitialized
protected boolean isSessionInitialized(javax.servlet.http.HttpSession session) -
markSessionInitialized
protected void markSessionInitialized(javax.servlet.http.HttpSession session) -
isRequestPathExcluded
protected boolean isRequestPathExcluded(javax.servlet.http.HttpServletRequest request) -
getRefererExcludeUrlSet
-
setRefererExcludeUrlSet
-
getPathMatcher
protected org.springframework.util.PathMatcher getPathMatcher() -
setPathMatcher
public void setPathMatcher(org.springframework.util.PathMatcher pathMatcher) -
setCommerceCommonI18NService
-