public interface Cookie extends Scope, UserScope
Collection.Key
SCOPE_APPLICATION, SCOPE_ARGUMENTS, SCOPE_CALLER, SCOPE_CGI, SCOPE_CLIENT, SCOPE_CLUSTER, SCOPE_COOKIE, SCOPE_COUNT, SCOPE_FORM, SCOPE_LOCAL, SCOPE_REQUEST, SCOPE_SERVER, SCOPE_SESSION, SCOPE_UNDEFINED, SCOPE_URL, SCOPE_VAR, SCOPE_VARIABLES
TYPE_LINKED, TYPE_REGULAR, TYPE_SOFT, TYPE_SYNC, TYPE_WEAKED
Modifier and Type | Method and Description |
---|---|
void |
setCookie(Collection.Key name,
java.lang.Object value,
int expires,
boolean secure,
java.lang.String path,
java.lang.String domain)
Deprecated.
|
void |
setCookie(Collection.Key name,
java.lang.Object value,
int expires,
boolean secure,
java.lang.String path,
java.lang.String domain,
boolean httpOnly,
boolean preserveCase,
boolean encode)
set a cookie value
|
void |
setCookie(Collection.Key name,
java.lang.Object value,
java.lang.Object expires,
boolean secure,
java.lang.String path,
java.lang.String domain)
Deprecated.
|
void |
setCookie(Collection.Key name,
java.lang.Object value,
java.lang.Object expires,
boolean secure,
java.lang.String path,
java.lang.String domain,
boolean httpOnly,
boolean preserveCase,
boolean encode)
set a cookie value
|
void |
setCookieEL(Collection.Key name,
java.lang.Object value,
int expires,
boolean secure,
java.lang.String path,
java.lang.String domain)
Deprecated.
|
void |
setCookieEL(Collection.Key name,
java.lang.Object value,
int expires,
boolean secure,
java.lang.String path,
java.lang.String domain,
boolean httpOnly,
boolean preserveCase,
boolean encode)
set a cookie value
|
touchAfterRequest, touchBeforeRequest
getType, getTypeAsString, initialize, isInitalized, release, release
clear, clone, containsKey, containsKey, duplicate, get, get, get, get, keys, remove, removeEL, set, set, setEL, setEL, size
entryIterator, keyIterator, keysAsStringIterator, valueIterator
getIterator
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
call, callWithNamedValues, get, get, set, setEL
toDumpData
castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, compareTo, compareTo, compareTo, compareTo
void setCookie(Collection.Key name, java.lang.Object value, java.lang.Object expires, boolean secure, java.lang.String path, java.lang.String domain) throws PageException
name
- name of the cookievalue
- value of the cookieexpires
- expirs of the cookie (Date, number in seconds or keyword as string )secure
- set secure or notpath
- path of the cookiedomain
- domain of the cookiePageException
void setCookie(Collection.Key name, java.lang.Object value, int expires, boolean secure, java.lang.String path, java.lang.String domain) throws PageException
name
- Name of the cookievalue
- value of the cookieexpires
- expires in secondssecure
- secute or notpath
- path of the cookiedomain
- domain of the cookiePageException
void setCookieEL(Collection.Key name, java.lang.Object value, int expires, boolean secure, java.lang.String path, java.lang.String domain)
name
- Name of the cookievalue
- value of the cookieexpires
- expires in secondssecure
- secute or notpath
- path of the cookiedomain
- domain of the cookievoid setCookie(Collection.Key name, java.lang.Object value, java.lang.Object expires, boolean secure, java.lang.String path, java.lang.String domain, boolean httpOnly, boolean preserveCase, boolean encode) throws PageException
name
- name of the cookievalue
- value of the cookieexpires
- expirs of the cookie (Date, number in seconds or keyword as string )secure
- set secure or notpath
- path of the cookiedomain
- domain of the cookiehttpOnly
- if true, sets cookie as httponly so that it cannot be accessed using JavaScripts. Note that the browser must have httponly compatibility.preserveCase
- if true, keep the case of the name as it isencode
- if true, url encode the name and the valuePageException
void setCookie(Collection.Key name, java.lang.Object value, int expires, boolean secure, java.lang.String path, java.lang.String domain, boolean httpOnly, boolean preserveCase, boolean encode) throws PageException
name
- Name of the cookievalue
- value of the cookieexpires
- expires in secondssecure
- secute or notpath
- path of the cookiedomain
- domain of the cookiehttpOnly
- if true, sets cookie as httponly so that it cannot be accessed using JavaScripts. Note that the browser must have httponly compatibility.preserveCase
- if true, keep the case of the name as it isencode
- if true, url encode the name and the valuePageException
void setCookieEL(Collection.Key name, java.lang.Object value, int expires, boolean secure, java.lang.String path, java.lang.String domain, boolean httpOnly, boolean preserveCase, boolean encode)
name
- Name of the cookievalue
- value of the cookieexpires
- expires in secondssecure
- secute or notpath
- path of the cookiedomain
- domain of the cookiehttpOnly
- if true, sets cookie as httponly so that it cannot be accessed using JavaScripts. Note that the browser must have httponly compatibility.preserveCase
- if true, keep the case of the name as it isencode
- if true, url encode the name and the value