org.apache.http.cookie.CookieSpec implementation conforms to
the original draft specification published by Netscape Communications.
It should be avoided unless absolutely necessary for compatibility with
legacy applications.
Rendered obsolete by org..
org.apache.http.impl.cookie.RFC6265LaxSpec
| Modifier and Type | Field and Description |
|---|---|
| protected static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| pack-priv | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public List | formatCookies(final List<Cookie>
the Cookies format into a Cookie header cookies)Implements org. "Cookie" headers for an array of Cookies.
|
| public int | getVersion()
Implements org. |
| public Header | getVersionHeader()
Implements org. |
| public List | Returns: an array ofCookies parsed from the Set-Cookie valuethe header, final CookieOrigin Set-Cookie received from the serverdetails of the cookie origin origin)Implements org. Cookies.
|
| public String |
| EXPIRES_PATTERN | back to summary |
|---|---|
| protected static final String EXPIRES_PATTERN | |
| NetscapeDraftSpec | back to summary |
|---|---|
| public NetscapeDraftSpec(final String[] datepatterns) Default constructor | |
| NetscapeDraftSpec | back to summary |
|---|---|
| pack-priv NetscapeDraftSpec(final CommonCookieAttributeHandler... handlers) | |
| NetscapeDraftSpec | back to summary |
|---|---|
| public NetscapeDraftSpec() | |
| formatCookies | back to summary |
|---|---|
| public List Implements org. Doc from org. Create | |
| getVersion | back to summary |
|---|---|
| public int getVersion() Implements org. Doc from org. Returns version of the state management this cookie specification conforms to.
| |
| getVersionHeader | back to summary |
|---|---|
| public Header getVersionHeader() Implements org. Doc from org. Returns a request header identifying what version of the state management
specification is understood. May be
| |
| parse | back to summary |
|---|---|
| public List Implements org. Parses the Set-Cookie value into an array of 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
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |