Class ConsentManagementBeforeViewHandler
java.lang.Object
de.hybris.platform.yacceleratorstorefront.interceptors.beforeview.ConsentManagementBeforeViewHandler
- All Implemented Interfaces:
BeforeViewHandler
This class is responsible to handle cookie consents for anonymous users.
It populates the model with the {consentTemplatesToDisplay}:List, which are used to render in
JSP.
It relies on session values set by
It populates the model with the {consentTemplatesToDisplay}:List
It relies on session values set by
ConsentFilter-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeView(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.servlet.ModelAndView modelAndView) Called before the DispatcherServlet renders the view.protected List<ConsentTemplateData>protected List<ConsentTemplateData>
-
Constructor Details
-
ConsentManagementBeforeViewHandler
public ConsentManagementBeforeViewHandler()
-
-
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:BeforeViewHandlerCalled before the DispatcherServlet renders the view. Can expose additional model objects to the view via the given ModelAndView.- Specified by:
beforeViewin interfaceBeforeViewHandler- Parameters:
request- current HTTP requestresponse- current HTTP responsemodelAndView- theModelAndViewthat the handler returned- Throws:
Exception- in case of errors
-
getConsentTemplatesToDisplay
-
getConsentTemplates
-