public interface CookieSerializer
HttpServletResponse
.Modifier and Type | Interface and Description |
---|---|
static class |
CookieSerializer.CookieValue
Contains the information necessary to write a value to the
HttpServletResponse . |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
readCookieValues(javax.servlet.http.HttpServletRequest request)
Reads all the matching cookies from the
HttpServletRequest . |
void |
writeCookieValue(CookieSerializer.CookieValue cookieValue)
Writes a given
CookieSerializer.CookieValue to the provided HttpServletResponse . |
void writeCookieValue(CookieSerializer.CookieValue cookieValue)
CookieSerializer.CookieValue
to the provided HttpServletResponse
.cookieValue
- the CookieSerializer.CookieValue
to write to
CookieSerializer.CookieValue.getResponse()
. Cannot be null.java.util.List<java.lang.String> readCookieValues(javax.servlet.http.HttpServletRequest request)
HttpServletRequest
. The result is a
List since there can be multiple Cookie
in a single request with a matching
name. For example, one Cookie may have a path of / and another of /context, but the
path is not transmitted in the request.request
- the HttpServletRequest
to read the cookie from. Cannot be
null.