Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
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 cookie policy

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)
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)

Added in API level 1

Default constructor

public RFC2109Spec ()

Added in API level 1

Default constructor

Public Methods

)">

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

Added in API level 1

public int getVersion ()

Added in API level 1

public Header getVersionHeader ()

Added in API level 1

public void validate ( Cookie cookie, CookieOrigin origin)

Added in API level 1

Protected Methods

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

Added in API level 1

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)

Added in API level 1

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