commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sung-Gu" <jeri...@apache.org>
Subject Re: cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/util URIUtil.java
Date Tue, 22 Oct 2002 01:55:25 GMT
Hi oglueck and Justin Bedard,

I don't agree with you guys.
Becuase there are aleady the encodeAll methods for the same functionality.

Sung-Gu

----- Original Message -----
From: <oglueck@apache.org>
To: <jakarta-commons-cvs@apache.org>
Sent: Monday, October 21, 2002 9:48 PM
Subject: cvs commit:
jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/util
URIUtil.java


> oglueck     2002/10/21 05:48:00
>
>   Modified:    httpclient/src/java/org/apache/commons/httpclient/util
>                         URIUtil.java
>   Log:
>   added convenience method (contrib by Justin Bedard)
>
>   Revision  Changes    Path
>   1.5       +19 -4
jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/util/URIUt
il.java
>
>   Index: URIUtil.java
>   ===================================================================
>   RCS file:
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/
util/URIUtil.java,v
>   retrieving revision 1.4
>   retrieving revision 1.5
>   diff -u -r1.4 -r1.5
>   --- URIUtil.java 10 Oct 2002 04:05:54 -0000 1.4
>   +++ URIUtil.java 21 Oct 2002 12:48:00 -0000 1.5
>   @@ -330,6 +330,21 @@
>
>
>        /**
>   +     * Escape and encode a given string and the default protocol
charset.
>   +     *
>   +     * @param unescaped a string
>   +     * @return the escaped string
>   +     * @exception URIException
>   +     * @see URI#getProtocolCharset
>   +     * @see Coder#encode
>   +     */
>   +    public static String encode(String unescaped)
>   +        throws URIException {
>   +
>   +        return encode(unescaped, empty, URI.getProtocolCharset());
>   +    }
>   +
>   +    /**
>         * Escape and encode a given string with allowed characters not to
be
>         * escaped and the default protocol charset.
>         *
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:commons-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:commons-dev-help@jakarta.apache.org>
>

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message