wt.templateutil.processor
Class ServletSessionCookie
java.lang.Object
wt.templateutil.processor.ServletSessionCookie
- All Implemented Interfaces:
- Serializable
- public class ServletSessionCookie
- extends Object
- implements Serializable
- See Also:
- Serialized Form
id
String id
isDirty
transient boolean isDirty
dataMap
private HashMap dataMap
isGlobalCookie
private boolean isGlobalCookie
cookieType
private String cookieType
ServletSessionCookie
public ServletSessionCookie(String id)
ServletSessionCookie
public ServletSessionCookie(String id,
boolean isGlobalCookie)
ServletSessionCookie
public ServletSessionCookie(String id,
boolean isGlobalCookie,
String cookieType)
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()