|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.services.impl.CookieSourceImpl
public class CookieSourceImpl
Implementation of the CookieSource service interface.
| Constructor Summary | |
|---|---|
CookieSourceImpl()
|
|
| 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 |
setDefaultMaxAge(int defaultMaxAge)
|
void |
setRequest(HttpServletRequest request)
|
void |
setResponse(HttpServletResponse response)
|
void |
writeCookieValue(String name,
String value)
Creates or updates a cookie value. |
void |
writeCookieValue(String name,
String value,
int maxAge)
As with CookieSource.writeCookieValue(String, String) but an explicit maximum age may be set. |
void |
writeCookieValue(String name,
String value,
String path)
As with CookieSource.writeCookieValue(String, String) but an explicit path
may be set. |
void |
writeCookieValue(String name,
String value,
String path,
String domain)
As with CookieSource.writeCookieValue(String, String, String) but an explicit
domain may be set. |
void |
writeDomainCookieValue(String name,
String value,
String domain)
As with CookieSource.writeCookieValue(String, String) but an explicit path
may be set. |
void |
writeDomainCookieValue(String name,
String value,
String domain,
int maxAge)
As with CookieSource.writeCookieValue(String, String) but an explicit path
may be set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CookieSourceImpl()
| Method Detail |
|---|
public String readCookieValue(String name)
CookieSourceCookieSource.writeCookieValue(String, String)).
readCookieValue in interface CookieSource
public void writeCookieValue(String name,
String value)
CookieSourceorg.apache.tapestry.default-cookie-max-age. The factory default
for this value is the equivalent of one week.
writeCookieValue in interface CookieSource
public void writeCookieValue(String name,
String value,
int maxAge)
CookieSourceCookieSource.writeCookieValue(String, String) but an explicit maximum age may be set.
writeCookieValue in interface CookieSourcename - the name of the cookievalue - the value to be stored in the cookiemaxAge - the maximum age, in seconds, to store the cookie
public void writeCookieValue(String name,
String value,
String path)
CookieSourceCookieSource.writeCookieValue(String, String) but an explicit path
may be set.
writeCookieValue in interface CookieSource
public void writeDomainCookieValue(String name,
String value,
String domain)
CookieSourceCookieSource.writeCookieValue(String, String) but an explicit path
may be set.
writeDomainCookieValue in interface CookieSource
public void writeDomainCookieValue(String name,
String value,
String domain,
int maxAge)
CookieSourceCookieSource.writeCookieValue(String, String) but an explicit path
may be set.
writeDomainCookieValue in interface CookieSource
public void writeCookieValue(String name,
String value,
String path,
String domain)
CookieSourceCookieSource.writeCookieValue(String, String, String) but an explicit
domain may be set.
writeCookieValue in interface CookieSourcepublic void removeCookieValue(String name)
CookieSource
removeCookieValue in interface CookieSourcepublic void setRequest(HttpServletRequest request)
public void setResponse(HttpServletResponse response)
public void setDefaultMaxAge(int defaultMaxAge)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||