microsoft-azure-storage/src/com/microsoft/azure/storage/core/PathUtility.java
public static URI addToSingleUriQuery(final URI resourceURI, final HashMap<String, String[]> fieldCollection)
            throws URISyntaxException, StorageException {
        if (resourceURI == null) {
            return null;
        }

        final UriQueryBuilder outUri = new UriQueryBuilder();

        // Generate new queryString
        for (final Entry<String, String[]> entry : fieldCollection.entrySet()) {
            for (final String val : entry.getValue()) {
                outUri.add(entry.getKey(), val);
            }
        }

        return outUri.addToURI(resourceURI);
    }
public static URI addToSingleUriQuery(final URI resourceURI, final HashMap<String, String[]> fieldCollection)
            throws URISyntaxException, StorageException {
        if (resourceURI == null) {
            return null;
        }

        final UriQueryBuilder outUri = new UriQueryBuilder();

        // Generate new queryString
        for (final Entry<String, String[]> entry : fieldCollection.entrySet()) {
            for (final String val : entry.getValue()) {
                outUri.add(entry.getKey(), val);
            }
        }

        return outUri.addToURI(resourceURI);
    }
public static URI addToSingleUriQuery ( final URI resourceURI , final HashMap < String , String [ ] > fieldCollection ) throws URISyntaxException , StorageException { if ( resourceURI == null ) { return null ; } final UriQueryBuilder outUri = new UriQueryBuilder ( ) ; // Generate new queryString for ( final Entry < String , String [ ] > entry : fieldCollection . entrySet ( ) ) { for ( final String val : entry . getValue ( ) ) { outUri . add ( entry . getKey ( ) , val ) ; } } return outUri . addToURI ( resourceURI ) ; }
Adds a queryString to an URI.

@param resourceURI
the URI of the resource
@param fieldCollection
the key/ values collection to append.
@return an appended URI.
@throws URISyntaxException
if the resulting URI is invalid.
@throws StorageException
Adds a queryString to an URI .