Class DebugInfoBeforeViewHandler
java.lang.Object
de.hybris.platform.yacceleratorstorefront.interceptors.beforeview.DebugInfoBeforeViewHandler
- All Implemented Interfaces:
BeforeViewHandler
BeforeViewHandler that adds additional debug information to the request attributes so that these can be output into the
page to help with development or production issues.
Simply serializes the jalo session attributes to a string stored in the request attributes.
Debug output is typically rendered into the view by the debugFooter.tag.
-
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 StringmapToString(Map<String, Object> map)
-
Constructor Details
-
DebugInfoBeforeViewHandler
public DebugInfoBeforeViewHandler()
-
-
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
-
mapToString
-