All Packages Class Hierarchy This Package Previous Next Index
Class com.expershop.esapi.Cookie
java.lang.Object
|
+----com.expershop.esapi.Cookie
- public class Cookie
- extends Object
A client cookie
-
get(String)
- Get a client session information: equivalent to $Cookie:name$ in the
templates.
-
set(String, String)
- Set a client session information: equivalent to $SetCookie in the
templates.
-
setCookie(ServletRequest)
- Re-initialize the cookie's value according to the parameters present in
a given ServletRequest.
setCookie
public void setCookie(ServletRequest req)
- Re-initialize the cookie's value according to the parameters present in
a given ServletRequest.
get
public String get(String name) throws SQLException
- Get a client session information: equivalent to $Cookie:name$ in the
templates.
- Parameters:
- name - The name of the "cookie" variable to be retrieved.
- Returns:
- The specified "cookie" variable's value, or null if not present.
set
public void set(String name,
String val)
- Set a client session information: equivalent to $SetCookie in the
templates.
- Parameters:
- name - The name of the "cookie" variable to be set.
- val - The new value for the specified "cookie" variable.
All Packages Class Hierarchy This Package Previous Next Index