users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Re: restrict Request.getEntityInputStream()?

From: Sergey Beryozkin <sberyozkin_at_talend.com>
Date: Tue, 13 Dec 2011 15:01:44 +0000

Hi
On 13/12/11 14:59, Bill Burke wrote:
>
>
> On 12/13/11 9:48 AM, Marek Potociar wrote:
>> Not sure we are on the same page. My question is, whether you think
>> that (on the server side) the following 2 methods
>> are interchangeable:
>>
>> request.getEntity(InputStream.class);
>> request.getEntityInputStream();
>>
>
> No we weren't on the same page :) Thanks for clarifying.
>
> Yes, you're right, they are interchangeable. So, yes,
> getEntityInputStream() isn't needed.

Will

request.getEntity(Book.class);

work ?

Cheers, Sergey

>
> Bill
>


-- 
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com