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