|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Used by other services to obtain cookie values for the current request.
Method Summary | |
java.lang.String |
readCookieValue(java.lang.String name)
Returns the value of the first cookie whose name matches. |
void |
removeCookieValue(java.lang.String name)
Removes a previously written cookie, by writing a new cookie with a maxAge of 0. |
void |
writeCookieValue(java.lang.String name,
java.lang.String value)
Creates or updates a cookie value. |
void |
writeCookieValue(java.lang.String name,
java.lang.String value,
int maxAge)
As with writeCookieValue(String, String) but an explicit maximum age may be set. |
Method Detail |
public java.lang.String readCookieValue(java.lang.String name)
writeCookieValue(String, String)
).
public void writeCookieValue(java.lang.String name, java.lang.String value)
org.apache.tapestry.default-cookie-max-age
. The factory default
for this value is the equivalent of one week.
public void writeCookieValue(java.lang.String name, java.lang.String value, int maxAge)
writeCookieValue(String, String)
but an explicit maximum age may be set.
name
- the name of the cookievalue
- the value to be stored in the cookiemaxAge
- the maximum age, in seconds, to store the cookiepublic void removeCookieValue(java.lang.String name)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |