users@jax-rs-spec.java.net

[jax-rs-spec users] Re: Media type in client request

From: Santiago Pericas-Geertsen <Santiago.PericasGeertsen_at_oracle.com>
Date: Thu, 7 Mar 2013 10:15:16 -0500

On Mar 7, 2013, at 7:25 AM, Arun Gupta <arun.p.gupta_at_oracle.com> wrote:

> In the Client API, what is the usecase for specifying the media type in the request() method ?
>
> Typically, I'd typify the get() method in which case on-the-wire format does not really matter.

 By "typify" you mean using get(Class<?> clazz)? If so, the on-the-wire format is relevant given that you won't likely have message body readers for all representations and the class clazz.

-- Santiago