public static HttpURLConnection listShares ( final URI uri , final FileRequestOptions fileOptions , final OperationContext opContext , final ListingContext listingContext , final EnumSet < ShareListingDetails > detailsIncluded ) throws URISyntaxException , IOException , StorageException { final UriQueryBuilder builder = BaseRequest . getListUriQueryBuilder ( listingContext ) ; if ( detailsIncluded != null && detailsIncluded . size ( ) > 0 ) { final StringBuilder sb = new StringBuilder ( ) ; boolean started = false ; if ( detailsIncluded . contains ( ShareListingDetails . SNAPSHOTS ) ) { started = true ; sb . append ( SNAPSHOTS_QUERY_ELEMENT_NAME ) ; } if ( detailsIncluded . contains ( ShareListingDetails . METADATA ) ) { if ( started ) { sb . append ( "," ) ; } sb . append ( Constants . QueryConstants . METADATA ) ; } builder . add ( Constants . QueryConstants . INCLUDE , sb . toString ( ) ) ; } final HttpURLConnection request = BaseRequest . createURLConnection ( uri , fileOptions , builder , opContext ) ; request . setRequestMethod ( Constants . HTTP_GET ) ; return request ; }
Constructs a request to return a listing of all shares in this storage account . Sign with no length specified .