Class RemoveTransactionsBeforeControllerInterceptor

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

public class RemoveTransactionsBeforeControllerInterceptor extends org.springframework.web.servlet.handler.HandlerInterceptorAdapter
This interceptor is created only to remove payment transactions from the session as we are using them to display the partial amount in reservation totals and reservation overlay totals components. Since reservation totals and reservation overlay totals components are mapped to almost every page so it wouldn't be appropriate to display the partial payment on pages where it doesn't make any sense
  • Constructor Details

    • RemoveTransactionsBeforeControllerInterceptor

      public RemoveTransactionsBeforeControllerInterceptor()
  • Method Details

    • preHandle

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

      protected boolean isHandlerRequired(String servletPath)
      Is HandlerRequired
      Parameters:
      servletPath - the servletPath
      Returns:
      is handler required
    • getPathMatcher

      protected org.springframework.util.PathMatcher getPathMatcher()
      Get pathMatcher
      Returns:
      pathMatcher
    • setPathMatcher

      public void setPathMatcher(org.springframework.util.PathMatcher pathMatcher)
      Set pathMatcher
      Parameters:
      pathMatcher - the pathMatcher
    • getExcludedUrls

      protected List<String> getExcludedUrls()
      Get excludedUrls
      Returns:
      List<String
    • setExcludedUrls

      public void setExcludedUrls(List<String> excludedUrls)
      Set excludedUrls
      Parameters:
      excludedUrls - the excludedUrls