java.lang.Object | |||
↳ | org.apache.http.impl.cookie.AbstractCookieSpec | ||
↳ | org.apache.http.impl.cookie.CookieSpecBase | ||
↳ | org.apache.http.impl.cookie.NetscapeDraftSpec |
Netscape cookie draft compliant cookie policy
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 Netscape draft specification does not fully conform to the HTTP header format. Netscape draft does not specify whether multiple cookies may be sent in one header. Hence, comma character may be present in unquoted cookie value or unquoted parameter value.
header | the Set-Cookie received from the server |
---|
MalformedCookieException | if an exception occurs during parsing |
---|