gnu.inet.http
Class Cookie
public class Cookie
extends java.lang.Object
An HTTP cookie, as specified in RFC 2109.
- Chris Burdess
protected java.lang.String | comment - Optional documentation of the intended use of the cookie.
|
protected java.lang.String | domain - The domain for which the cookie is valid.
|
protected java.util.Date | expires - The date at which this cookie expires.
|
protected java.lang.String | name - The name of the cookie.
|
protected java.lang.String | path - Optional subset of URL paths within the domain for which the cookie is
valid.
|
protected boolean | secure - Indicates that the user-agent should only use secure means to transmit
this cookie to the server.
|
protected java.lang.String | value - The value of the cookie.
|
Cookie(java.lang.String name, java.lang.String value, java.lang.String comment, java.lang.String domain, java.lang.String path, boolean secure, java.util.Date expires)
|
comment
protected final java.lang.String comment
Optional documentation of the intended use of the cookie.
domain
protected final java.lang.String domain
The domain for which the cookie is valid.
expires
protected final java.util.Date expires
The date at which this cookie expires.
name
protected final java.lang.String name
The name of the cookie.
path
protected final java.lang.String path
Optional subset of URL paths within the domain for which the cookie is
valid.
secure
protected final boolean secure
Indicates that the user-agent should only use secure means to transmit
this cookie to the server.
value
protected final java.lang.String value
The value of the cookie.
Cookie
public Cookie(java.lang.String name,
java.lang.String value,
java.lang.String comment,
java.lang.String domain,
java.lang.String path,
boolean secure,
java.util.Date expires)
getComment
public java.lang.String getComment()
getDomain
public java.lang.String getDomain()
getExpiryDate
public java.util.Date getExpiryDate()
getName
public java.lang.String getName()
getPath
public java.lang.String getPath()
getValue
public java.lang.String getValue()
isSecure
public boolean isSecure()
toString
public java.lang.String toString()
toString
public java.lang.String toString(boolean showPath,
boolean showDomain)
© Copyright 2003 The Free Software Foundation,
all rights reserved