UriQueryBuilder Class

  • java.lang.Object
    • com.microsoft.azure.storage.core.UriQueryBuilder

public class UriQueryBuilder

RESERVED FOR INTERNAL USE. A helper class to help modify the query string of a URI

Method Summary

Modifier and Type Method and Description
void add(final String name, final String value)

Adds a value to the URI with escaping.

URI addToURI(final URI uri)

Add query parameter to an existing Uri. This takes care of any existing query parameters in the Uri.

String toString()

Returns a string that represents this instance. This will construct the full URI.

Method Details

add

public void add(final String name, final String value)

Adds a value to the URI with escaping.

Parameters:

name - the query key name.
value - the query value.

Throws:

StorageException

addToURI

public URI addToURI(final URI uri)

Add query parameter to an existing Uri. This takes care of any existing query parameters in the Uri.

Parameters:

uri - the original uri.

Returns:

the appended uri

Throws:

URISyntaxException - if the resulting uri is invalid.
StorageException

toString

public String toString()

Returns a string that represents this instance. This will construct the full URI.

Returns:

a string that represents this instance.

Applies to