vmassol     2002/08/25 06:41:21

  Modified:    framework/src/java/share/org/apache/cactus/client
                        HttpClientConnectionHelper.java
  Added:       framework/src/java/share/org/apache/cactus/util UrlUtil.java
  Log:
  fix JDK 1.2 compatibility
  
  Revision  Changes    Path
  1.2       +115 -0    
jakarta-cactus/framework/src/java/share/org/apache/cactus/util/UrlUtil.java
  
  
  
  
  1.2       +4 -3      
jakarta-cactus/framework/src/java/share/org/apache/cactus/client/HttpClientConnectionHelper.java
  
  Index: HttpClientConnectionHelper.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-cactus/framework/src/java/share/org/apache/cactus/client/HttpClientConnectionHelper.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- HttpClientConnectionHelper.java   26 Jul 2002 18:50:29 -0000      1.1
  +++ HttpClientConnectionHelper.java   25 Aug 2002 13:41:20 -0000      1.2
  @@ -68,6 +68,7 @@
   import org.apache.commons.httpclient.methods.GetMethod;
   
   import org.apache.cactus.WebRequest;
  +import org.apache.cactus.util.UrlUtil;
   import org.apache.cactus.client.authentication.AbstractAuthentication;
   
   /**
  @@ -133,8 +134,8 @@
   
           this.method.setUseDisk(false);
           this.method.setFollowRedirects(false);
  -        this.method.setPath(url.getPath());
  -        this.method.setQueryString(url.getQuery());
  +        this.method.setPath(UrlUtil.getPath(url));
  +        this.method.setQueryString(UrlUtil.getQuery(url));
   
           // Sets the content type
           this.method.setRequestHeader("Content-type",
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to