public class FlashCookieImpl extends Object implements FlashCookie
Constructor and Description |
---|
FlashCookieImpl(NinjaProperties ninjaProperties) |
Modifier and Type | Method and Description |
---|---|
void |
clearCurrentFlashCookieData() |
boolean |
contains(String key) |
void |
discard() |
void |
discard(String key) |
void |
error(String value)
Sets the error flash cookie value.
|
String |
get(String key) |
Map<String,String> |
getCurrentFlashCookieData() |
Map<String,String> |
getOutgoingFlashCookieData() |
void |
init(Context context) |
void |
keep() |
void |
keep(String key) |
void |
now(String key,
String value) |
void |
put(String key,
Object value) |
void |
put(String key,
String value) |
boolean |
remove(String key) |
void |
save(Context context,
Result result) |
void |
success(String value)
Sets the success flash cookie value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toString
@Inject public FlashCookieImpl(NinjaProperties ninjaProperties)
public void init(Context context)
init
in interface FlashCookie
public void save(Context context, Result result)
save
in interface FlashCookie
public void put(String key, String value)
put
in interface FlashCookie
public void put(String key, Object value)
put
in interface FlashCookie
public void now(String key, String value)
now
in interface FlashCookie
public void error(String value)
FlashCookie
error
in interface FlashCookie
value
- The i18n key used to retrieve value of that message
OR an already translated message that will be displayed right away.public void success(String value)
FlashCookie
success
in interface FlashCookie
value
- The i18n key used to retrieve value of that message
OR an already translated message that will be displayed right away.public void discard(String key)
discard
in interface FlashCookie
public void discard()
discard
in interface FlashCookie
public void keep(String key)
keep
in interface FlashCookie
public void keep()
keep
in interface FlashCookie
public String get(String key)
get
in interface FlashCookie
public boolean remove(String key)
remove
in interface FlashCookie
public void clearCurrentFlashCookieData()
clearCurrentFlashCookieData
in interface FlashCookie
public boolean contains(String key)
contains
in interface FlashCookie
public Map<String,String> getCurrentFlashCookieData()
getCurrentFlashCookieData
in interface FlashCookie
public Map<String,String> getOutgoingFlashCookieData()
getOutgoingFlashCookieData
in interface FlashCookie
Copyright © 2013. All Rights Reserved.