Class RequireHardLoginBeforeControllerHandler
java.lang.Object
de.hybris.platform.yacceleratorstorefront.interceptors.beforecontroller.RequireHardLoginBeforeControllerHandler
- All Implemented Interfaces:
BeforeControllerHandler
public class RequireHardLoginBeforeControllerHandler
extends Object
implements BeforeControllerHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbeforeController(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handler) Called before the DispatcherServlet calls the controller.protected <T extends Annotation>
TfindAnnotation(org.springframework.web.method.HandlerMethod handlerMethod, Class<T> annotationType) protected Stringprotected org.springframework.security.web.RedirectStrategyprotected StringgetRedirectUrl(javax.servlet.http.HttpServletRequest request) protected RequireHardLoginEvaluatorvoidsetLoginAndCheckoutUrl(String loginAndCheckoutUrl) voidsetLoginUrl(String loginUrl) voidsetRedirectStrategy(org.springframework.security.web.RedirectStrategy redirectStrategy) voidsetRequireHardLoginEvaluator(RequireHardLoginEvaluator requireHardLoginEvaluator)
-
Field Details
-
SECURE_GUID_SESSION_KEY
- See Also:
-
-
Constructor Details
-
RequireHardLoginBeforeControllerHandler
public RequireHardLoginBeforeControllerHandler()
-
-
Method Details
-
getLoginUrl
-
setLoginUrl
-
getRedirectStrategy
protected org.springframework.security.web.RedirectStrategy getRedirectStrategy() -
setRedirectStrategy
public void setRedirectStrategy(org.springframework.security.web.RedirectStrategy redirectStrategy) -
getLoginAndCheckoutUrl
-
setLoginAndCheckoutUrl
-
getRequireHardLoginEvaluator
-
setRequireHardLoginEvaluator
-
beforeController
public boolean beforeController(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handler) throws Exception Description copied from interface:BeforeControllerHandlerCalled before the DispatcherServlet calls the controller.- Specified by:
beforeControllerin interfaceBeforeControllerHandler- Parameters:
request- current HTTP requestresponse- current HTTP response- Returns:
trueif 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:
Exception- in case of errors
-
getRedirectUrl
-
findAnnotation
protected <T extends Annotation> T findAnnotation(org.springframework.web.method.HandlerMethod handlerMethod, Class<T> annotationType)
-