1 package org.apache.turbine.util;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 /***
20 * CookieParser is an interface to a utility to to get and set values
21 * of Cookies on the Client Browser. You can use CookieParser to convert
22 * Cookie values to various types or to set Bean values with setParameters().
23 * Servlet Spec for more information on Cookies.
24 * <p>
25 * Use set() or unset() to Create or Destroy Cookies.
26 * <p>
27 * NOTE: The name= portion of a name=value pair may be converted
28 * to lowercase or uppercase when the object is initialized and when
29 * new data is added. This behaviour is determined by the url.case.folding
30 * property in TurbineResources.properties. Adding a name/value pair may
31 * overwrite existing name=value pairs if the names match:
32 *
33 * <pre>
34 * CookieParser cp = data.getCookies();
35 * cp.add("ERROR",1);
36 * cp.add("eRrOr",2);
37 * int result = cp.getInt("ERROR");
38 * </pre>
39 *
40 * In the above example, result is 2.
41 *
42 * @author <a href="mailto:ilkka.priha@simsoft.fi">Ilkka Priha</a>
43 * @author <a href="mailto:leon@opticode.co.za">Leon Messerschmidt</a>
44 * @version $Id: CookieParser.java 264148 2005-08-29 14:21:04Z henning $
45 * @deprecated Use org.apache.turbine.util.parser.CookieParser instead.
46 */
47 public interface CookieParser
48 extends org.apache.turbine.util.parser.CookieParser
49 {
50 }