KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > turbine > util > CookieParser


1 package org.apache.turbine.util;
2
3 /*
4  * Copyright 2001-2004 The Apache Software Foundation.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License")
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
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,v 1.7.2.2 2004/05/20 03:16:38 seade Exp $
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 }
51
Popular Tags