Class UiThemeResourceBeforeViewHandler
java.lang.Object
de.hybris.platform.yacceleratorstorefront.interceptors.beforeview.UiThemeResourceBeforeViewHandler
- All Implemented Interfaces:
BeforeViewHandler
Interceptor to setup the paths to the UI resource paths in the model before passing it to the view. Sets up the path
to the web accessible UI resources for the following: * The current site * The current theme * The common resources
All of these paths are qualified by the current UiExperienceLevel
-
Field Summary
Fields -
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.
-
Field Details
-
COMMON
- See Also:
-
SHARED
- See Also:
-
-
Constructor Details
-
UiThemeResourceBeforeViewHandler
public UiThemeResourceBeforeViewHandler()
-
-
Method Details
-
beforeView
public void beforeView(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.servlet.ModelAndView modelAndView) 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
-