You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (Jira)" <ji...@apache.org> on 2020/12/07 16:54:00 UTC
[jira] [Resolved] (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:all-tabpanel ]
Oleg Kalnichevski resolved HTTPCLIENT-2130.
-------------------------------------------
Fix Version/s: 5.1-beta1
Resolution: Fixed
Implemented in HttpCore (5.1)
https://github.com/apache/httpcomponents-core/commit/d0f2c6ac7302afd822bc7d02d7805f5e6389a362
Oleg
> 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