I would imagine you can inject an instance of the Providers interface
into a field of your filter like this:
public class MyFilter ... {
@Context javax.ws.rs.ext.Providers p;
...
}
You can then use the Providers instance to lookup a MessageBodyWriter
or whatever else you need.
HTH,
Marc.
On May 12, 2009, at 3:17 PM, Paul C. Bryan wrote:
> Is there an easy way to get the registered providers from within a
> client filter?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: dev-help_at_jersey.dev.java.net
>