Constructor and Description |
---|
SessionImpl(Crypto crypto,
NinjaProperties ninjaProperties) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
java.lang.String |
get(java.lang.String key)
Returns the value of the key or null.
|
java.lang.String |
getAuthenticityToken() |
java.util.Map<java.lang.String,java.lang.String> |
getData() |
java.lang.String |
getId() |
void |
init(Context context)
Has to be called initially.
|
boolean |
isEmpty()
Returns true if the session is empty, e.g.
|
void |
put(java.lang.String key,
java.lang.String value)
Puts key into session.
|
java.lang.String |
remove(java.lang.String key)
Removes the value of the key and returns the value or null.
|
void |
save(Context context,
Result result) |
@Inject public SessionImpl(Crypto crypto, NinjaProperties ninjaProperties)
public void init(Context context)
public java.lang.String getId()
public java.util.Map<java.lang.String,java.lang.String> getData()
public java.lang.String getAuthenticityToken()
getAuthenticityToken
in interface Session
public void put(java.lang.String key, java.lang.String value)
public java.lang.String get(java.lang.String key)
public java.lang.String remove(java.lang.String key)
Session
Copyright © 2014. All Rights Reserved.