Marc Hadley wrote:
> On Mar 19, 2008, at 4:41 AM, Stephan Koops wrote:
>> Sorry for third email, but I've see a problem to what I wrote:
>> When we ever give the return type of the method, than we have the
>> problem, that the MessageBodyWriter get sometimes
>> javax.ws.rs.Response. So it causes trouble, if we giv the result type
>> to the MessageBodyWriter. A null result also will result in 204 by
>> default. Because of that I propose to define: If an entity object is
>> null, use no MessageBodyWriter, and return no message body.
>
> Agree with null -> no message body writer. Bill had a use-case for null
> though so I'd like to understand that better.
No use case. Just thought maybe MessageBodyWriter might want to send
something for null or have a special case for it.
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com