commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mbe...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient URI.java
Date Fri, 01 Aug 2003 23:18:47 GMT
mbecke      2003/08/01 16:18:47

  Modified:    httpclient/src/java/org/apache/commons/httpclient URI.java
  Log:
  Changed URI.normalize() to ignore relative path normalization. (Copied from branch 2.0)
  
Submitted by: Michael Becke
  
  Revision  Changes    Path
  1.40      +13 -7     jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/URI.java
  
  Index: URI.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/URI.java,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- URI.java	19 Jul 2003 09:41:38 -0000	1.39
  +++ URI.java	1 Aug 2003 23:18:47 -0000	1.40
  @@ -3529,13 +3529,19 @@
   
   
       /**
  -     * Normalize the path part of this URI.
  +     * Normalizes the path part of this URI.  Normalization is only meant to be performed
on 
  +     * URIs with an absolute path.  Calling this method on a relative path URI will have
no
  +     * effect.
        *
        * @throws URIException no more higher path level to be normalized
  +     * 
  +     * @see #isAbsPath()
        */
       public void normalize() throws URIException {
  -        _path = normalize(_path);
  -        setURI();
  +        if (isAbsPath()) {
  +            _path = normalize(_path);
  +            setURI();
  +        }
       }
   
   
  
  
  

Mime
View raw message