users@jsr311.java.net

Re: JAXRS Response and status code

From: Sergey Beryozkin <sberyozk_at_progress.com>
Date: Tue, 24 Mar 2009 09:51:05 -0000

I see, thanks for the clarification...

cheers, Sergey
----- Original Message -----
From: "Marc Hadley" <Marc.Hadley_at_Sun.COM>
To: <users_at_jsr311.dev.java.net>
Sent: Monday, March 23, 2009 11:19 PM
Subject: Re: JAXRS Response and status code


> An application could implement Response directly and return -1 from
> the getStatus method.
>
> Marc.
>
> On Mar 23, 2009, at 1:46 PM, Sergey Beryozkin wrote:
>
>> Hi
>>
>> Section 3.3.3 in JAXRS 1.0 specification says that
>> "A null return value results in a 204 status code (1). If the status
>> property of the Response is not set : a 200 status code is used
>> for a non-null entity property (2) and a 204 status code is used if
>> the entity property is null (3) "
>>
>> I've added (1), (2), (3)
>>
>> (1) is clear to me, but I'm confused about (2) & (3) in that I don't
>> see a method in Response which would not set a status
>> code, directly or indirectly, when creating a ResponseBuilder
>> instance.
>>
>> Can someone post an example plrase when (2) and (3) can be exercized ?
>>
>> thanks, Sergey
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jsr311.dev.java.net
>> For additional commands, e-mail: users-help_at_jsr311.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jsr311.dev.java.net
> For additional commands, e-mail: users-help_at_jsr311.dev.java.net
>