jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Re: Removing command pattern simplifies things

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Thu, 01 Sep 2011 14:00:45 +0200

There's no "safety", at least not the way I understand the word. It's just that API naturally hints you that you need to
set the content type, if you are sending an entity.

Higher level API is a completely different story IMO. It should be more type-safe and work on the level of invoking
methods on objects rather then constructing single HTTP requests.

Marek

On 08/31/2011 04:40 PM, Sergey Beryozkin wrote:
> As far as the safety associated with Entity is concerned - how about using it in the higher-level API ?