ninja.session
Class FlashCookieImpl
java.lang.Object
ninja.session.FlashCookieImpl
- All Implemented Interfaces:
- FlashCookie
public class FlashCookieImpl
- extends Object
- implements FlashCookie
Flash scope:
A client side cookie that can be used to transfer information from one request to another.
Stuff in a flash cookie gets deleted after the next request.
Please note also that flash cookies are not signed.
currentFlashCookieData
protected Map<String,String> currentFlashCookieData
outgoingFlashCookieData
protected Map<String,String> outgoingFlashCookieData
FlashCookieImpl
@Inject
public FlashCookieImpl(NinjaProperties ninjaProperties)
init
public void init(Context context)
- Specified by:
init
in interface FlashCookie
save
public void save(Context context)
- Specified by:
save
in interface FlashCookie
put
public void put(String key,
String value)
- Specified by:
put
in interface FlashCookie
put
public void put(String key,
Object value)
- Specified by:
put
in interface FlashCookie
now
public void now(String key,
String value)
- Specified by:
now
in interface FlashCookie
error
public void error(String value,
Object... args)
- Specified by:
error
in interface FlashCookie
success
public void success(String value,
Object... args)
- Specified by:
success
in interface FlashCookie
discard
public void discard(String key)
- Specified by:
discard
in interface FlashCookie
discard
public void discard()
- Specified by:
discard
in interface FlashCookie
keep
public void keep(String key)
- Specified by:
keep
in interface FlashCookie
keep
public void keep()
- Specified by:
keep
in interface FlashCookie
get
public String get(String key)
- Specified by:
get
in interface FlashCookie
remove
public boolean remove(String key)
- Specified by:
remove
in interface FlashCookie
clearCurrentFlashCookieData
public void clearCurrentFlashCookieData()
- Specified by:
clearCurrentFlashCookieData
in interface FlashCookie
contains
public boolean contains(String key)
- Specified by:
contains
in interface FlashCookie
toString
public String toString()
- Specified by:
toString
in interface FlashCookie
- Overrides:
toString
in class Object
Copyright © 2012. All Rights Reserved.