users@jersey.java.net

Re: [Jersey] multipart/form-data versus multipart/mixed

From: Craig McClanahan <Craig.McClanahan_at_Sun.COM>
Date: Thu, 20 Nov 2008 15:03:59 -0800

Gili wrote:
> Is there a MediaType constant for multipart/mixed or do I have to provide the
> String manually?
Unfortunately not in the JAX-RS APIs ... but you can easily create your
own. But, you don't actually have to with jersey-multipart since that
is in fact the default media type.

    public static final MediaType MULTIPART_MIXED_TYPE =
        new MediaType("multipart", "mixed");

> Compile-time safety is good :)
>
+1.
> Gili
>
Craig