public interface Session
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
asMap() |
void |
clear()
Clear all Session values.
|
Optional<String> |
get(String key)
Get a Session value.
|
boolean |
has(String key)
Check if the Session has a value for a key.
|
boolean |
hasChanged()
Check if the Session has changed.
|
String |
remove(String key)
Remove a value from the Session.
|
void |
set(String key, String value)
Set a Session value.
|
Cookies.Cookie |
signedCookie() |
boolean hasChanged()
boolean has(String key)
key
- Session key
Optional<String> get(String key)
key
- Session key
void set(String key, String value)
key
- Session key
value
- Session value
String remove(String key)
key
- Session key
void clear()
Cookies.Cookie signedCookie()