KickJava   Java API By Example, From Geeks To Geeks.

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


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  * ParameterParser is an interface to a utility to handle parsing and
21  * retrieving the data passed via the GET/POST/PATH_INFO arguments.
22  *
23  * <p>NOTE: The name= portion of a name=value pair may be converted
24  * to lowercase or uppercase when the object is initialized and when
25  * new data is added. This behaviour is determined by the url.case.folding
26  * property in TurbineResources.properties. Adding a name/value pair may
27  * overwrite existing name=value pairs if the names match:
28  *
29  * <pre>
30  * ParameterParser pp = data.getParameters();
31  * pp.add("ERROR",1);
32  * pp.add("eRrOr",2);
33  * int result = pp.getInt("ERROR");
34  * </pre>
35  *
36  * In the above example, result is 2.
37  *
38  * @author <a HREF="mailto:ilkka.priha@simsoft.fi">Ilkka Priha</a>
39  * @author <a HREF="mailto:jon@clearink.com">Jon S. Stevens</a>
40  * @author <a HREF="mailto:sean@informage.net">Sean Legassick</a>
41  * @author <a HREF="mailto:hps@intermeta.de">Henning P. Schmiedehausen</a>
42  * @version $Id: ParameterParser.java,v 1.10.2.2 2004/05/20 03:16:38 seade Exp $
43  * @deprecated Use org.apache.turbine.util.parser.ParameterParser instead.
44  */

45 public interface ParameterParser
46         extends org.apache.turbine.util.parser.ParameterParser
47 {
48 }
49
Popular Tags