dev@jsr311.java.net

Re: JSR311: what type for writer matching?

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Wed, 09 Apr 2008 07:19:26 -0700

On Apr 9, 2008, at 6:37 AM, Bill Burke wrote:
>
> What should the jax-rs runtime match a MEssageBodyWriter to the
> return entity to?
>
> The object's class? or the method return type?
>
You should use the object's class, otherwise Response.getEntity isn't
so useful since that is always Object...

Marc.

> I have a user that wants to match based on the returned object's
> class as his method return a base interface that won't match the
> desired provider.
>
>
> So, I guess match based on the entity's concrete class and the
> method generic type?
>
>
> Thanks,
>
> Bill
>
>
> --
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jsr311.dev.java.net
> For additional commands, e-mail: dev-help_at_jsr311.dev.java.net
>

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