Return-Path: Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: (qmail 35654 invoked from network); 26 Jun 2009 13:20:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Jun 2009 13:20:26 -0000 Received: (qmail 52478 invoked by uid 500); 26 Jun 2009 13:20:37 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 52429 invoked by uid 500); 26 Jun 2009 13:20:36 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 52419 invoked by uid 99); 26 Jun 2009 13:20:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jun 2009 13:20:36 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [92.42.190.144] (HELO ok2cons2.nine.ch) (92.42.190.144) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jun 2009 13:20:27 +0000 Received: by ok2cons2.nine.ch (Postfix, from userid 1000) id 916604BA46E; Fri, 26 Jun 2009 15:20:07 +0200 (CEST) Date: Fri, 26 Jun 2009 15:20:07 +0200 From: Oleg Kalnichevski To: HttpClient User Discussion Subject: Re: Status tracking Message-ID: <20090626132007.GC9399@ok2cons2.nine.ch> Mail-Followup-To: HttpClient User Discussion References: <6c6be1ae0906260433t51449ba8g68df462914988bf6@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6c6be1ae0906260433t51449ba8g68df462914988bf6@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Jun 26, 2009 at 01:33:30PM +0200, Adrian Cole wrote: > Hello. > > I am using http core NIO and investigating how to provide feedback on upload > (PUT/POST) and download (GET) entity enclosing requests. Essentially, I'd > like to know when a certain number of the overall bytes have been > transmitted/consumed. Do you have any strategies for this for NIO? > > Thanks, > Adrian Cole > jclouds Adrian, The recommended (and the easiest) way to have a complete control over the data transmission process is by providing custom implementations of ConsumingNHttpEntity / ProducingNHttpEntity interfaces http://hc.apache.org/httpcomponents-core/httpcore-nio/apidocs/org/apache/http/nio/entity/ConsumingNHttpEntity.html http://hc.apache.org/httpcomponents-core/httpcore-nio/apidocs/org/apache/http/nio/entity/ProducingNHttpEntity.html Hope this helps Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org