Class RequireHardLoginBeforeControllerHandler
- java.lang.Object
-
- de.hybris.platform.yacceleratorstorefront.interceptors.beforecontroller.RequireHardLoginBeforeControllerHandler
-
- All Implemented Interfaces:
BeforeControllerHandler
public class RequireHardLoginBeforeControllerHandler extends java.lang.Object implements BeforeControllerHandler
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSECURE_GUID_SESSION_KEY
-
Constructor Summary
Constructors Constructor Description RequireHardLoginBeforeControllerHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbeforeController(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 java.lang.annotation.Annotation>
TfindAnnotation(org.springframework.web.method.HandlerMethod handlerMethod, java.lang.Class<T> annotationType)java.lang.StringgetLoginAndCheckoutUrl()protected java.lang.StringgetLoginUrl()protected org.springframework.security.web.RedirectStrategygetRedirectStrategy()protected java.lang.StringgetRedirectUrl(javax.servlet.http.HttpServletRequest request)protected RequireHardLoginEvaluatorgetRequireHardLoginEvaluator()voidsetLoginAndCheckoutUrl(java.lang.String loginAndCheckoutUrl)voidsetLoginUrl(java.lang.String loginUrl)voidsetRedirectStrategy(org.springframework.security.web.RedirectStrategy redirectStrategy)voidsetRequireHardLoginEvaluator(RequireHardLoginEvaluator requireHardLoginEvaluator)
-
-
-
Field Detail
-
SECURE_GUID_SESSION_KEY
public static final java.lang.String SECURE_GUID_SESSION_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getLoginUrl
protected java.lang.String getLoginUrl()
-
setLoginUrl
public void setLoginUrl(java.lang.String loginUrl)
-
getRedirectStrategy
protected org.springframework.security.web.RedirectStrategy getRedirectStrategy()
-
setRedirectStrategy
public void setRedirectStrategy(org.springframework.security.web.RedirectStrategy redirectStrategy)
-
getLoginAndCheckoutUrl
public java.lang.String getLoginAndCheckoutUrl()
-
setLoginAndCheckoutUrl
public void setLoginAndCheckoutUrl(java.lang.String loginAndCheckoutUrl)
-
getRequireHardLoginEvaluator
protected RequireHardLoginEvaluator getRequireHardLoginEvaluator()
-
setRequireHardLoginEvaluator
public void setRequireHardLoginEvaluator(RequireHardLoginEvaluator requireHardLoginEvaluator)
-
beforeController
public boolean beforeController(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handler) throws java.lang.ExceptionDescription 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:
java.lang.Exception- in case of errors
-
getRedirectUrl
protected java.lang.String getRedirectUrl(javax.servlet.http.HttpServletRequest request)
-
findAnnotation
protected <T extends java.lang.annotation.Annotation> T findAnnotation(org.springframework.web.method.HandlerMethod handlerMethod, java.lang.Class<T> annotationType)
-
-