Class SimpleSavedRequest
- java.lang.Object
-
- org.springframework.security.web.savedrequest.SimpleSavedRequest
-
- All Implemented Interfaces:
java.io.Serializable
,SavedRequest
public class SimpleSavedRequest extends java.lang.Object implements SavedRequest
A Bean implementation of SavedRequest- Since:
- 5.1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleSavedRequest()
SimpleSavedRequest(java.lang.String redirectUrl)
SimpleSavedRequest(SavedRequest request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<javax.servlet.http.Cookie>
getCookies()
java.util.Collection<java.lang.String>
getHeaderNames()
java.util.List<java.lang.String>
getHeaderValues(java.lang.String name)
java.util.List<java.util.Locale>
getLocales()
java.lang.String
getMethod()
java.util.Map<java.lang.String,java.lang.String[]>
getParameterMap()
java.lang.String[]
getParameterValues(java.lang.String name)
java.lang.String
getRedirectUrl()
void
setCookies(java.util.List<javax.servlet.http.Cookie> cookies)
void
setHeaders(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
void
setLocales(java.util.List<java.util.Locale> locales)
void
setMethod(java.lang.String method)
void
setParameters(java.util.Map<java.lang.String,java.lang.String[]> parameters)
void
setRedirectUrl(java.lang.String redirectUrl)
-
-
-
Constructor Detail
-
SimpleSavedRequest
public SimpleSavedRequest()
-
SimpleSavedRequest
public SimpleSavedRequest(java.lang.String redirectUrl)
-
SimpleSavedRequest
public SimpleSavedRequest(SavedRequest request)
-
-
Method Detail
-
getRedirectUrl
public java.lang.String getRedirectUrl()
- Specified by:
getRedirectUrl
in interfaceSavedRequest
- Returns:
- the URL for the saved request, allowing a redirect to be performed.
-
getCookies
public java.util.List<javax.servlet.http.Cookie> getCookies()
- Specified by:
getCookies
in interfaceSavedRequest
-
getMethod
public java.lang.String getMethod()
- Specified by:
getMethod
in interfaceSavedRequest
-
getHeaderValues
public java.util.List<java.lang.String> getHeaderValues(java.lang.String name)
- Specified by:
getHeaderValues
in interfaceSavedRequest
-
getHeaderNames
public java.util.Collection<java.lang.String> getHeaderNames()
- Specified by:
getHeaderNames
in interfaceSavedRequest
-
getLocales
public java.util.List<java.util.Locale> getLocales()
- Specified by:
getLocales
in interfaceSavedRequest
-
getParameterValues
public java.lang.String[] getParameterValues(java.lang.String name)
- Specified by:
getParameterValues
in interfaceSavedRequest
-
getParameterMap
public java.util.Map<java.lang.String,java.lang.String[]> getParameterMap()
- Specified by:
getParameterMap
in interfaceSavedRequest
-
setRedirectUrl
public void setRedirectUrl(java.lang.String redirectUrl)
-
setCookies
public void setCookies(java.util.List<javax.servlet.http.Cookie> cookies)
-
setMethod
public void setMethod(java.lang.String method)
-
setHeaders
public void setHeaders(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
-
setLocales
public void setLocales(java.util.List<java.util.Locale> locales)
-
setParameters
public void setParameters(java.util.Map<java.lang.String,java.lang.String[]> parameters)
-
-