|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.oio.bugkilla.protocol.Cookie
The Cookie store all Informations for one Cookie
Constructor Summary | |
Cookie()
Construct a new Cookie |
|
Cookie(java.lang.String name)
Construct a new Cookie with a specified Name |
Method Summary | |
java.lang.String |
getComment()
Returns the comment describing the purpose of this cookie, or null if the cookie has no comment. |
java.lang.String |
getDomain()
Returns the domain name set for this cookie. |
int |
getMaxAge()
Returns the maximum age of the cookie, specified in seconds, By default, -1 indicating the cookie will persist until browser shutdown. |
java.lang.String |
getName()
Returns the name of the Cookie |
java.lang.String |
getPath()
Returns the path on the server to which the browser returns this cookie. |
boolean |
getSecure()
Returns true if the browser is sending cookies only over a secure protocol, or false if the browser can send cookies using any protocol. |
java.lang.String |
getValue()
Returns the value of the cookie |
int |
getVersion()
Returns the version of the protocol this cookie complies with. |
void |
setComment(java.lang.String comment)
Specifies a comment that describes a cookie's purpose. |
void |
setDomain(java.lang.String domain)
Specifies the domain within which this cookie should be presented. |
void |
setMaxAge(int expiry)
Sets the maximum age of the cookie in seconds. |
void |
setName(java.lang.String name)
Sets the name of the Cookie |
void |
setPath(java.lang.String path)
Specifies a path for the cookie to which the client should return the cookie. |
void |
setSecure(boolean isSecure)
Indicates to the browser whether the cookie should only be sent using a secure protocol, such as HTTPS or SSL. |
void |
setValue(java.lang.String value)
Assigns a new value to a cookie after the cookie is created. |
void |
setVersion(int version)
Sets the version of the cookie protocol this cookie complies with. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Cookie(java.lang.String name)
name
- name of the Cookiepublic Cookie()
Method Detail |
public java.lang.String getComment()
public void setComment(java.lang.String comment)
comment
- a String specifying the comment to display to the userpublic java.lang.String getDomain()
public void setDomain(java.lang.String domain)
domain
- a String containing the domain name within which this cookie is visible;
form is according to RFC 2109public int getMaxAge()
public void setMaxAge(int expiry)
expiry
- an integer specifying the maximum age of the cookie in seconds;
if negative, means the cookie is not stored; if zero, deletes the cookiepublic java.lang.String getPath()
public void setPath(java.lang.String path)
path
- - a String specifying a pathpublic boolean getSecure()
public void setSecure(boolean isSecure)
isSecure
- if true, sends the cookie from the browser to the server using only when
using a secure protocol; if false, sent on any protocolpublic java.lang.String getValue()
public void setValue(java.lang.String value)
value
- - a String specifying the new valuepublic int getVersion()
public void setVersion(int version)
version
- - 0 if the cookie should comply with the original Netscape specification;
1 if the cookie should comply with RFC 2109public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name of the Cookie
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |