Package | Description |
---|---|
org.forgerock.http.header |
Processes HTTP message header fields.
|
org.forgerock.http.protocol |
Models and manages elements of the Hypertext Transfer Protocol.
|
Modifier and Type | Method and Description |
---|---|
List<Cookie> |
SetCookieHeader.getCookies()
Returns the cookies.
|
List<Cookie> |
SetCookie2Header.getCookies()
Returns the unmodifiable list of cookies.
|
List<Cookie> |
CookieHeader.getCookies()
Returns the cookies' request list.
|
abstract List<Cookie> |
AbstractSetCookieHeader.getCookies()
Returns the list of
Cookie s from a SetCookieHeader or a SetCookie2Header . |
Constructor and Description |
---|
CookieHeader(List<Cookie> cookies)
Constructs a new header with the provided cookies.
|
SetCookie2Header(List<Cookie> cookies)
Constructs a new
Set-Cookie2 with the provided cookies. |
SetCookieHeader(List<Cookie> cookies)
Constructs a new header with the provided cookies.
|
Modifier and Type | Method and Description |
---|---|
Cookie |
Cookie.setComment(String comment)
Sets the intended use of a cookie.
|
Cookie |
Cookie.setCommentURL(String commentURL)
Sets the URL identifying the intended use of a cookie.
|
Cookie |
Cookie.setDiscard(Boolean discard)
Sets the value indicating whether the user agent should discard the
cookie unconditionally when it terminates.
|
Cookie |
Cookie.setDomain(String domain)
Sets the domain for which the cookie is valid.
|
Cookie |
Cookie.setExpires(Date expires)
Sets the lifetime of the cookie, expressed as the date and time of
expiration.
|
Cookie |
Cookie.setHttpOnly(Boolean httpOnly)
Sets the value indicating whether the user agent should make the cookie
inaccessible to client side script.
|
Cookie |
Cookie.setMaxAge(Integer maxAge)
Sets the lifetime of the cookie, expressed in seconds.
|
Cookie |
Cookie.setName(String name)
Sets the name of the cookie.
|
Cookie |
Cookie.setPath(String path)
Sets the subset of URLs on the origin server to which this cookie
applies.
|
Cookie |
Cookie.setPort(List<Integer> port)
Set the Port attribute as defined per RFC 2965 for
Set-Cookie2 . |
Cookie |
Cookie.setSecure(Boolean secure)
Sets the value indicating whether the user agent should use only secure
means to send back this cookie.
|
Cookie |
Cookie.setValue(String value)
Sets the value of the cookie.
|
Cookie |
Cookie.setValueWasQuoted(boolean valueWasQuoted)
Sets the valueWasQuoted flag to indicate if the original cookie value was enclosed in "", used when recreating
the cookie header.
|
Cookie |
Cookie.setVersion(Integer version)
Sets the version of the state management mechanism to which this cookie
conforms.
|
Modifier and Type | Method and Description |
---|---|
Set<Map.Entry<String,List<Cookie>>> |
RequestCookies.entrySet() |
List<Cookie> |
RequestCookies.get(Object key) |
Collection<List<Cookie>> |
RequestCookies.values() |
Copyright 2011-2017 ForgeRock AS.