Module java.base
Package java.net

Class HttpCookie

java.lang.Object
java.net.HttpCookie
All Implemented Interfaces:
Cloneable

public final class HttpCookie extends Object implements Cloneable
An HttpCookie object represents an HTTP cookie, which carries state information between server and user agent. Cookie is widely adopted to create stateful sessions.

There are 3 HTTP cookie specifications:

Netscape draft
RFC 2109 - http://www.ietf.org/rfc/rfc2109.txt
RFC 2965 - http://www.ietf.org/rfc/rfc2965.txt

HttpCookie class can accept all these 3 forms of syntax.

Since:
1.6
External Specifications