use of com.microsoft.azure.storage.blob.ListBlobsOptions in project geowebcache by GeoWebCache.
the class AzureClient method listBlobs.
public List<BlobItem> listBlobs(String prefix, Integer maxResults) {
ContainerListBlobFlatSegmentResponse response = container.listBlobsFlatSegment(null, new ListBlobsOptions().withPrefix(prefix).withMaxResults(maxResults)).blockingGet();
BlobFlatListSegment segment = response.body().segment();
List<BlobItem> items = new ArrayList<>();
if (segment != null) {
items.addAll(segment.blobItems());
}
return items;
}
Aggregations