hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject URIBuilder setQuery() method inconsistent with other set methods
Date Tue, 26 Jun 2012 11:13:00 GMT
The setQuery(String) method currently expects an escaped, ASCII-only
string - basically encoded form data - whereas all the other set
methods expect unescaped input.
This is a bit confusing.

AFAIK, a query string does not have to consist of name value pairs
(i.e. form data), it can be any arbitrary string.
There's currently no way for the end-user to provide such a query.
They would have to use the URI class.

Maybe that is OK, in which case we just need to clarify the URIBuilder
Javadoc to state that it is only intended for use with form data

Perhaps there should be a setQuery(NVP) method which handles form data directly?

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

View raw message