public class SmartRedirectStrategy extends Object implements org.springframework.security.web.RedirectStrategy
| Modifier and Type | Field and Description |
|---|---|
static String |
PARAM_REDIRECT |
| Constructor and Description |
|---|
SmartRedirectStrategy() |
| Modifier and Type | Method and Description |
|---|---|
static String |
appendParam(String url,
String paramName,
String paramValue) |
static Boolean |
containsParam(String url,
String paramName) |
void |
sendRedirect(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String url)
Redirects the response to the supplied URL.
|
void |
setContextRelative(boolean useRelativeContext)
If true, causes any redirection URLs to be calculated minus the protocol
and context path (defaults to false).
|
public static final String PARAM_REDIRECT
public void sendRedirect(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String url)
throws IOException
If contextRelative is set, the redirect value will be the value after the request context path. Note that this will result in the loss of protocol information (HTTP or HTTPS), so will cause problems if a redirect is being performed to change to HTTPS, for example.
sendRedirect in interface org.springframework.security.web.RedirectStrategyIOExceptionpublic void setContextRelative(boolean useRelativeContext)
useRelativeContext - useRelativeContextCopyright © 2017. All rights reserved.