Class CartPageBeforeControllerHandler
- java.lang.Object
-
- de.hybris.platform.selectivecartsplitlistaddon.interceptors.beforecontroller.CartPageBeforeControllerHandler
-
- All Implemented Interfaces:
BeforeControllerHandler
public class CartPageBeforeControllerHandler extends java.lang.Object implements BeforeControllerHandler
Intercepts incoming requests to check if the current site will require authentication or not. The site can be secured through the HMC by accessing the list of web sites and modifying the attribute requiresAuthentication.
-
-
Constructor Summary
Constructors Constructor Description CartPageBeforeControllerHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbeforeController(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handler)Called before the DispatcherServlet calls the controller.protected SelectiveCartUpdateStrategygetSelectiveCartUpdateStrategy()voidsetSelectiveCartUpdateStrategy(SelectiveCartUpdateStrategy selectiveCartUpdateStrategy)
-
-
-
Method Detail
-
beforeController
public boolean beforeController(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handler) throws java.lang.ExceptionDescription copied from interface:BeforeControllerHandlerCalled before the DispatcherServlet calls the controller.- Specified by:
beforeControllerin interfaceBeforeControllerHandler- Parameters:
request- current HTTP requestresponse- current HTTP response- Returns:
trueif the execution chain should proceed with the next interceptor or the handler itself. Else, DispatcherServlet assumes that this interceptor has already dealt with the response itself.- Throws:
java.lang.Exception- in case of errors
-
getSelectiveCartUpdateStrategy
protected SelectiveCartUpdateStrategy getSelectiveCartUpdateStrategy()
-
setSelectiveCartUpdateStrategy
public void setSelectiveCartUpdateStrategy(SelectiveCartUpdateStrategy selectiveCartUpdateStrategy)
-
-