users@jersey.java.net

Re: [Jersey] Supported Mime Tyes in Jersey

From: Naresh <Srinivas.Bhimisetty_at_Sun.COM>
Date: Tue, 28 Jul 2009 10:24:21 +0530

Hi Suchita,

I believe you can use these mime-types in your @Produces annotation, but
you will have to proivide the MessageBodyWriter providers for these
mime-types.

-Naresh

Suchitha Koneru (sukoneru) wrote:
>
> Hello Jersey Users,
>
> Are the mime types(doc, xls and pdf) supported in Jersey ? Can we use
> the following annotation for specifying these mime types
>
> @Produces ( {“application/pdf “ , “application/doc” , ” application/xls”})
>
> Thank You,
>
> Suchitha.
>