Class PunchOutBeforeViewHandler
java.lang.Object
de.hybris.platform.b2bpunchoutaddon.interceptors.PunchOutBeforeViewHandler
- All Implemented Interfaces:
BeforeViewHandler
-
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.protected StringgetPunchoutView(String viewName) voidsetPunchOutAllowListUrlSet(Set<String> punchOutAllowListUrlSet) protected voidsetPunchoutModeInModel(org.springframework.ui.ModelMap model) void
-
Field Details
-
VIEW_NAME_MAP_KEY
- See Also:
-
-
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: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- Throws:
PunchOutException
-
getPunchoutView
-
setPunchoutModeInModel
protected void setPunchoutModeInModel(org.springframework.ui.ModelMap model) -
getViewMap
-
setViewMap
-
getPunchOutAllowListUrlSet
-
setPunchOutAllowListUrlSet
-