Re: JSR311: Provider mime type matching

From: Stephan Koops <>
Date: Fri, 05 Sep 2008 18:41:08 +0200

Hi Bill,

I think it's too late for the spec, but you could implement it out of
the specification, as I also do. My JAXB provider supports
@Produces( { "application/xml", "text/xml", "application/*+xml" }) (and
also @Consumes)

best regards

Bill Burke schrieb:
> I know this is probably too late but...
> A RESTEasy user brought up an interesting problem:
> They have JAXB annotated classes, but their incoming mime type is
> "application/". They want to use the provided
> JAXB Provider, but have to extend the vendor-specific class and
> register it themselves.
> I guess it would be cool to allow:
> @Produces("application/{regex}+xml")
> or maybe regex's are overkill and something simple like:
> @Produces("application/+xml") will match everything *+xml. I don't
> know :)
> Again, probably too late to get this in, but I'll log an issue anyways.
> Bill