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