dev@jersey.java.net

Re: [Jersey][WebDAV] Different handling of lax=true

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 12 Jan 2009 21:42:09 +0100

On Jan 12, 2009, at 9:20 PM, Markus KARG wrote:

> I understand, thanks for the clarification! :-)
>
> So to keep my application working with clients not sending any
> Content-Type,
> I have to manually lookup the default JAXB provider and give it a
> fake MIME
> type, right? So I'll do that...
>

You can write your own JAXB message body readers/writers to accept any
media type and override the default behaviour, like i showed in a very
simple example leveraging a Jersey helper class.

Paul.

> Markus
>
>> In the absence of @Consumes or @Produces, */* is assumed, see
>> sections
>> 3.5 and 4.2.3 of the spec:
>>
>> However, the standard JAXB provider is only required to support text/
>> xml, application/xml and application/*+xml, see:
>>
>> https://jsr311.dev.java.net/nonav/releases/1.0/spec/
>> spec3.html#x3-460004.2.4
>>
>> Marc.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: dev-help_at_jersey.dev.java.net
>