public interface CookieService
| Modifier and Type | Method and Description |
|---|---|
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 domain may be set. |
void |
writeCookieValue(String name,
String value,
String path,
String domain)
As with
writeCookieValue(String, String) but an explicit domain and maximum age may be set. |
void |
writeDomainCookieValue(String name,
String value,
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,
int maxAge)
Removes a previously written cookie, by writing a new cookie with a maxAge of 0.
|
String readCookieValue(String name)
name - void removeCookieValue(String name)
name - name of the cookievoid writeCookieValue(String name, String value)
name - name of the cookievalue - cookie valuevoid writeCookieValue(String name, String value, int maxAge)
writeCookieValue(String, String) but an explicit maximum age may be set.name - name of the cookievalue - cookie valuemaxAge - max agevoid writeCookieValue(String name, String value, String path)
writeCookieValue(String, String) but an explicit domain may be set.name - name of the cookievalue - cookie valuepath - path to setvoid writeCookieValue(String name, String value, String path, String domain)
writeCookieValue(String, String) but an explicit domain and maximum age may be set.name - name of the cookievalue - cookie valuepath - path to setdomain - specific domain namevoid writeDomainCookieValue(String name, String value, String domain)
writeCookieValue(String, String, String) but an explicit domain and path may be set.name - name of the cookievalue - cookie valuedomain - specific domain nameCopyright © 2021 BellaDati Inc.. All rights reserved.