Skip to main content

[jax-rs-spec issues] [JIRA] Resolved: (JAX_RS_SPEC-302) setting client request properties disrupts fluent API flow

  • From: "Marek Potociar (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [jax-rs-spec issues] [JIRA] Resolved: (JAX_RS_SPEC-302) setting client request properties disrupts fluent API flow
  • Date: Fri, 2 Nov 2012 09:55:12 +0000 (GMT+00:00)
  • Auto-submitted: auto-generated


     [ 
http://java.net/jira/browse/JAX_RS_SPEC-302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marek Potociar resolved JAX_RS_SPEC-302.
----------------------------------------

    Resolution: Fixed

Fixed: 
http://java.net/projects/jax-rs-spec/sources/git/revision/2e6576dd2c778e0174e2ce89f2fcd525c8d6ec63

> setting client request properties disrupts fluent API flow
> ----------------------------------------------------------
>
>                 Key: JAX_RS_SPEC-302
>                 URL: http://java.net/jira/browse/JAX_RS_SPEC-302
>             Project: jax-rs-spec
>          Issue Type: Improvement
>    Affects Versions: 2.0-pr
>            Reporter: patriot1burke
>            Assignee: Marek Potociar
>            Priority: Minor
>             Fix For: 2.0-pfd, 2.0
>
>          Time Spent: 12 hours
>  Remaining Estimate: 0 minutes
>
> I have some features that require setting request properties on the client. 
>  The current API is a bit awkward:
> {code}
> WebTarget target = ...;
> Invocation.Builder request = target.request();
> request.configuration().setProperty("custom", "value");
> Response response = request.get();
> {code}
> Would be cool, if there were a property() method on Invocation.Builder:
> {code}
> Response response = client.target(...).request().property("custom", 
> "value").get();
> {code}
> I also suggest removing configuration() from Invocation.Builder and move it 
> to Invocation, or remove it entirely. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[jax-rs-spec issues] [JIRA] Resolved: (JAX_RS_SPEC-302) setting client request properties disrupts fluent API flow

Marek Potociar (JIRA) 11/02/2012
 
 
Close
loading
Please Confirm
Close