users@jersey.java.net

Re: [Jersey] custom media types

From: Meredith Gregory <lgreg.meredith_at_gmail.com>
Date: Thu, 15 Oct 2009 10:27:23 -0700

Dear Jersyans,

Do you have a maven archetype that generates a basic jersey project?

Best wishes,

--greg

On Thu, Oct 15, 2009 at 7:27 AM, Paul Sandoz <Paul.Sandoz_at_sun.com> wrote:

>
> On Oct 15, 2009, at 4:19 PM, Felipe Gaścho wrote:
>
> following the last discussion about hateoas, how can I create custom
>> MediaTypes with jersey ? any example ?
>>
>
> Do you mean using something like application/vnd.com.foo+xml and
> application/vnd.com.foo+json ?
>
> If so it is no different than declaring "application/xml".
>
> What Jersey/JAX-RS cannot do is perform matching on parameters of media
> types so you have to make sure all important information is in the type or
> subtype of the media type.
>
> Paul.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>


-- 
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117
+1 206.650.3740
http://biosimilarity.blogspot.com