mbecke      2003/02/27 15:41:38

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HttpMethodBase.java
  Log:
  This class should now compile in Visual Age.
  PR: 17166
  Reviewed by: Jeff Dever
  
  Revision  Changes    Path
  1.118     +13 -15    
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.117
  retrieving revision 1.118
  diff -u -r1.117 -r1.118
  --- HttpMethodBase.java       25 Feb 2003 23:20:23 -0000      1.117
  +++ HttpMethodBase.java       27 Feb 2003 23:41:38 -0000      1.118
  @@ -1852,7 +1852,15 @@
           // close the underlying stream as soon as it is consumed, and notify
           // the watcher that the stream has been consumed.
           if (result != null) {
  -            result = new AutoCloseInputStream(result, responseWatcher);
  +
  +            result = new AutoCloseInputStream(
  +                result,
  +                new ResponseConsumedWatcher() {
  +                    public void responseConsumed() {
  +                        responseBodyConsumed();
  +                    }
  +                }
  +            );
           }
   
           return result;
  @@ -2482,16 +2490,6 @@
               responseConnection = null;
           }
       }
  -
  -    /**
  -     * This exists so that the public interface to this class need not include
  -     * either the responseConsumed or the responseBodyConsumed methods.
  -     */
  -    private ResponseConsumedWatcher responseWatcher = new ResponseConsumedWatcher() 
{
  -        public void responseConsumed() {
  -            responseBodyConsumed();
  -        }
  -    };
   
       /**
        * Returns the hostConfiguration.
  
  
  

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

Reply via email to