|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Cookie
HTTP "magic-cookie" represents a piece of state information that the HTTP agent and the target server can exchange to maintain a session.
| Method Summary | |
|---|---|
java.lang.String |
getComment()
Returns the comment describing the purpose of this cookie, or null if no such comment has been defined. |
java.lang.String |
getCommentURL()
If a user agent (web browser) presents this cookie to a user, the cookie's purpose will be described by the information at this URL. |
java.lang.String |
getDomain()
Returns domain attribute of the cookie. |
java.util.Date |
getExpiryDate()
Returns the expiration Date of the cookie, or null
if none exists. |
java.lang.String |
getName()
Returns the name. |
java.lang.String |
getPath()
Returns the path attribute of the cookie |
int[] |
getPorts()
Get the Port attribute. |
java.lang.String |
getValue()
Returns the value. |
int |
getVersion()
Returns the version of the cookie specification to which this cookie conforms. |
boolean |
isExpired(java.util.Date date)
Returns true if this cookie has expired. |
boolean |
isPersistent()
Returns false if the cookie should be discarded at the end of the "session"; true otherwise. |
boolean |
isSecure()
Indicates whether this cookie requires a secure connection. |
| Method Detail |
|---|
java.lang.String getName()
java.lang.String getValue()
java.lang.String getComment()
java.lang.String getCommentURL()
java.util.Date getExpiryDate()
Date of the cookie, or null
if none exists.
Note: the object returned by this method is considered immutable. Changing it (e.g. using setTime()) could result in undefined behaviour. Do so at your peril.
Date, or null.boolean isPersistent()
java.lang.String getDomain()
java.lang.String getPath()
int[] getPorts()
boolean isSecure()
true if this cookie should only be sent
over secure connections, false otherwise.int getVersion()
boolean isExpired(java.util.Date date)
date - Current time
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||