public static class CookieSerializer.CookieValue extends Object
HttpServletResponse.| Constructor and Description |
|---|
CookieValue(HttpServletRequest request,
HttpServletResponse response,
String cookieValue)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCookieValue()
The value to be written.
|
HttpServletRequest |
getRequest()
Gets the request to use.
|
HttpServletResponse |
getResponse()
Gets the response to write to.
|
public CookieValue(HttpServletRequest request, HttpServletResponse response, String cookieValue)
request - the HttpServletRequest to use. Useful for
determining the context in which the cookie is set. Cannot
be null.response - the HttpServletResponse to use.cookieValue - the value of the cookie to be written. This value may be
modified by the CookieSerializer when writing to
the actual cookie so long as the original value is
returned when the cookie is read.public HttpServletRequest getRequest()
public HttpServletResponse getResponse()
public String getCookieValue()
CookieSerializer before written to the cookie. However, the value must be the same as the original when it is read back in.