Class DebugInfoBeforeViewHandler

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

public class DebugInfoBeforeViewHandler extends Object implements 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 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: 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
    • mapToString

      protected String mapToString(Map<String,Object> map)