Class FlashBuyBeforeControllerHandler

    • 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)
      Updates the flash buy status for cart when placing order
      • Methods inherited from class java.lang.Object

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

      • FlashBuyBeforeControllerHandler

        public FlashBuyBeforeControllerHandler()
    • Method Detail

      • beforeController

        public boolean beforeController​(javax.servlet.http.HttpServletRequest request,
                                        javax.servlet.http.HttpServletResponse response,
                                        org.springframework.web.method.HandlerMethod handler)
        Updates the flash buy status for cart when placing order
        Specified by:
        beforeController in interface BeforeControllerHandler
        Parameters:
        request - the http request
        response - the http response
        handler - Handler method
        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
        Throws:
        java.lang.Exception - throw Exception when updating flash buy status failed