users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Re: setting request properties disrupts fluent api

From: Markus KARG <markus_at_headcrashing.eu>
Date: Wed, 24 Oct 2012 18:18:13 +0200

I have no objections but on the other hand do not see why you want to file a
JIRA only in case people explicitly agree. I mean, ain't it enough that
nobody objects? ;-)

> -----Original Message-----
> From: Bill Burke [mailto:bburke_at_redhat.com]
> Sent: Mittwoch, 24. Oktober 2012 16:26
> To: jsr339-experts_at_jax-rs-spec.java.net
> Subject: [jsr339-experts] setting request properties disrupts fluent
> api
>
> I have some features that require setting a request property. It is a
> bit awkward in the current API:
>
> WebTarget target = ...;
> Invocation.Builder request = target.request();
> request.configuration().setProperty("custom", "value"); Response
> response = request.get();
>
> Would be cool, if there were a property() method on Invocation.Builder:
>
> Response response = client.target(...).request().property("custom",
> "value").get();
>
> I'll log a JIRA if people agree.
>
>
> --
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com