I can only determine the parameter type / method by the message body, so
I guess I need a generic "put" method with an object, and use the
provider to create the correct object, before using an if instanceof in
the method.

-- 
John Baker

On Mon, Jul 29, 2013, at 12:46 PM, Sergey Beryozkin wrote:
> On 29/07/13 12:41, John Baker wrote:
> > Sergey,
> >
> >
> >> You can have "@Context MessageContext" or any of standard JAX-RS
> >> contexts injected into your custom provider
> >
> > Just to clarify, should I inject this as a class variable on the
> > provider, ie are the providers thread safe and is the message updated on
> > each call to readFrom?
> >
> Yes, the injected contexts ate thread-safe
> 
> Sergey
> >
> > John
> >
> 
> 

Reply via email to