org.broadleafcommerce.common.web.security
Class BroadleafAuthenticationSuccessRedirectStrategy
java.lang.Object
org.broadleafcommerce.common.web.security.BroadleafAuthenticationSuccessRedirectStrategy
- All Implemented Interfaces:
- org.springframework.security.web.RedirectStrategy
@Component(value="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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BroadleafAuthenticationSuccessRedirectStrategy
public BroadleafAuthenticationSuccessRedirectStrategy()
sendRedirect
public void sendRedirect(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String url)
throws IOException
- Specified by:
sendRedirect in interface org.springframework.security.web.RedirectStrategy
- Throws:
IOException
updateLoginErrorUrlForAjax
public String updateLoginErrorUrlForAjax(String url)
getRedirectPath
public String getRedirectPath()
setRedirectPath
public void setRedirectPath(String redirectPath)
getRedirectStrategy
public org.springframework.security.web.RedirectStrategy getRedirectStrategy()
setRedirectStrategy
public void setRedirectStrategy(org.springframework.security.web.RedirectStrategy redirectStrategy)
Copyright © 2012. All Rights Reserved.