Re: EntityProvider changes

From: Dhanji R. Prasanna <>
Date: Sat, 18 Aug 2007 19:48:35 +1000

On 8/17/07, Marc Hadley <> wrote:
> We'd like to suggest a couple of minor changes to EntityProvider:
> (i) Include mediaType as an explicit argument in the writeTo method.
> Currently an EntityProvider impl would have to go spelunking in the
> headers to work out what its supposed to be writing if it supports
> multiple media types.

Sounds good. +1

(ii) Make the mediaType arguments of readFrom and writeTo be of type
> MediaType rather than String.

Are there any annotations that refer to MediaType? Something like

How would we configure such an annotation if MediaType were not a string (or
supported literal)?