Class PunchOutBeforeViewHandler

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String VIEW_NAME_MAP_KEY  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void beforeView​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.servlet.ModelAndView modelAndView)
      Called before the DispatcherServlet renders the view.
      protected java.lang.String getPunchoutView​(java.lang.String viewName)  
      java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>> getViewMap()  
      protected void setPunchoutModeInModel​(org.springframework.ui.ModelMap model)  
      void setViewMap​(java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>> viewMap)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • VIEW_NAME_MAP_KEY

        public static final java.lang.String VIEW_NAME_MAP_KEY
        See Also:
        Constant Field Values
    • Constructor Detail

      • PunchOutBeforeViewHandler

        public PunchOutBeforeViewHandler()
    • Method Detail

      • beforeView

        public void beforeView​(javax.servlet.http.HttpServletRequest request,
                               javax.servlet.http.HttpServletResponse response,
                               org.springframework.web.servlet.ModelAndView modelAndView)
                        throws PunchOutException
        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
        Throws:
        PunchOutException
      • getPunchoutView

        protected java.lang.String getPunchoutView​(java.lang.String viewName)
      • setPunchoutModeInModel

        protected void setPunchoutModeInModel​(org.springframework.ui.ModelMap model)
      • getViewMap

        public java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>> getViewMap()
      • setViewMap

        public void setViewMap​(java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>> viewMap)