Class PunchOutBeforeViewHandler
- java.lang.Object
-
- de.hybris.platform.b2bpunchoutaddon.interceptors.PunchOutBeforeViewHandler
-
- All Implemented Interfaces:
BeforeViewHandler
public class PunchOutBeforeViewHandler extends java.lang.Object implements BeforeViewHandler
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringVIEW_NAME_MAP_KEY
-
Constructor Summary
Constructors Constructor Description PunchOutBeforeViewHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeView(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.StringgetPunchoutView(java.lang.String viewName)java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>getViewMap()protected voidsetPunchoutModeInModel(org.springframework.ui.ModelMap model)voidsetViewMap(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> viewMap)
-
-
-
Field Detail
-
VIEW_NAME_MAP_KEY
public static final java.lang.String VIEW_NAME_MAP_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
beforeView
public void beforeView(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.servlet.ModelAndView modelAndView) throws PunchOutExceptionDescription 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
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)
-
-