|
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 | |
string |
domain
The cookie's domain |
String |
name
This cookie's name |
string |
path
The cookie's path |
int |
secs
Time in seconds when cookie expires (thus being delete by browser). |
String |
value
This cookie's value |
Constructor Summary | |
JSJaCCookie(<String> name,<String> value,<int> secs,<String> domain,<String> path)
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
|
setDomain(<String> domain)
Sets the domain of this cookie |
Cookie
|
setName(<String> name)
Sets the name of this cookie |
Cookie
|
setPath(<String> path)
Sets the path 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 |
string domain
String name
string path
int secs
String value
Constructor Detail |
JSJaCCookie(<String> name,<String> value,<int> secs,<String> domain,<String> path)
name
- The name of the value to store
value
- The value to store
secs
- Number of seconds until cookie expires (may be empty)
domain
- The domain for the cookie
path
- The path of cookie
Method Detail |
void erase()
String getName()
String getValue()
Cookie setDomain(<String> domain)
domain
- The value for the domain of the cookie
Cookie setName(<String> name)
name
- The name for this cookie
Cookie setPath(<String> path)
path
- The value of the path of the 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)
name
name
- The name of the cookie to delete
|
JSJaC | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |