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


Method Index

 o get(String)
Get a client session information: equivalent to $Cookie:name$ in the templates.
 o set(String, String)
Set a client session information: equivalent to $SetCookie in the templates.
 o setCookie(ServletRequest)
Re-initialize the cookie's value according to the parameters present in a given ServletRequest.

Methods

 o setCookie
 public void setCookie(ServletRequest req)
Re-initialize the cookie's value according to the parameters present in a given ServletRequest.

 o 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.
 o 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