Modifier and Type | Field and Description |
---|---|
static ThreadLocal<Scope.Session> |
current |
Constructor and Description |
---|
Session() |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
all() |
void |
clear() |
boolean |
contains(String key) |
static Scope.Session |
current() |
String |
get(String key) |
String |
getAuthenticityToken() |
String |
getId() |
boolean |
isEmpty()
Returns true if the session is empty, e.g. does not contain anything
else than the timestamp
|
void |
put(String key,
Object value) |
void |
put(String key,
String value) |
void |
remove(String... keys) |
boolean |
remove(String key) |
static Scope.Session |
restore() |
String |
toString() |
public static final ThreadLocal<Scope.Session> current
public static Scope.Session restore()
public static Scope.Session current()
public String getId()
public String getAuthenticityToken()
public boolean remove(String key)
public void remove(String... keys)
public void clear()
public boolean isEmpty()
public boolean contains(String key)
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly