Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean beforeController​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handler)
      Called before the DispatcherServlet calls the controller.
      protected boolean isGetMethod​(javax.servlet.http.HttpServletRequest request)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_UI_EXPERIENCE_LEVEL_PARAM

        public static final java.lang.String DEFAULT_UI_EXPERIENCE_LEVEL_PARAM
        See Also:
        Constant Field Values
    • Constructor Detail

      • SetUiExperienceBeforeControllerHandler

        public SetUiExperienceBeforeControllerHandler()
    • 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: BeforeControllerHandler
        Called before the DispatcherServlet calls the controller.
        Specified by:
        beforeController in interface BeforeControllerHandler
        Parameters:
        request - current HTTP request
        response - current HTTP response
        Returns:
        true if 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)