java.lang.Object | |||
↳ | org.apache.http.impl.cookie.AbstractCookieSpec | ||
↳ | org.apache.http.impl.cookie.CookieSpecBase | ||
↳ | org.apache.http.impl.cookie.NetscapeDraftSpec |
This CookieSpec
implementation conforms to the original draft
specification published by Netscape Communications. It should be avoided
unless absolutely necessary for compatibility with legacy code.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | EXPIRES_PATTERN |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Default constructor
| |||||||||||
Default constructor
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Parses the Set-Cookie value into an array of Cookies.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class org.apache.http.impl.cookie.CookieSpecBase | |||||||||||
From class org.apache.http.impl.cookie.AbstractCookieSpec | |||||||||||
From class
java.lang.Object
| |||||||||||
From interface org.apache.http.cookie.CookieSpec |
Parses the Set-Cookie value into an array of Cookies.
Syntax of the Set-Cookie HTTP Response Header:
This is the format a CGI script would use to add to the HTTP headers a new piece of data which is to be stored by the client for later retrieval.
Set-Cookie: NAME=VALUE; expires=DATE; path=PATH; domain=DOMAIN_NAME; secure
Please note that the Netscape draft specification does not fully conform to the HTTP
header format. Comma character if present in Set-Cookie
will not be treated
as a header element separator
header | the Set-Cookie received from the server |
---|
MalformedCookieException | if an exception occurs during parsing |
---|