commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jeri...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient URIUtil.java
Date Thu, 10 Oct 2002 04:01:52 GMT
jericho     2002/10/09 21:01:52

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        URIUtil.java
  Log:
  - Deprecate all methods of this class....
     It's recommended to use util.URIUtil...
  
  Revision  Changes    Path
  1.13      +26 -4     jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/URIUtil.java
  
  Index: URIUtil.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/URIUtil.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- URIUtil.java	7 Oct 2002 23:46:46 -0000	1.12
  +++ URIUtil.java	10 Oct 2002 04:01:52 -0000	1.13
  @@ -106,6 +106,7 @@
        * sequences into the UTF-8 character <tt>0xHH</tt>.
        *
        * @param str the escaped {@link String}
  +     * @deprecated use {@link org.apache.commons.httpclient.util.URIUtil}
        * @exception IllegalArgumentException if a '%'
        *            character is not followed by a
        *            valid 2-digit hexadecimal number
  @@ -124,6 +125,7 @@
        * MIME type.
        *
        * @param str the escaped {@link String}
  +     * @deprecated use {@link org.apache.commons.httpclient.util.URIUtil}
        * @exception IllegalArgumentException if a '%'
        *            character is not followed by a
        *            valid 2-digit hexadecimal number
  @@ -145,6 +147,7 @@
        * @param bytes the escaped byte array, which
        *              <i>may be changed</i> by this
        *              call
  +     * @deprecated use {@link org.apache.commons.httpclient.util.URIUtil}
        * @exception IllegalArgumentException if a <tt>'%'</tt>
        *            byte is not followed by a valid
        *            2-digit hexadecimal number (as bytes)
  @@ -171,6 +174,7 @@
        * @param bytes the escaped byte array, which
        *              <i>may be changed</i> by this
        *              call
  +     * @deprecated use {@link org.apache.commons.httpclient.util.URIUtil}
        * @exception IllegalArgumentException if a <tt>'%'</tt>
        *            byte is not followed by a valid
        *            2-digit hexadecimal number (as bytes)
  @@ -195,6 +199,7 @@
        *              call
        * @param off the index of the first byte to convert
        * @param len the number of unescaped bytes to convert
  +     * @deprecated use {@link org.apache.commons.httpclient.util.URIUtil}
        * @exception IllegalArgumentException if a <tt>'%'</tt>
        *            byte is not followed by a valid
        *            2-digit hexadecimal number (as bytes)
  @@ -224,6 +229,7 @@
        *              call
        * @param off the index of the first byte to convert
        * @param len the number of unescaped bytes to convert
  +     * @deprecated use {@link org.apache.commons.httpclient.util.URIUtil}
        * @exception IllegalArgumentException if a <tt>'%'</tt>
        *            byte is not followed by a valid
        *            2-digit hexadecimal number (as bytes)
  @@ -246,6 +252,7 @@
        *              <i>may be changed</i> by this
        *              call
        * @param enc the encoding to use
  +     * @deprecated use {@link org.apache.commons.httpclient.util.URIUtil}
        * @exception IllegalArgumentException if a <tt>'%'</tt>
        *            byte is not followed by a valid
        *            2-digit hexadecimal number (as bytes)
  @@ -269,6 +276,7 @@
        *              <i>may be changed</i> by this
        *              call
        * @param enc the encoding to use
  +     * @deprecated use {@link org.apache.commons.httpclient.util.URIUtil}
        * @exception IllegalArgumentException if a <tt>'%'</tt>
        *            byte is not followed by a valid
        *            2-digit hexadecimal number (as bytes)
  @@ -288,6 +296,7 @@
        * @param off the index of the first byte to convert
        * @param len the number of escaped bytes to convert
        * @param enc the encoding to use
  +     * @deprecated use {@link org.apache.commons.httpclient.util.URIUtil}
        * @exception IllegalArgumentException if a '%'
        *            character is not followed by a
        *            valid 2-digit hexadecimal number
  @@ -312,6 +321,7 @@
        * @param off the index of the first byte to convert
        * @param len the number of escaped bytes to convert
        * @param enc the encoding to use
  +     * @deprecated use {@link org.apache.commons.httpclient.util.URIUtil}
        * @exception IllegalArgumentException if a '%'
        *            character is not followed by a
        *            valid 2-digit hexadecimal number
  @@ -348,6 +358,7 @@
        * value of the character in the default encoding).
        *
        * @param str The unescaped string
  +     * @deprecated use {@link org.apache.commons.httpclient.util.URIUtil}
        */
       public static final String encode(String str) {
           return encode(str, null, false);
  @@ -367,6 +378,7 @@
        * MIME type.
        *
        * @param str The unescaped string
  +     * @deprecated use {@link org.apache.commons.httpclient.util.URIUtil}
        */
       public static final String encode(String str, boolean spaceAsPlus) {
           return encode(str, null, spaceAsPlus);
  @@ -381,6 +393,7 @@
        *
        * @param str The unescaped string
        * @param safe The set of "safe" characters (not to be escaped)
  +     * @deprecated use {@link org.apache.commons.httpclient.util.URIUtil}
        */
       public static final String encode(String str, BitSet safe) {
           return (str == null) ? null : encode(str.getBytes(), safe, false);
  @@ -401,6 +414,7 @@
        *
        * @param str The unescaped string
        * @param safe The set of "safe" characters (not to be escaped)
  +     * @deprecated use {@link org.apache.commons.httpclient.util.URIUtil}
        */
       public static final String encode(String str, BitSet safe, boolean spaceAsPlus) {
           return (str == null) ? null : encode(str.getBytes(), safe, spaceAsPlus);
  @@ -416,6 +430,7 @@
        *
        * @param bytes the unescaped bytes
        * @param safe the set of "safe" bytes (not to be escaped)
  +     * @deprecated use {@link org.apache.commons.httpclient.util.URIUtil}
        */
       public static final String encode(byte[] bytes, BitSet safe) {
           return (bytes == null) ? null : encode(bytes, 0, bytes.length, safe, false);
  @@ -437,6 +452,7 @@
        *
        * @param bytes the unescaped bytes
        * @param safe the set of "safe" bytes (not to be escaped)
  +     * @deprecated use {@link org.apache.commons.httpclient.util.URIUtil}
        */
       public static final String encode(byte[] bytes, BitSet safe, boolean spaceAsPlus) {
           return (bytes == null) ? null : encode(bytes, 0, bytes.length, safe, spaceAsPlus);
  @@ -455,6 +471,7 @@
        * @param off the index of the first byte to convert
        * @param len the number of unescaped bytes to convert
        * @param safe The set of "safe" bytes (not to be escaped)
  +     * @deprecated use {@link org.apache.commons.httpclient.util.URIUtil}
        */
       public static final String encode(byte[] bytes, int off, int len, BitSet safe) {
           return (bytes == null) ? null : encode(bytes, 0, bytes.length, safe, false);
  @@ -479,6 +496,7 @@
        * @param off the index of the first byte to convert
        * @param len the number of unescaped bytes to convert
        * @param safe The set of "safe" bytes (not to be escaped)
  +     * @deprecated use {@link org.apache.commons.httpclient.util.URIUtil}
        */
       public static final String encode(byte[] bytes, int off, int len, BitSet safe, boolean
spaceAsPlus) {
           if(null == bytes) { return null; }
  @@ -514,6 +532,7 @@
        * @param str the unescaped string
        * @param safe the set of "safe" characters (not to be escaped)
        * @param enc the encoding to use
  +     * @deprecated use {@link org.apache.commons.httpclient.util.URIUtil}
        */
       public static final String encode(String str, BitSet safe, String enc) {
           return encode(str,safe,enc,false);
  @@ -535,6 +554,7 @@
        * @param str the unescaped string
        * @param safe the set of "safe" characters (not to be escaped)
        * @param enc the encoding to use
  +     * @deprecated use {@link org.apache.commons.httpclient.util.URIUtil}
        */
       public static final String encode(String str, BitSet safe, String enc, boolean spaceAsPlus)
{
           try {
  @@ -554,6 +574,7 @@
        * java.net.URI.getPath() was added.
        *
        * @param url - the URL
  +     * @deprecated use {@link org.apache.commons.httpclient.util.URIUtil}
        * @return the path portion of the URL or "/" if the URL contains an empty path
        */
       public static final String getPath(String url){
  @@ -593,6 +614,7 @@
        * prior to 1.3 when java.net.URL.getQueryString() was added.
        *
        * @param url - the URL
  +     * @deprecated use {@link org.apache.commons.httpclient.util.URIUtil}
        * @return the query string portion of the URL or null if the URL doesn't contain a
query string
        */
       public static final String getQueryString(String url)
  
  
  

--
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