On 20/01/12 15:46, Bill Burke wrote:
> getEntityInputStream was removed.
Then close() should probably be expected by a Response implementation,
if it is been called then close the entity if it is closable.
Sergey
>
> On 1/20/12 5:00 AM, Sergey Beryozkin wrote:
>> On 19/01/12 23:40, Bill Burke wrote do wha:
>>> 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
>>
>> Sergey
>