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

[jsr339-experts] Re: HttpRequest.Builder is forced

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Mon, 27 Jun 2011 09:55:41 +0200

It guarantees that a request instance is *ALWAYS* completely initialized in a sense that it has a URI and HTTP method
name set. I prefer separating those too to avoid the explosion of method overloads that would cover all the combination
of URI init parameters (String, URI, UriBuilder) and HTTP method names.

Marek

On 06/24/2011 06:15 PM, Bill Burke wrote:
> I still don't get the reasoning for HttpRequest.Builder. Since HttpRequest allows you to change the method anyways, why
> have a Builder? I just don't see what it buys you.