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

[jsr339-experts] Re: [jax-rs-spec users] Re: Removing command pattern simplifies things

From: Sergey Beryozkin <sberyozkin_at_talend.com>
Date: Tue, 30 Aug 2011 11:03:03 +0100

>
> A target and a request are clearly separate concepts. I can create a target and then submit multiple requests from it. IMO, the transition looks good even at the user level. Consider,
>
> Target target = …
> target.header(…)

right...I start warming up a bit to the fact that first a target URI is
being created, and only then, after a transition, headers and or entity
is added...

Sergey

>
> What does it mean to add a header to target? Headers really belong to requests, not targets. To semantically explain the statement above, you need to think about the transition between a target and a request, and I in general like things to be explicit.
>
> -- Santiago
>


-- 
Sergey Beryozkin
http://sberyozkin.blogspot.com
Talend - http://www.talend.com