Cookie management specification must define
| 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 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
| |
| 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.
| |