|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jasp.buildin.ASPCookie
Retrieves the string value of a cookie, which is a small piece of information stored by the browser. This class is implemented the ASP Cookie object.
| Constructor Summary | |
ASPCookie()
Creates an ASPCookie object. |
|
ASPCookie(java.lang.String value)
Creates an ASPCookie object. |
|
| Method Summary | |
java.util.Enumeration |
elements()
Returns an enumeration of the sub-cookies in this Cookie. |
int |
getCount()
Retrieves the number of sub-cookies. |
variant |
getItem(int v)
Gets the sub-cookie of the current Cookie. |
variant |
getItem(java.lang.String v)
Gets the sub-cookie of the current Cookie. |
variant |
getItem(variant v)
Gets the sub-cookie of the current Cookie. |
variant |
getValue()
Gets the Cookie value |
boolean |
HasKeys()
Specifies whether the cookie contains keys. |
void |
setDomain(java.lang.String s)
Specified the domain that the cookie is sent only to requests. |
void |
setExpires(double d)
The date on which the cookie expires. |
void |
setItem(java.lang.String s,
java.lang.String v)
Adds a sub-cookie to current Cookie. |
void |
setItem(variant v,
java.lang.String s)
Adds a cookie to current Cookie as the sub-cookie. |
void |
setPath(java.lang.String s)
If specified, the cookie is sent only to requests to this path. |
void |
setSecure(boolean b)
Specifies whether the cookie is secure. |
double |
toDouble()
Returns the double value if the cookie value is a numeric. |
java.lang.String |
toString()
Gets the Cookie value |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ASPCookie()
public ASPCookie(java.lang.String value)
the - cookie value.| Method Detail |
public void setExpires(double d)
setExpires in interface IWriteCookied - the double value of the date.public void setSecure(boolean b)
setSecure in interface IWriteCookieb - the new secure value.public void setPath(java.lang.String s)
setPath in interface IWriteCookies - the specified path.
public java.util.Enumeration elements()
throws java.lang.Exception
elements in interface IWriteCookiepublic boolean HasKeys()
HasKeys in interface IWriteCookie
public void setDomain(java.lang.String s)
throws java.lang.Exception
setDomain in interface IWriteCookies - the new domain name.
public void setItem(variant v,
java.lang.String s)
throws java.lang.Exception
setItem in interface IWriteCookiev - the cookie name.s - the cookie value.
public void setItem(java.lang.String s,
java.lang.String v)
throws java.lang.Exception
setItem in interface IWriteCookies - the cookie name.v - the cookie value.
public variant getItem(variant v)
throws java.lang.Exception
getItem in interface IReadCookiev - the sub-cookie name.
public variant getItem(int v)
throws java.lang.Exception
getItem in interface IReadCookiev - the sub-cookie index.
public variant getItem(java.lang.String v)
throws java.lang.Exception
getItem in interface IReadCookiev - the sub-cookie name.
public variant getValue()
throws java.lang.Exception
getValue in interface IReadCookiepublic java.lang.String toString()
toString in class java.lang.Objectpublic int getCount()
getCount in interface IReadCookie
public double toDouble()
throws java.lang.Exception
toDouble in interface Collectionif - the cookie value is not a numeric, an exception will occurs.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||