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 Details

  • 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:
      doFilterInternal in class org.springframework.web.filter.OncePerRequestFilter
      Throws:
      IOException
      javax.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

      public void setStoreSessionFacade(StoreSessionFacade storeSessionFacade)
    • setBrowseHistory

      public void setBrowseHistory(BrowseHistory browseHistory)
    • initDefaults

      protected void initDefaults(javax.servlet.http.HttpServletRequest request)
    • getStoreSessionFacade

      protected StoreSessionFacade getStoreSessionFacade()
    • getBrowseHistory

      protected BrowseHistory 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

      protected Set<String> getRefererExcludeUrlSet()
    • setRefererExcludeUrlSet

      public void setRefererExcludeUrlSet(Set<String> refererExcludeUrlSet)
    • getPathMatcher

      protected org.springframework.util.PathMatcher getPathMatcher()
    • setPathMatcher

      public void setPathMatcher(org.springframework.util.PathMatcher pathMatcher)
    • setCommerceCommonI18NService

      public void setCommerceCommonI18NService(CommerceCommonI18NService commerceCommonI18NService)