ninja.session
Class FlashCookieImpl

java.lang.Object
  extended by 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.


Field Summary
protected  Map<String,String> currentFlashCookieData
           
protected  Map<String,String> outgoingFlashCookieData
           
 
Constructor Summary
FlashCookieImpl(NinjaProperties ninjaProperties)
           
 
Method Summary
 void clearCurrentFlashCookieData()
           
 boolean contains(String key)
           
 void discard()
           
 void discard(String key)
           
 void error(String value, Object... args)
           
 String get(String key)
           
 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)
           
 void success(String value, Object... args)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

currentFlashCookieData

protected Map<String,String> currentFlashCookieData

outgoingFlashCookieData

protected Map<String,String> outgoingFlashCookieData
Constructor Detail

FlashCookieImpl

@Inject
public FlashCookieImpl(NinjaProperties ninjaProperties)
Method Detail

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.