public static HttpURLConnection getFileRanges ( final URI uri , final FileRequestOptions fileOptions , final OperationContext opContext , final AccessCondition accessCondition , final String snapshotVersion ) throws StorageException , IOException , URISyntaxException { final UriQueryBuilder builder = new UriQueryBuilder ( ) ; addShareSnapshot ( builder , snapshotVersion ) ; builder . add ( Constants . QueryConstants . COMPONENT , RANGE_LIST_QUERY_ELEMENT_NAME ) ; final HttpURLConnection request = BaseRequest . createURLConnection ( uri , fileOptions , builder , opContext ) ; request . setRequestMethod ( Constants . HTTP_GET ) ; if ( accessCondition != null ) { accessCondition . applyConditionToRequest ( request ) ; } return request ; }
Constructs a HttpURLConnection to return a list of the file s file ranges . Sign with no length specified .