Class PunchOutBeforeViewHandler

java.lang.Object
de.hybris.platform.b2bpunchoutaddon.interceptors.PunchOutBeforeViewHandler
All Implemented Interfaces:
BeforeViewHandler

public class PunchOutBeforeViewHandler extends Object implements BeforeViewHandler
  • Field Details

  • Constructor Details

    • PunchOutBeforeViewHandler

      public PunchOutBeforeViewHandler()
  • Method Details

    • 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 String getPunchoutView(String viewName)
    • setPunchoutModeInModel

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

      public Map<String,Map<String,String>> getViewMap()
    • setViewMap

      public void setViewMap(Map<String,Map<String,String>> viewMap)
    • getPunchOutAllowListUrlSet

      protected Set<String> getPunchOutAllowListUrlSet()
    • setPunchOutAllowListUrlSet

      public void setPunchOutAllowListUrlSet(Set<String> punchOutAllowListUrlSet)