dev@jsr311.java.net

Provider mime type matching

From: Bill Burke <bburke_at_redhat.com>
Date: Fri, 05 Sep 2008 09:33:55 -0400

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/vnd.google-earth.kml+xml". 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.

Bil


-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com