You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Gili (Jira)" <ji...@apache.org> on 2020/12/07 17:00:00 UTC

[jira] [Commented] (HTTPCLIENT-2130) Ability to append to the path of a URIBuilder

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-2130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17245342#comment-17245342 ] 

Gili commented on HTTPCLIENT-2130:
----------------------------------

Cool. Thank you for the quick turnaround!

> Ability to append to the path of a URIBuilder
> ---------------------------------------------
>
>                 Key: HTTPCLIENT-2130
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2130
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: HttpClient (classic)
>    Affects Versions: 5.0.3
>            Reporter: Gili
>            Priority: Major
>             Fix For: 5.1-beta1
>
>
> JAX-RS's UriBuilder provides a mechanism to incrementally build up the path of a URI.
> HttpComponent's URIBuilder provides setPath() but it cannot be used to fluently append to the path because one has to getPath() in order to append.
> Instead of:
> {code:java}
> uriBuilder.doSomething();
> String path1 = uriBuilder.getPath();
> temp.setPath(path1 + path2);{code}
> We should be able to invoke:
> {code:java}
> uriBuilder.doSomething().appendPath(path2);{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org