public interface Cookies
Request.isSecure().| Modifier and Type | Method and Description | 
|---|---|
| CookieBuilder | getBuilder(String name,
          String value)Returns a  CookieBuilderto build and write aCookie. | 
| 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)Deprecated. 
 Use the  CookieBuilderAPI, obtained withgetBuilder(String, String), instead. | 
| void | writeCookieValue(String name,
                String value,
                int maxAge)Deprecated. 
 Use the  CookieBuilderAPI, obtained withgetBuilder(String, String), instead. | 
| void | writeCookieValue(String name,
                String value,
                String path)Deprecated. 
 Use the  CookieBuilderAPI, obtained withgetBuilder(String, String), instead. | 
| void | writeCookieValue(String name,
                String value,
                String path,
                String domain)Deprecated. 
 Use the  CookieBuilderAPI, obtained withgetBuilder(String, String), instead. | 
| void | writeDomainCookieValue(String name,
                      String value,
                      String domain)Deprecated. 
 Use the  CookieBuilderAPI, obtained withgetBuilder(String, String), instead. | 
| void | writeDomainCookieValue(String name,
                      String value,
                      String domain,
                      int maxAge)Deprecated. 
 Use the  CookieBuilderAPI, obtained withgetBuilder(String, String), instead. | 
String readCookieValue(String name)
writeCookieValue(String, String)).void writeCookieValue(String name, String value)
CookieBuilder API, obtained with getBuilder(String, String), instead.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)
CookieBuilder API, obtained with getBuilder(String, String), instead.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)
CookieBuilder API, obtained with getBuilder(String, String), instead.writeCookieValue(String, String) but an explicit path may be set.void writeDomainCookieValue(String name, String value, String domain)
CookieBuilder API, obtained with getBuilder(String, String), instead.writeCookieValue(String, String) but an explicit domain may be set.void writeDomainCookieValue(String name, String value, String domain, int maxAge)
CookieBuilder API, obtained with getBuilder(String, String), instead.writeCookieValue(String, String) but an explicit domain and maximum age may be set.void writeCookieValue(String name, String value, String path, String domain)
CookieBuilder API, obtained with getBuilder(String, String), instead.writeCookieValue(String, String, String) but an explicit domain and path may be set.void removeCookieValue(String name)
CookieBuilder.delete().
 An instance of the CookieBuilder API can be obtained with getBuilder(String, String).CookieBuilder getBuilder(String name, String value)
CookieBuilder to build and write a Cookie. The default
 implementation creates a cookie who's value is stored using a max age (in seconds) defined by
 the symbol org.apache.tapestry5.default-cookie-max-age. The factory default for
 this value is the equivalent of one week. The default path is the context path (see
 Request.getContextPath()) of the current Request, the default secure setting is to
 send the cookie over secure channels only, if the original request was secure (see
 Request.isSecure()name - the name of the cookievalue - the value of the cookieCookieBuilder for setting additional cookie attributes and writing it out5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.