|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.www.http.HttpSetCookie
public class HttpSetCookie
Field Summary | |
---|---|
protected java.lang.String |
comment
The cookie's comment. |
protected java.lang.String |
domain
The cookie's domain name. |
protected int |
maxage
The cookie's max age. |
protected java.lang.String |
name
The cookie's name. |
protected java.lang.String |
path
The cookie's associated path. |
protected boolean |
security
Does this cookie requires special security care by client ? |
protected java.lang.String |
value
|
protected int |
version
This cookie's version. |
Constructor Summary | |
---|---|
HttpSetCookie()
|
|
HttpSetCookie(boolean isValid,
java.lang.String name,
java.lang.String value)
|
|
HttpSetCookie(java.lang.String name,
java.lang.String value)
|
Method Summary | |
---|---|
java.lang.String |
getComment()
Get this SetCookie attached comment. |
java.lang.String |
getDomain()
Get the domain to which this cookie applies. |
int |
getMaxAge()
Get the max age value for this cookie. |
java.lang.String |
getName()
Get this SetCookie cookie's name. |
java.lang.String |
getPath()
Get the path in which this cookie will apply. |
boolean |
getSecurity()
Get the security requirement atttached to that cookie. |
java.lang.String |
getValue()
Get the value associated with this SetCookie. |
int |
getVersion()
Get the SetCookie version number. |
void |
setComment(java.lang.String comment)
Set this SetCookie attached comment. |
void |
setDomain(java.lang.String domain)
Define the domain for this SetCookie. |
void |
setMaxAge(int maxage)
Set the max age value for this cookie. |
void |
setName(java.lang.String name)
Set this SetCookie name. |
void |
setPath(java.lang.String path)
Set the path to which this SetCookie applies. |
void |
setSecurity(boolean onoff)
Mark/unmark this SetCookie as requiring special security when emited back by the client. |
void |
setValue(java.lang.String value)
Set this SetCookie cookie's value. |
void |
setVersion(int version)
Set the SetCookie version number. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
protected java.lang.String value
protected java.lang.String comment
protected java.lang.String domain
protected int maxage
protected java.lang.String path
protected boolean security
protected int version
Constructor Detail |
---|
public HttpSetCookie(boolean isValid, java.lang.String name, java.lang.String value)
public HttpSetCookie(java.lang.String name, java.lang.String value)
public HttpSetCookie()
Method Detail |
---|
public java.lang.String getComment()
public void setComment(java.lang.String comment)
comment
- A String giving the comments attached to that SetCookie,
or null to reset the value.public java.lang.String getDomain()
public void setDomain(java.lang.String domain)
domain
- The String encoded domain name to which this cookie will
apply.public int getMaxAge()
public void setMaxAge(int maxage)
maxage
- The max age value for this cookie, given as a number of
seconds, or -1 to reset value.public java.lang.String getPath()
public void setPath(java.lang.String path)
path
- The path, encoded as a String.public boolean getSecurity()
public void setSecurity(boolean onoff)
onoff
- A boolean, public int getVersion()
public void setVersion(int version)
version
- The version number of this SetCookie.public void setName(java.lang.String name)
name
- The name of the cookie, encoded as a String.public java.lang.String getName()
public void setValue(java.lang.String value)
value
- The value, encoded as a printable String, or
null to reset the value.public java.lang.String getValue()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |