Skip to content

Most visited

Recently visited


org.apache.http.cookie | Android Developers

to top
Android APIs
Added in API level 1


The API for client-side state management via cookies, commonly referred to as HttpCookie.


ClientCookie ClientCookie extends the standard Cookie interface with additional client specific functionality such ability to retrieve original cookie attributes exactly as they were specified by the origin server. 
Cookie HTTP "magic-cookie" represents a piece of state information that the HTTP agent and the target server can exchange to maintain a session. 
CookieAttributeHandler Ths interface represents a cookie attribute handler responsible for parsing, validating, and matching a specific cookie attribute, such as path, domain, port, etc. 
CookieSpec Defines the cookie management specification. 
SetCookie This interface represents a SetCookie response header sent by the origin server to the HTTP agent in order to maintain a conversational state. 
SetCookie2 This interface represents a SetCookie2 response header sent by the origin server to the HTTP agent in order to maintain a conversational state. 
SM Constants and static helpers related to the HTTP state management. 


CookieIdentityComparator This cookie comparator can be used to compare identity of cookies. 
CookieOrigin CookieOrigin class incapsulates details of an origin server that are relevant when parsing, validating or matching HTTP cookies. 
CookiePathComparator This cookie comparator ensures that multiple cookies satisfying a common criteria are ordered in the Cookie header such that those with more specific Path attributes precede those with less specific. 
CookieSpecRegistry Cookie specification registry that can be used to obtain the corresponding cookie specification implementation for a given type of type or version of cookie. 


MalformedCookieException Signals that a cookie is in some way invalid or illegal in a given context 
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields


Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.