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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet excludedUrlsprotected org.springframework.util.PathMatcherGet pathMatcherprotected booleanisHandlerRequired(String servletPath) Is HandlerRequiredbooleanpreHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler) voidsetExcludedUrls(List<String> excludedUrls) Set excludedUrlsvoidsetPathMatcher(org.springframework.util.PathMatcher pathMatcher) Set pathMatcherMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.servlet.AsyncHandlerInterceptor
afterConcurrentHandlingStartedMethods inherited from interface org.springframework.web.servlet.HandlerInterceptor
afterCompletion, postHandle
-
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
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
Get excludedUrls- Returns:
- List<String
-
setExcludedUrls
Set excludedUrls- Parameters:
excludedUrls- the excludedUrls
-