Class CookieNotificationBeforeViewHandler

java.lang.Object
de.hybris.platform.yacceleratorstorefront.interceptors.beforeview.CookieNotificationBeforeViewHandler
All Implemented Interfaces:
BeforeViewHandler

public class CookieNotificationBeforeViewHandler extends Object implements BeforeViewHandler
This class is responsible to decide if the cookie notification should be displayed.
  • Constructor Details

    • CookieNotificationBeforeViewHandler

      public CookieNotificationBeforeViewHandler()
  • Method Details

    • beforeView

      public void beforeView(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.servlet.ModelAndView modelAndView) throws Exception
      Description copied from interface: BeforeViewHandler
      Called before the DispatcherServlet renders the view. Can expose additional model objects to the view via the given ModelAndView.
      Specified by:
      beforeView in interface BeforeViewHandler
      Parameters:
      request - current HTTP request
      response - current HTTP response
      modelAndView - the ModelAndView that the handler returned
      Throws:
      Exception - in case of errors
    • getCookieNotificationCookieGenerator

      protected CookieNotificationCookieGenerator getCookieNotificationCookieGenerator()
    • setCookieNotificationCookieGenerator

      public void setCookieNotificationCookieGenerator(CookieNotificationCookieGenerator cookieNotificationCookieGenerator)