users@jsr311.java.net

Re: JAXRS Response and status code

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Mon, 23 Mar 2009 18:19:23 -0500

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
>