You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by he...@apache.org on 2003/02/28 13:41:10 UTC
cvs commit: jakarta-turbine-2/src/java/org/apache/turbine/util ValueParser.java
henning 2003/02/28 04:41:10
Modified: src/java/org/apache/turbine/util ValueParser.java
Log:
Pull the exported constants from the ParserUtils to be consistent but
deprecated them for the next turbine release.
Revision Changes Path
1.6 +30 -8 jakarta-turbine-2/src/java/org/apache/turbine/util/ValueParser.java
Index: ValueParser.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/util/ValueParser.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ValueParser.java 12 Feb 2003 17:24:28 -0000 1.5
+++ ValueParser.java 28 Feb 2003 12:41:10 -0000 1.6
@@ -63,6 +63,8 @@
import org.apache.torque.om.NumberKey;
import org.apache.torque.om.StringKey;
+import org.apache.turbine.util.parser.ParserUtils;
+
/**
* ValueParser is a base interface for classes that need to parse
* name/value Parameters, for example GET/POST data or Cookies
@@ -78,18 +80,38 @@
* @author <a href="mailto:jon@clearink.com">Jon S. Stevens</a>
* @author <a href="mailto:sean@informage.net">Sean Legassick</a>
* @author <a href="mailto:jvanzyl@periapt.com">Jason van Zyl</a>
+ * @author <a href="mailto:hps@intermeta.de">Henning P. Schmiedehausen</a>
* @version $Id$
*/
public interface ValueParser
{
+ /**
+ * The Key for the Case folding.
+ *
+ * @deprecated. Use ParserUtils.URL_CASE_FOLDING_KEY
+ */
+ static final String URL_CASE_FOLDING = ParserUtils.URL_CASE_FOLDING_KEY;
+
/**
- * The case folding property specifying the case folding
- * to apply to value keys of the parser.
+ * No Case folding.
+ *
+ * @deprecated Use ParserUtils.URL_CASE_FOLDING_NONE_VALUE
+ */
+ static final String URL_CASE_FOLDING_NONE = ParserUtils.URL_CASE_FOLDING_NONE_VALUE;
+
+ /**
+ * Fold Keys to lower case.
+ *
+ * @deprecated Use ParserUtils.URL_CASE_FOLDING_LOWER_VALUE
+ */
+ static final String URL_CASE_FOLDING_LOWER = ParserUtils.URL_CASE_FOLDING_LOWER_VALUE;
+
+ /**
+ * Fold Keys to upper case.
+ *
+ * @deprecated Use ParserUtils.URL_CASE_FOLDING_UPPER_VALUE
*/
- static final String URL_CASE_FOLDING = "url.case.folding";
- static final String URL_CASE_FOLDING_NONE = "none";
- static final String URL_CASE_FOLDING_LOWER = "lower";
- static final String URL_CASE_FOLDING_UPPER = "upper";
+ static final String URL_CASE_FOLDING_UPPER = ParserUtils.URL_CASE_FOLDING_UPPER_VALUE;
/**
* Clear all name/value pairs out of this object.
@@ -229,7 +251,7 @@
/**
* Return a boolean for the given name. If the name does not
- * exist, return <code>null</code>.
+ * exist, return false.
*
* @param name A String with the name.
* @return A boolean.
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org