public class

RFC2109Spec

extends CookieSpecBase
java.lang.Object
   ↳ org.apache.http.impl.cookie.AbstractCookieSpec
     ↳ org.apache.http.impl.cookie.CookieSpecBase
       ↳ org.apache.http.impl.cookie.RFC2109Spec
Known Direct Subclasses

Class Overview

RFC 2109 compliant CookieSpec implementation. This is an older version of the official HTTP state management specification superseded by RFC 2965.

See Also

Summary

Public Constructors
RFC2109Spec(String[] datepatterns, boolean oneHeader)
Default constructor
RFC2109Spec()
Default constructor
Public Methods
List<Header> formatCookies(List<Cookie> cookies)
int getVersion()
Header getVersionHeader()
List<Cookie> parse(Header header, CookieOrigin origin)
String toString()
void validate(Cookie cookie, CookieOrigin origin)
Protected Methods
void formatCookieAsVer(CharArrayBuffer buffer, Cookie cookie, int version)
Return a string suitable for sending in a "Cookie" header as defined in RFC 2109 for backward compatibility with cookie version 0
void formatParamAsVer(CharArrayBuffer buffer, String name, String value, int version)
Return a name/value string suitable for sending in a "Cookie" header as defined in RFC 2109 for backward compatibility with cookie version 0
[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

Public Constructors

public RFC2109Spec (String[] datepatterns, boolean oneHeader)

Also: HttpClient

Default constructor

public RFC2109Spec ()

Also: HttpClient

Default constructor

Public Methods

public List<Header> formatCookies (List<Cookie> cookies)

Also: HttpClient

public int getVersion ()

Also: HttpClient

public Header getVersionHeader ()

Also: HttpClient

public List<Cookie> parse (Header header, CookieOrigin origin)

Also: HttpClient

public String toString ()

public void validate (Cookie cookie, CookieOrigin origin)

Also: HttpClient

Protected Methods

protected void formatCookieAsVer (CharArrayBuffer buffer, Cookie cookie, int version)

Also: HttpClient

Return a string suitable for sending in a "Cookie" header as defined in RFC 2109 for backward compatibility with cookie version 0

Parameters
buffer The char array buffer to use for output
cookie The Cookie to be formatted as string
version The version to use.

protected void formatParamAsVer (CharArrayBuffer buffer, String name, String value, int version)

Also: HttpClient

Return a name/value string suitable for sending in a "Cookie" header as defined in RFC 2109 for backward compatibility with cookie version 0

Parameters
buffer The char array buffer to use for output
name The cookie name
value The cookie value
version The cookie version