commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marcs...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HttpMethodBase.java
Date Fri, 12 Apr 2002 21:13:59 GMT
marcsaeg    02/04/12 14:13:59

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HttpMethodBase.java
  Log:
  Removed the JDK 1.3 dependencies.  URL.getPath and URL.getQuery() have
  been replaced with URIUtil.getPath and URIUtil.getQueryString().
  
  Revision  Changes    Path
  1.27      +6 -9      jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java
  
  Index: HttpMethodBase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- HttpMethodBase.java	22 Feb 2002 19:20:35 -0000	1.26
  +++ HttpMethodBase.java	12 Apr 2002 21:13:59 -0000	1.27
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java,v
1.26 2002/02/22 19:20:35 marcsaeg Exp $
  - * $Revision: 1.26 $
  - * $Date: 2002/02/22 19:20:35 $
  + * $Header: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java,v
1.27 2002/04/12 21:13:59 marcsaeg Exp $
  + * $Revision: 1.27 $
  + * $Date: 2002/04/12 21:13:59 $
    * ====================================================================
    *
    * The Apache Software License, Version 1.1
  @@ -111,7 +111,7 @@
    * @author Rodney Waldhoff
    * @author Sean C. Sullivan
    * @author <a href="mailto:dion@apache.org">dIon Gillard</a>
  - * @version $Revision: 1.26 $ $Date: 2002/02/22 19:20:35 $
  + * @version $Revision: 1.27 $ $Date: 2002/04/12 21:13:59 $
    */
   public abstract class HttpMethodBase implements HttpMethod {
   
  @@ -619,11 +619,8 @@
                               log.info("Server is attempting to redirect a different port,
which is currently not supported. Returning " + statusCode + ".");
                               break;
                           }
  -                        String absolutePath = url.getPath();
  -                        if (null == absolutePath) {
  -                            absolutePath = "/";
  -                        }
  -                        String qs = url.getQuery();
  +                        String absolutePath = URIUtil.getPath(url.toString());
  +                        String qs = URIUtil.getQueryString(url.toString());
   
                           // if we haven't already, let's try it again with the new path
                           if (visited.contains(connection.getHost() + ":" + connection.getPort()
+ "|" + HttpMethodBase.generateRequestLine(connection, getName(),absolutePath,qs,(http11 ?
"HTTP/1.1" : "HTTP/1.0")))) {
  
  
  

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