users@jersey.java.net

Re: [Jersey] primitive types - best response format ??

From: Tatu Saloranta <tsaloranta_at_gmail.com>
Date: Mon, 4 May 2009 10:29:22 -0700

On Mon, May 4, 2009 at 1:37 AM, Paul Sandoz <Paul.Sandoz_at_sun.com> wrote:
>
...
> No. JAX-RS does not define support for such non-String-based primitive
> types. It is an open question to what exactly should be the string format of
> such primitive types.

Fair enough, for general case.

For text/plain, it seems like it'd be easy enough to have something
like ToStringMessageBodyReader/Writer. But not sure if that's worth
additional work.

-+ Tatu +-