public interface ICookiesRequestContextAddon<R extends IRequestContext<?>>
| Modifier and Type | Method and Description |
|---|---|
void |
addCookie(ICookie cookie)
Adds a cookie.
|
void |
addCookie(String name,
String value)
Adds a cookie using the specified name and value.
|
void |
addCookie(String name,
String value,
String path,
String domain,
Date expires,
boolean secure,
boolean httpOnly,
boolean discard,
int version)
Adds a cookie, using all possible configurations.
|
void |
deleteAllCookies()
Deletes all cookies.
|
void |
deleteCookie(String name)
Deletes a cookie.
|
ICookie |
getCookie(String name)
Gets a cookie.
|
Map<String,ICookie> |
getCookies()
Gets the current cookies in a Map, using their names as the keys.
|
void |
resetCookies()
Resets the current cookies to the original ones
of the request.
|
Map<String,ICookie> getCookies()
void addCookie(ICookie cookie)
void addCookie(String name, String value)
void addCookie(String name, String value, String path, String domain, Date expires, boolean secure, boolean httpOnly, boolean discard, int version)
void deleteCookie(String name)
expires date in the
past so the user's browser will remove it.
isExpired() will return true after you called
this method.void deleteAllCookies()
expires date in the
past so the user's browser will remove them.void resetCookies()
Copyright © 2016. All rights reserved.