Cookie management specification must define
Please do not use methods marked as @Obsolete. They have been rendered obsolete by RFC 6265.
| Modifier and Type | Method and Description |
|---|---|
| public List | Returns: a Header for the given Cookies.the Cookies format into a Cookie header cookies)Create |
| public int | Returns: version of the state management specificationReturns version of the state management this cookie specification conforms to. |
| public Header | getVersionHeader()
Returns a request header identifying what version of the state management specification is understood. |
| public boolean | Returns: true if the cookie should be submitted with a request
with given attributes, false otherwise.the Cookie to be matched cookie, CookieOrigin the target to test against origin)Determines if a Cookie matches the target location. |
| public List | Returns: an array ofCookies parsed from the headerthe header, CookieOrigin Set-Cookie received from the serverdetails of the cookie origin origin)Parse the |
| public void | validate(Cookie
the Cookie to validate cookie, CookieOrigin details of the cookie origin origin)Validate the cookie according to validation rules defined by the cookie specification. |
| formatCookies | back to summary |
|---|---|
| public List Create
| |
| getVersion | back to summary |
|---|---|
| public int getVersion() Returns version of the state management this cookie specification conforms to.
| |
| getVersionHeader | back to summary |
|---|---|
| public Header getVersionHeader() Returns a request header identifying what version of the state management
specification is understood. May be
| |
| match | back to summary |
|---|---|
| public boolean match(Cookie cookie, CookieOrigin origin) Determines if a Cookie matches the target location.
| |
| parse | back to summary |
|---|---|
| public List Parse the This method will not perform the validation of the resultant
| |
| validate | back to summary |
|---|---|
| public void validate(Cookie cookie, CookieOrigin origin) throws MalformedCookieException Validate the cookie according to validation rules defined by the cookie specification.
| |