commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods GetMethod.java
Date Tue, 29 Apr 2003 22:18:08 GMT
olegk       2003/04/29 15:18:08

  Modified:    httpclient/src/java/org/apache/commons/httpclient/methods
                        GetMethod.java
  Log:
  Bug fix #19424 (GetMethod.java checks the "used" flag which cannot be set at this time)
  
  Contributed by Oleg Kalnichevski
  
  Revision  Changes    Path
  1.24      +4 -37     jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/GetMethod.java
  
  Index: GetMethod.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/GetMethod.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- GetMethod.java	2 Feb 2003 04:30:13 -0000	1.23
  +++ GetMethod.java	29 Apr 2003 22:18:08 -0000	1.24
  @@ -279,39 +279,6 @@
       }
   
       /**
  -     * Return my response body, if any, as a byte array. Otherwise return
  -     * <tt>null</tt>.
  -     * 
  -     * @return the response body as a byte array
  -     * 
  -     * @since 2.0
  -     */
  -    public byte[] getResponseBody() {
  -        LOG.trace("enter GetMethod.getResponseBody()");
  -
  -        checkUsed();
  -        return super.getResponseBody();
  -    }
  -
  -    /**
  -     * Return my response body, if any, as an {@link InputStream}. Otherwise
  -     * return <tt>null</tt>.
  -     * 
  -     * @return a stream to read the response from
  -     * 
  -     * @throws IOException when there is an error reading the response
  -     * 
  -     * @since 2.0
  -     */
  -    public InputStream getResponseBodyAsStream() throws IOException {
  -        LOG.trace("enter GetMethod.getResponseBodyAsStream()");
  -
  -        checkUsed();
  -        return super.getResponseBodyAsStream();
  -    }
  -
  -
  -    /**
        * Temporary directory setter.
        * 
        * @param tempDir New value of tempDir
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message