org.broadleafcommerce.common.web.security
Class BroadleafAuthenticationSuccessRedirectStrategy

java.lang.Object
  extended by 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

Constructor Summary
BroadleafAuthenticationSuccessRedirectStrategy()
           
 
Method Summary
 String getRedirectPath()
           
 org.springframework.security.web.RedirectStrategy getRedirectStrategy()
           
 void sendRedirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String url)
           
 void setRedirectPath(String redirectPath)
           
 void setRedirectStrategy(org.springframework.security.web.RedirectStrategy redirectStrategy)
           
 String updateLoginErrorUrlForAjax(String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BroadleafAuthenticationSuccessRedirectStrategy

public BroadleafAuthenticationSuccessRedirectStrategy()
Method Detail

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 © 2013. All Rights Reserved.