Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-dev] Looking for Jetty HttpClient that downloads large zip files ...

Thank you Simone.  

On Wed, Sep 14, 2016 at 2:13 PM, Simone Bordet <sbordet@xxxxxxxxxxx> wrote:

On Wed, Sep 14, 2016 at 8:47 PM, Simone Bordet <sbordet@xxxxxxxxxxx> wrote:
> For 1 GiB downloads, you want to save to a file.
> I will expand the documentation.


The idea is to open a FileChannel, and for each invocation of
Response.ContentListener.onContent(), you write the ByteBuffer to the
If there is an error, you close the file and call Response.abort().
If all good, you close the file in Response.SuccessListener.onSuccess()

Simone Bordet
Developer advice, training, services and support
from the Jetty & CometD experts.
jetty-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top