|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectninja.session.SessionCookieImpl
public class SessionCookieImpl
Session Cookie... Mostly an adaption of Play1's excellent cookie system that in turn is based on the new client side rails cookies.
Constructor Summary | |
---|---|
SessionCookieImpl(Crypto crypto,
NinjaProperties ninjaProperties)
|
Method Summary | |
---|---|
void |
clear()
|
String |
get(String key)
Returns the value of the key or null. |
String |
getAuthenticityToken()
|
Map<String,String> |
getData()
|
String |
getId()
|
void |
init(Context context)
Has to be called initially. => maybe in the future as assisted inject. |
boolean |
isEmpty()
Returns true if the session is empty, e.g. does not contain anything else than the timestamp key. |
void |
put(String key,
String value)
Puts key into session. |
String |
remove(String key)
Removes the value of the key and returns the value or null. |
void |
save(Context context)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Inject public SessionCookieImpl(Crypto crypto, NinjaProperties ninjaProperties)
Method Detail |
---|
public void init(Context context)
init
in interface SessionCookie
context
- public String getId()
getId
in interface SessionCookie
public Map<String,String> getData()
getData
in interface SessionCookie
public String getAuthenticityToken()
getAuthenticityToken
in interface SessionCookie
public void save(Context context)
save
in interface SessionCookie
public void put(String key, String value)
put
in interface SessionCookie
key
- value
- public String get(String key)
get
in interface SessionCookie
key
-
public String remove(String key)
SessionCookie
remove
in interface SessionCookie
public void clear()
clear
in interface SessionCookie
public boolean isEmpty()
isEmpty
in interface SessionCookie
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |