microsoft-azure-storage/src/com/microsoft/azure/storage/queue/QueueRequest.java
public static HttpURLConnection list(final URI uri, final QueueRequestOptions queueOptions,
            final OperationContext opContext, final ListingContext listingContext,
            final QueueListingDetails detailsIncluded) throws URISyntaxException, IOException, StorageException {
        final UriQueryBuilder builder = BaseRequest.getListUriQueryBuilder(listingContext);

        if (detailsIncluded == QueueListingDetails.ALL || detailsIncluded == QueueListingDetails.METADATA) {
            builder.add(Constants.QueryConstants.INCLUDE, Constants.QueryConstants.METADATA);
        }

        final HttpURLConnection request = BaseRequest.createURLConnection(uri, queueOptions, builder, opContext);

        request.setRequestMethod(Constants.HTTP_GET);

        return request;
    }
public static HttpURLConnection list(final URI uri, final QueueRequestOptions queueOptions,
            final OperationContext opContext, final ListingContext listingContext,
            final QueueListingDetails detailsIncluded) throws URISyntaxException, IOException, StorageException {
        final UriQueryBuilder builder = BaseRequest.getListUriQueryBuilder(listingContext);

        if (detailsIncluded == QueueListingDetails.ALL || detailsIncluded == QueueListingDetails.METADATA) {
            builder.add(Constants.QueryConstants.INCLUDE, Constants.QueryConstants.METADATA);
        }

        final HttpURLConnection request = BaseRequest.createURLConnection(uri, queueOptions, builder, opContext);

        request.setRequestMethod(Constants.HTTP_GET);

        return request;
    }
Constructs a web request to return a listing of all queues in this
storage account. Sign the web request with a length of -1L.

@param uri
A <code>URI</code> object that specifies the absolute URI to
the storage account.
@param queueOptions
A {@link QueueRequestOptions} object that specifies execution options such as retry policy and timeout
settings for the operation. Specify <code>null</code> to use the request options specified on the
{@link CloudQueueClient}.
@param opContext
An {@link OperationContext} object that represents the context
for the current operation. This object is used to track
requests to the storage service, and to provide additional
runtime information about the operation.
@param listingContext
A {@link ListingContext} object that specifies parameters for
the listing operation, if any. May be <code>null</code>.
@param detailsIncluded
A {@link QueueListingDetails} object that specifies additional
details to return with the listing, if any. May be <code>null</code>.
@return An <code>HttpURLConnection</code> configured for the specified
operation.

@throws IOException
@throws URISyntaxException
If the URI is not valid.
@throws StorageException
If a storage service error occurred during the operation.