mirror of
https://github.com/apache/jclouds.git
synced 2025-03-02 22:39:08 +00:00
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.
jclouds
Apache jclouds is an open source multi-cloud toolkit for the Java platform that gives you the freedom to create applications that are portable across clouds while giving you full control to use cloud-specific features.
For more information about using or contributing to jclouds, please visit our website at jclouds.apache.org.
License
Copyright (C) 2009-2013 The Apache Software Foundation
Licensed under the Apache License, Version 2.0
Languages
Java
99.4%
Shell
0.5%