| java.lang.Object org.w3c.www.http.HttpSetCookie
HttpSetCookie | public class HttpSetCookie (Code) | | |
Method Summary | |
public String | getComment() Get this SetCookie attached comment. | public String | getDomain() Get the domain to which this cookie applies. | public int | getMaxAge() Get the max age value for this cookie. | public String | getName() Get this SetCookie cookie's name. | public String | getPath() Get the path in which this cookie will apply. | public boolean | getSecurity() Get the security requirement atttached to that cookie. | public String | getValue() Get the value associated with this SetCookie. | public int | getVersion() Get the SetCookie version number. | public void | setComment(String comment) Set this SetCookie attached comment. | public void | setDomain(String domain) Define the domain for this SetCookie. | public void | setMaxAge(int maxage) Set the max age value for this cookie. | public void | setName(String name) Set this SetCookie name. | public void | setPath(String path) Set the path to which this SetCookie applies. | public void | setSecurity(boolean onoff) Mark/unmark this SetCookie as requiring special security when emited
back by the client. | public void | setValue(String value) Set this SetCookie cookie's value. | public void | setVersion(int version) Set the SetCookie version number. | public String | toString() |
domain | protected String domain(Code) | | The cookie's domain name.
|
maxage | protected int maxage(Code) | | The cookie's max age.
|
path | protected String path(Code) | | The cookie's associated path.
|
security | protected boolean security(Code) | | Does this cookie requires special security care by client ?
|
version | protected int version(Code) | | This cookie's version.
|
HttpSetCookie | public HttpSetCookie()(Code) | | |
getComment | public String getComment()(Code) | | Get this SetCookie attached comment.
A String describing the reason for this SetCookie, ornull. |
getDomain | public String getDomain()(Code) | | Get the domain to which this cookie applies.
The string encoding of the domain to which this cookie appliesor null if undefined. |
getMaxAge | public int getMaxAge()(Code) | | Get the max age value for this cookie.
A integer number of seconds giving the maximum age allowed forthis cookie, or -1 if undefined. |
getName | public String getName()(Code) | | Get this SetCookie cookie's name.
A String giving the cookie's name. |
getPath | public String getPath()(Code) | | Get the path in which this cookie will apply.
The path to which this cookie applies, encoded as a String, ornull if undefined. |
getSecurity | public boolean getSecurity()(Code) | | Get the security requirement atttached to that cookie.
A boolean, true if the cookie requiresspecial care from the client, false otherwise. |
getValue | public String getValue()(Code) | | Get the value associated with this SetCookie.
The value, encoded as a String, or null ifundefined. |
getVersion | public int getVersion()(Code) | | Get the SetCookie version number.
An integer giving the version number of this cookie. |
setComment | public void setComment(String comment)(Code) | | Set this SetCookie attached comment.
Parameters: comment - A String giving the comments attached to that SetCookie,or null to reset the value. |
setDomain | public void setDomain(String domain)(Code) | | Define the domain for this SetCookie.
Parameters: domain - The String encoded domain name to which this cookie willapply. |
setMaxAge | public void setMaxAge(int maxage)(Code) | | Set the max age value for this cookie.
Parameters: maxage - The max age value for this cookie, given as a number ofseconds, or -1 to reset value. |
setName | public void setName(String name)(Code) | | Set this SetCookie name.
Parameters: name - The name of the cookie, encoded as a String. |
setPath | public void setPath(String path)(Code) | | Set the path to which this SetCookie applies.
Parameters: path - The path, encoded as a String. |
setSecurity | public void setSecurity(boolean onoff)(Code) | | Mark/unmark this SetCookie as requiring special security when emited
back by the client.
Parameters: onoff - A boolean, true if the cookie thatresults should be emited with special care, falseotherwise. |
setValue | public void setValue(String value)(Code) | | Set this SetCookie cookie's value.
Parameters: value - The value, encoded as a printable String, or null to reset the value. |
setVersion | public void setVersion(int version)(Code) | | Set the SetCookie version number.
Parameters: version - The version number of this SetCookie. |
|
|