/** * Adds a queryString to an URI. * * @param resourceURI * the URI of the resource * @param queryString * the query string to add * @return an appended URI. * @throws URISyntaxException * if the resulting URI is invalid. * @throws StorageException */ public static URI addToQuery(final URI resourceURI, final String queryString) throws URISyntaxException, StorageException { return addToSingleUriQuery(resourceURI, parseQueryString(queryString)); }
/** * Adds a queryString to an URI. * * @param resourceURI * the URI of the resource * @param queryString * the query string to add * @return an appended URI. * @throws URISyntaxException * if the resulting URI is invalid. * @throws StorageException */ public static URI addToQuery(final URI resourceURI, final String queryString) throws URISyntaxException, StorageException { return addToSingleUriQuery(resourceURI, parseQueryString(queryString)); }
/** * Adds a queryString to an URI. * * @param resourceURI * the URI of the resource * @param queryString * the query string to add * @return an appended URI. * @throws URISyntaxException * if the resulting URI is invalid. * @throws StorageException */ public static StorageUri addToQuery(final StorageUri resourceURI, final String queryString) throws URISyntaxException, StorageException { return new StorageUri(addToSingleUriQuery(resourceURI.getPrimaryUri(), parseQueryString(queryString)), addToSingleUriQuery(resourceURI.getSecondaryUri(), parseQueryString(queryString))); }
/** * Adds a queryString to an URI. * * @param resourceURI * the URI of the resource * @param queryString * the query string to add * @return an appended URI. * @throws URISyntaxException * if the resulting URI is invalid. * @throws StorageException */ public static StorageUri addToQuery(final StorageUri resourceURI, final String queryString) throws URISyntaxException, StorageException { return new StorageUri(addToSingleUriQuery(resourceURI.getPrimaryUri(), parseQueryString(queryString)), addToSingleUriQuery(resourceURI.getSecondaryUri(), parseQueryString(queryString))); }