users@jersey.java.net

Maven archetypes <was> Re: [Jersey] custom media types

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Thu, 15 Oct 2009 21:27:53 +0200

On Oct 15, 2009, at 7:27 PM, Meredith Gregory wrote:

> Dear Jersyans,
>
> Do you have a maven archetype that generates a basic jersey project?
>

Yes, see here:

   http://download.java.net/maven/2/com/sun/jersey/archetypes/

Paul.

> 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