mirror of https://github.com/apache/jclouds.git
1fc9b0e259
The patch implements a QueryValue class, which encodes the underlying value based on whether the "encoded" flag is set. This class is used by the RestAnnotationProcessor to propagate the @Encoded value set on any parameters. Since the encoding is now handled by the QueryValue instances, we should no longer call encodeQueryLine() in the URI builder and instead call buildQueryLine(). The caveat is that we need to make sure all of the parameters that may need to be encoded are converted to QueryValue objects. This is done by converting Object instances to QueryValue by an instance of the TransformObjectToQueryValue when adding any query parameters to the URI. |
||
---|---|---|
.. | ||
src | ||
pom.xml |