|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.internal.services.CookiesImpl
public class CookiesImpl
Implementation of the Cookies
service interface.
Constructor Summary | |
---|---|
CookiesImpl(Request request,
CookieSource cookieSource,
CookieSink cookieSink,
long defaultMaxAge)
|
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 and path may be set. |
void |
writeDomainCookieValue(String name,
String value,
String domain)
As with Cookies.writeCookieValue(String, String) but an explicit domain may be set. |
void |
writeDomainCookieValue(String name,
String value,
String domain,
int maxAge)
As with Cookies.writeCookieValue(String, String) but an explicit domain and maximum age may be set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CookiesImpl(Request request, CookieSource cookieSource, CookieSink cookieSink, @Symbol(value="tapestry.default-cookie-max-age")@IntermediateType(value=TimeInterval.class) long defaultMaxAge)
request
- cookieSource
- cookieSink
- defaultMaxAge
- default cookie expiration time in millisecondsMethod Detail |
---|
public String readCookieValue(String name)
Cookies
Cookies.writeCookieValue(String, String)
).
readCookieValue
in interface Cookies
public void writeCookieValue(String name, String value)
Cookies
org.apache.tapestry5.default-cookie-max-age
. The factory default for this value is the equivalent of
one week.
writeCookieValue
in interface Cookies
public void writeCookieValue(String name, String value, int maxAge)
Cookies
Cookies.writeCookieValue(String, String)
but an explicit maximum age may be set.
writeCookieValue
in interface Cookies
name
- the name of the cookievalue
- the value to be stored in the cookiemaxAge
- the maximum age, in seconds, to store the cookiepublic void writeCookieValue(String name, String value, String path)
Cookies
Cookies.writeCookieValue(String, String)
but an explicit path may be set.
writeCookieValue
in interface Cookies
public void writeDomainCookieValue(String name, String value, String domain)
Cookies
Cookies.writeCookieValue(String, String)
but an explicit domain may be set.
writeDomainCookieValue
in interface Cookies
public void writeDomainCookieValue(String name, String value, String domain, int maxAge)
Cookies
Cookies.writeCookieValue(String, String)
but an explicit domain and maximum age may be set.
writeDomainCookieValue
in interface Cookies
public void writeCookieValue(String name, String value, String path, String domain)
Cookies
Cookies.writeCookieValue(String, String, String)
but an explicit domain and path may be set.
writeCookieValue
in interface Cookies
public void removeCookieValue(String name)
Cookies
removeCookieValue
in interface Cookies
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |