org.apache.http.cookie.CookieSpec implementation.
Rendered obsolete by org..
org.apache.http.impl.cookie.RFC6265StrictSpec
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static CookieOrigin | adjustEffectiveHost(final CookieOrigin
origin where cookie is received from or being sent to. origin)Set 'effective host name' as defined in RFC 2965. |
| private List | |
| protected void | formatCookieAsVer(final CharArrayBuffer
The char array buffer to use for output buffer, final Cookie The cookie, final int Cookie to be formatted as stringThe version to use. version)Overrides org. |
| public int | getVersion()
Overrides org. Implements org. |
| public Header | getVersionHeader()
Overrides org. Implements org. |
| public boolean | match(final Cookie
the Cookie to be matched cookie, final CookieOrigin the target to test against origin)Overrides org. Implements org. |
| public List | parse(final Header
the header, final CookieOrigin Set-Cookie received from the serverdetails of the cookie origin origin)Overrides org. Implements org. "Set-Cookie" Header into an array of Cookies.
|
| protected List | parse(final HeaderElement[] elems, final CookieOrigin origin)
|
| public String | toString()
Returns a string representation of the object.
|
| public void | validate(final Cookie
the Cookie to validate cookie, final CookieOrigin details of the cookie origin origin)Overrides org. Implements org. |
| RFC2965Spec | back to summary |
|---|---|
| public RFC2965Spec() Default constructor | |
| RFC2965Spec | back to summary |
|---|---|
| public RFC2965Spec(final String[] datepatterns, final boolean oneHeader) | |
| RFC2965Spec | back to summary |
|---|---|
| pack-priv RFC2965Spec(final boolean oneHeader, final CommonCookieAttributeHandler... handlers) | |
| adjustEffectiveHost | back to summary |
|---|---|
| private static CookieOrigin adjustEffectiveHost(final CookieOrigin origin) Set 'effective host name' as defined in RFC 2965. If a host name contains no dots, the effective host name is that name with the string .local appended to it. Otherwise the effective host name is the same as the host name. Note that all effective host names contain at least one dot.
| |
| createCookies | back to summary |
|---|---|
| private List | |
| formatCookieAsVer | back to summary |
|---|---|
| protected void formatCookieAsVer(final CharArrayBuffer buffer, final Cookie cookie, final int version) Overrides org. Adds valid Port attribute value, e.g. "8000,8001,8002"
| |
| getVersion | back to summary |
|---|---|
| public int getVersion() Overrides org. Implements org. Doc from org. Returns version of the state management this cookie specification conforms to.
| |
| getVersionHeader | back to summary |
|---|---|
| public Header getVersionHeader() Overrides org. Implements org. Doc from org. Returns a request header identifying what version of the state management
specification is understood. May be
| |
| match | back to summary |
|---|---|
| public boolean match(final Cookie cookie, final CookieOrigin origin) Overrides org. Implements org. Doc from org. Determines if a Cookie matches the target location.
| |
| parse | back to summary |
|---|---|
| public List Overrides org. Implements org. Doc from org. Parse the This method will not perform the validation of the resultant
| |
| parse | back to summary |
|---|---|
| protected List Overrides org.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object. | |
| validate | back to summary |
|---|---|
| public void validate(final Cookie cookie, final CookieOrigin origin) throws MalformedCookieException Overrides org. Implements org. Doc from org. Validate the cookie according to validation rules defined by the cookie specification.
| |