Class ConfigWro4jBeforeViewHandler
java.lang.Object
de.hybris.platform.yacceleratorstorefront.interceptors.beforeview.ConfigWro4jBeforeViewHandler
- All Implemented Interfaces:
BeforeViewHandler
Class to gather value of storefront.wro4j.enabled from properties file, which can enable wro4j.
-
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 SiteConfigServicevoidsetSiteConfigService(SiteConfigService siteConfigService)
-
Constructor Details
-
ConfigWro4jBeforeViewHandler
public ConfigWro4jBeforeViewHandler()
-
-
Method Details
-
getSiteConfigService
-
setSiteConfigService
-
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
-