[Jersey] Entity streams

From: Gili <>
Date: Thu, 28 Apr 2011 12:33:50 -0700 (PDT)


I'd like to define a @GET method whose entity is an OutputStream that gets
populated slowly over time. Imagine for example, a response that gets
populated with a line of text every second, for a total of one minute. The
client would like to act on the reply every time a line is added (once a
second) as opposed to waiting for the complete response to be written (once
a minute).

I figured out that I'm supposed to use on
the server-side thanks to
but it's not clear what I'm supposed to do on the client-side.

How can I get access the client-side InputStream before the Response is


View this message in context:
Sent from the Jersey mailing list archive at