users@jsr311.java.net

Re: ProduceMime on subresource locators

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Wed, 18 Jun 2008 09:57:21 -0400

On Jun 18, 2008, at 9:46 AM, Sergey Beryozkin wrote:
>
> A CXF user spotted that CXF does what seems like a wrong check for
> the media type match when selecting a
> subresource locator. I think he's right, but I'd like some
> confirmation please that indeed, when selecting a method which
> happens to be a subresource locator, no media type match has to be
> done.

Correct, media type matching isn't done until selecting a suitable
resource method.

> While I agree it does not make much sense to check at this level,
> one possible thought is that a user may want to do a check at the
> subresource locator level to ensure that no further processing which
> is bound to fail anyway continues...
>
True, but equally you could then have a situation where you add
support for a new media type at a "terminal" resource class only to
have access blocked by filtering on subresource locators.

Marc.

---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.