|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.profile.web.core.security.LocalRedirectStrategy
public class LocalRedirectStrategy
This class insures that if using the successUrl or failureUrl request parameter, then the urls are valid and are local to the application (preventing a user modifying to go somewhere else on login success/failure)
| Constructor Summary | |
|---|---|
LocalRedirectStrategy()
|
|
| Method Summary | |
|---|---|
protected String |
calculateRedirectUrl(String contextPath,
String url)
Create the redirect url |
void |
sendRedirect(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String url)
|
void |
setContextRelative(boolean contextRelative)
Set whether or not the context should be included in the redirect path. |
void |
setEnforcePortMatch(boolean enforcePortMatch)
This forces the redirect url port to match the request port. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocalRedirectStrategy()
| Method Detail |
|---|
public void sendRedirect(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String url)
throws IOException
sendRedirect in interface org.springframework.security.web.RedirectStrategyIOException
protected String calculateRedirectUrl(String contextPath,
String url)
contextPath - url -
public void setEnforcePortMatch(boolean enforcePortMatch)
enforcePortMatch - public void setContextRelative(boolean contextRelative)
contextRelative -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||