Class BroadleafAuthenticationSuccessRedirectStrategy
java.lang.Object
org.broadleafcommerce.common.web.security.BroadleafAuthenticationSuccessRedirectStrategy
- All Implemented Interfaces:
org.springframework.security.web.RedirectStrategy
@Component("blAuthenticationSuccessRedirectStrategy")
public class BroadleafAuthenticationSuccessRedirectStrategy
extends Object
implements org.springframework.security.web.RedirectStrategy
If the incoming request is an ajax request, the system will add the desired redirect path to the session and
then redirect to the path configured for the redirectPath property.
It is assumed that the redirectPath will be picked up by the BroadleafRedirectController.
- Author:
- bpolster
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.web.RedirectStrategyvoidsendRedirect(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String url) voidsetRedirectPath(String redirectPath) voidsetRedirectStrategy(org.springframework.security.web.RedirectStrategy redirectStrategy)
-
Constructor Details
-
BroadleafAuthenticationSuccessRedirectStrategy
public BroadleafAuthenticationSuccessRedirectStrategy()
-
-
Method Details
-
sendRedirect
public void sendRedirect(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String url) throws IOException - Specified by:
sendRedirectin interfaceorg.springframework.security.web.RedirectStrategy- Throws:
IOException
-
updateLoginErrorUrlForAjax
-
getRedirectPath
-
setRedirectPath
-
getRedirectStrategy
public org.springframework.security.web.RedirectStrategy getRedirectStrategy() -
setRedirectStrategy
public void setRedirectStrategy(org.springframework.security.web.RedirectStrategy redirectStrategy)
-