commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oglu...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/util URIUtil.java
Date Mon, 21 Oct 2002 12:48:00 GMT
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/URIUtil.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>


Mime
View raw message