Class CurrencyUpdateBeforeControllerHandler

java.lang.Object
org.springframework.web.servlet.handler.HandlerInterceptorAdapter
de.hybris.platform.travelacceleratorstorefront.interceptors.beforecontroller.CurrencyUpdateBeforeControllerHandler
All Implemented Interfaces:
org.springframework.web.servlet.AsyncHandlerInterceptor, org.springframework.web.servlet.HandlerInterceptor

public class CurrencyUpdateBeforeControllerHandler extends org.springframework.web.servlet.handler.HandlerInterceptorAdapter
Below Interceptor is created to store the current currency as a previous currency in a session immediately before it gets updated to the new one so that it can be used to clear the facets for search on currency change event
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    preHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.web.servlet.AsyncHandlerInterceptor

    afterConcurrentHandlingStarted

    Methods inherited from interface org.springframework.web.servlet.HandlerInterceptor

    afterCompletion, postHandle
  • Constructor Details

    • CurrencyUpdateBeforeControllerHandler

      public CurrencyUpdateBeforeControllerHandler()
  • Method Details

    • preHandle

      public boolean preHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler) throws Exception
      Throws:
      Exception