|
JSJaC | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--JSJaCCookie
Class representing browser cookies for storing small amounts of data
Defined in JSJaCCookie.js
| Field Summary | |
int |
expires
Time in seconds when cookie expires (thus being delete by browser). |
String |
name
This cookie's name |
String |
value
This cookie's value |
| Constructor Summary | |
JSJaCCookie(<String> name,<String> value,<int> secs)
Creates a new Cookie |
|
| Method Summary | |
void
|
erase()
Deletes this cookie |
String
|
getName()
Gets the name of this cookie |
String
|
getValue()
Gets the value of this cookie |
Cookie
|
setName(<String> name)
Sets the name of this cookie |
Cookie
|
setValue(<String> value)
Sets the value of this cookie |
void
|
write()
Stores this cookie |
<static> String
|
get(<String> name)
Reads the value for given name from cookies and returns
its valued new
|
<static> Cookie
|
read(<String> name)
Reads the value for given name from cookies and return new
Cookie object
|
<static> void
|
remove(<String> name)
Deletes cookie with given name
|
| Field Detail |
int expires
String name
String value
| Constructor Detail |
JSJaCCookie(<String> name,<String> value,<int> secs)
name - The name of the value to store
value - The value to store
secs - Number of seconds until cookie expires (may be empty)
| Method Detail |
void erase()
String getName()
String getValue()
Cookie setName(<String> name)
name - The name for this cookie
Cookie setValue(<String> value)
value - The value for this cookie
void write()
<static> String get(<String> name)
name from cookies and returns
its valued newname - The name of the cookie to read
<static> Cookie read(<String> name)
name from cookies and return new
Cookie objectname - The name of the cookie to read
<static> void remove(<String> name)
namename - The name of the cookie to delete
|
JSJaC | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||