org.apache.http.cookie.CookieSpec |
Known Indirect Subclasses |
Defines the cookie management specification.
Cookie management specification must define
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create "Cookie" headers for an array of Cookies.
| |||||||||||
Returns version of the state management this cookie specification
conforms to.
| |||||||||||
Returns a request header identifying what version of the state management
specification is understood.
| |||||||||||
Determines if a Cookie matches the target location.
| |||||||||||
Parse the "Set-Cookie" Header into an array of Cookies.
| |||||||||||
Validate the cookie according to validation rules defined by the
cookie specification.
|
Create "Cookie" headers for an array of Cookies.
cookies | the Cookies format into a Cookie header |
---|
IllegalArgumentException | if an input parameter is illegal |
---|
Returns version of the state management this cookie specification conforms to.
Returns a request header identifying what version of the state management
specification is understood. May be null
if the cookie
specification does not support Cookie2 header.
Determines if a Cookie matches the target location.
cookie | the Cookie to be matched |
---|---|
origin | the target to test against |
Parse the "Set-Cookie" Header into an array of Cookies.
This method will not perform the validation of the resultant Cookies
header | the Set-Cookie received from the server |
---|---|
origin | details of the cookie origin |
MalformedCookieException | if an exception occurs during parsing |
---|
Validate the cookie according to validation rules defined by the cookie specification.
cookie | the Cookie to validate |
---|---|
origin | details of the cookie origin |
MalformedCookieException | if the cookie is invalid |
---|