| org.apache.tapestry.services.Cookies
All known Subclasses: org.apache.tapestry.internal.services.CookiesImpl,
Cookies | public interface Cookies (Code) | | Used by other services to obtain cookie values for the current request.
|
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
Cookies.writeCookieValue(String,String) but an explicit maximum age may be set. | void | writeCookieValue(String name, String value, String path) As with
Cookies.writeCookieValue(String,String) but an explicit path may be set. | void | writeCookieValue(String name, String value, String path, String domain) As with
Cookies.writeCookieValue(String,String,String) but an explicit domain may be set. | void | writeDomainCookieValue(String name, String value, String domain) As with
Cookies.writeCookieValue(String,String) but an explicit path may be set. | void | writeDomainCookieValue(String name, String value, String domain, int maxAge) As with
Cookies.writeCookieValue(String,String) but an explicit path may be set. |
readCookieValue | String readCookieValue(String name)(Code) | | Returns the value of the first cookie whose name matches. Returns null if no such cookie
exists. This method is only aware of cookies that are part of the incoming request; it does
not know about additional cookies added since then (via
Cookies.writeCookieValue(String,String) ).
|
removeCookieValue | void removeCookieValue(String name)(Code) | | Removes a previously written cookie, by writing a new cookie with a maxAge of 0.
|
writeCookieValue | void writeCookieValue(String name, String value)(Code) | | Creates or updates a cookie value. The value is stored using a max age (in seconds) defined
by the symbol org.apache.tapestry.default-cookie-max-age . The factory default
for this value is the equivalent of one week.
|
writeCookieValue | void writeCookieValue(String name, String value, int maxAge)(Code) | | As with
Cookies.writeCookieValue(String,String) but an explicit maximum age may be set.
Parameters: name - the name of the cookie Parameters: value - the value to be stored in the cookie Parameters: maxAge - the maximum age, in seconds, to store the cookie |
|
|