Class SetUiExperienceBeforeControllerHandler
- java.lang.Object
-
- de.hybris.platform.yacceleratorstorefront.interceptors.beforecontroller.SetUiExperienceBeforeControllerHandler
-
- All Implemented Interfaces:
BeforeControllerHandler
public class SetUiExperienceBeforeControllerHandler extends java.lang.Object implements BeforeControllerHandler
Allows to overwrite the UiExperience level in the session via de.hybris.platform.acceleratorservices.uiexperience.UiExperienceService#setOverrideUiExperienceLevel
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_UI_EXPERIENCE_LEVEL_PARAM
-
Constructor Summary
Constructors Constructor Description SetUiExperienceBeforeControllerHandler()
-
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 booleanisGetMethod(javax.servlet.http.HttpServletRequest request)
-
-
-
Field Detail
-
DEFAULT_UI_EXPERIENCE_LEVEL_PARAM
public static final java.lang.String DEFAULT_UI_EXPERIENCE_LEVEL_PARAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
beforeController
public boolean beforeController(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handler)Description 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.
-
isGetMethod
protected boolean isGetMethod(javax.servlet.http.HttpServletRequest request)
-
-