[jax-rs-spec users] [jsr339-experts] Re: Response.close() required?

From: Sergey Beryozkin <>
Date: Fri, 20 Jan 2012 10:00:20 +0000

On 19/01/12 23:40, Bill Burke wrote:
> Should probably be specified in javadoc and spec whether or not close()
> is a required action.

Response has also the method getEntityInputStream() and the InputStream
in a given Response seems to be the only resource which may need to be
eagerly closed.

Response entity can also be a bean instance, JAXP Source,
StreamingOutput and for these typed of entities calling close() won't
have any effect.

Would it make sense to remove close() ? getEntityInputStream().close()
can be always done instead