|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Cookies
Used by other services to obtain cookie values for the current request, or to write cookie values as part of the
request. Note that when writing cookies, the cookie's secure flag will match Request.isSecure()
.
Method Summary | |
---|---|
String |
readCookieValue(String name)
Returns the value of the first cookie whose name matches. |
void |
removeCookieValue(String name)
Removes a previously written cookie, by writing a new cookie with a maxAge of 0. |
void |
writeCookieValue(String name,
String value)
Creates or updates a cookie value. |
void |
writeCookieValue(String name,
String value,
int maxAge)
As with writeCookieValue(String, String) but an explicit maximum age may be set. |
void |
writeCookieValue(String name,
String value,
String path)
As with writeCookieValue(String, String) but an explicit path may be set. |
void |
writeCookieValue(String name,
String value,
String path,
String domain)
As with writeCookieValue(String, String, String) but an explicit domain and path may be set. |
void |
writeDomainCookieValue(String name,
String value,
String domain)
As with writeCookieValue(String, String) but an explicit domain may be set. |
void |
writeDomainCookieValue(String name,
String value,
String domain,
int maxAge)
As with writeCookieValue(String, String) but an explicit domain and maximum age may be set. |
Method Detail |
---|
String readCookieValue(String name)
writeCookieValue(String, String)
).
void writeCookieValue(String name, String value)
org.apache.tapestry5.default-cookie-max-age
. The factory default for this value is the equivalent of
one week.
void writeCookieValue(String name, 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 cookievoid writeCookieValue(String name, String value, String path)
writeCookieValue(String, String)
but an explicit path may be set.
void writeDomainCookieValue(String name, String value, String domain)
writeCookieValue(String, String)
but an explicit domain may be set.
void writeDomainCookieValue(String name, String value, String domain, int maxAge)
writeCookieValue(String, String)
but an explicit domain and maximum age may be set.
void writeCookieValue(String name, String value, String path, String domain)
writeCookieValue(String, String, String)
but an explicit domain and path may be set.
void removeCookieValue(String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |