public class LocalRedirectStrategy extends Object implements org.springframework.security.web.RedirectStrategy
| Constructor and Description |
|---|
LocalRedirectStrategy() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public void sendRedirect(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String url)
throws IOException
sendRedirect in interface org.springframework.security.web.RedirectStrategyIOExceptionprotected String calculateRedirectUrl(String contextPath, String url)
contextPath - url - public void setEnforcePortMatch(boolean enforcePortMatch)
enforcePortMatch - public void setContextRelative(boolean contextRelative)
contextRelative - Copyright © 2015. All Rights Reserved.