wt.templateutil.processor
Class ServletSessionCookie

java.lang.Object
  extended bywt.templateutil.processor.ServletSessionCookie
All Implemented Interfaces:
Serializable

public class ServletSessionCookie
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
private  String cookieType
           
private  HashMap dataMap
           
(package private)  String id
           
(package private)  boolean isDirty
           
private  boolean isGlobalCookie
           
 
Constructor Summary
ServletSessionCookie(String id)
           
ServletSessionCookie(String id, boolean isGlobalCookie)
           
ServletSessionCookie(String id, boolean isGlobalCookie, String cookieType)
           
 
Method Summary
 void clearData()
          Sets the values in the cookie to empty strings.
 Object get(Object key)
           
 String getCookieType()
           
 String getId()
           
 boolean isDirty()
           
 boolean isGlobalCookie()
           
 Set keySet()
           
 void put(Object key, Object value)
           
 Object remove(Object key)
          Removes the mapping for this key from the cookie's dataMap, if present.
 void setIsDirty(boolean dirty)
           
 int size()
           
 Properties toProperties()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

String id

isDirty

transient boolean isDirty

dataMap

private HashMap dataMap

isGlobalCookie

private boolean isGlobalCookie

cookieType

private String cookieType
Constructor Detail

ServletSessionCookie

public ServletSessionCookie(String id)

ServletSessionCookie

public ServletSessionCookie(String id,
                            boolean isGlobalCookie)

ServletSessionCookie

public ServletSessionCookie(String id,
                            boolean isGlobalCookie,
                            String cookieType)
Method Detail

getCookieType

public String getCookieType()

getId

public String getId()

put

public void put(Object key,
                Object value)

get

public Object get(Object key)

keySet

public Set keySet()

isDirty

public boolean isDirty()

isGlobalCookie

public boolean isGlobalCookie()

clearData

public void clearData()
Sets the values in the cookie to empty strings. The keys are untouched. Modified cookie will not be saved in session until a call is made to ServletSessionCookieManager.saveCookie() or ServletSessionCookieManager.saveCookies().


remove

public Object remove(Object key)
Removes the mapping for this key from the cookie's dataMap, if present. Returns previous value associated with specified key, or null if there was no mapping for key. A null return can also indicate that the map previously associated null with the specified key. Modified cookie will not be saved in session until a call is made to ServletSessionCookieManager.saveCookie() or ServletSessionCookieManager.saveCookies().


toProperties

public Properties toProperties()

size

public int size()

setIsDirty

public void setIsDirty(boolean dirty)

toString

public String toString()