Package io.micronaut.objectstorage.azure
Class AzureBlobStorageEntry
java.lang.Object
io.micronaut.objectstorage.azure.AzureBlobStorageEntry
- All Implemented Interfaces:
- ObjectStorageEntry<com.azure.core.util.BinaryData>
public class AzureBlobStorageEntry
extends Object
implements ObjectStorageEntry<com.azure.core.util.BinaryData>
An 
ObjectStorageEntry implementation for Azure Blob Storage.- Since:
- 1.0
- Author:
- Pavol Gressa
- 
Constructor SummaryConstructorsConstructorDescriptionAzureBlobStorageEntry(@NonNull String key, @NonNull com.azure.core.util.BinaryData data) Deprecated.AzureBlobStorageEntry(@NonNull String key, @NonNull com.azure.core.util.BinaryData data, @Nullable com.azure.storage.blob.models.BlobProperties blobProperties) 
- 
Method SummaryModifier and TypeMethodDescription@Nullable com.azure.storage.blob.models.BlobProperties@NonNull InputStream@NonNull StringgetKey()The object path on object storage.@NonNull com.azure.core.util.BinaryDataMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.objectstorage.ObjectStorageEntrytoStreamedFile, toSystemFile
- 
Constructor Details- 
AzureBlobStorageEntry@Deprecated public AzureBlobStorageEntry(@NonNull @NonNull String key, @NonNull @NonNull com.azure.core.util.BinaryData data) Deprecated.- Parameters:
- key- the key
- data- the binary data
 
- 
AzureBlobStorageEntrypublic AzureBlobStorageEntry(@NonNull @NonNull String key, @NonNull @NonNull com.azure.core.util.BinaryData data, @Nullable @Nullable com.azure.storage.blob.models.BlobProperties blobProperties) 
 
- 
- 
Method Details- 
getKeyDescription copied from interface:ObjectStorageEntryThe object path on object storage. For example/path/to- Specified by:
- getKeyin interface- ObjectStorageEntry<com.azure.core.util.BinaryData>
- Returns:
- object path or empty string if the object is placed at the root of bucket
 
- 
getInputStream- Specified by:
- getInputStreamin interface- ObjectStorageEntry<com.azure.core.util.BinaryData>
- Returns:
- The object content.
 
- 
getNativeEntry@NonNull public @NonNull com.azure.core.util.BinaryData getNativeEntry()- Specified by:
- getNativeEntryin interface- ObjectStorageEntry<com.azure.core.util.BinaryData>
- Returns:
- The underlying cloud vendor-specific response object.
 
- 
getBlobProperties@Nullable public @Nullable com.azure.storage.blob.models.BlobProperties getBlobProperties()- Returns:
- The BlobProperties.
- Since:
- 1.1.0
 
- 
getMetadata- Specified by:
- getMetadatain interface- ObjectStorageEntry<com.azure.core.util.BinaryData>
- Returns:
- a map with key-value pairs that were stored along the file. An empty map by default.
 
- 
getContentType- Specified by:
- getContentTypein interface- ObjectStorageEntry<com.azure.core.util.BinaryData>
- Returns:
- the MIME type of the entry.
 
 
- 
AzureBlobStorageEntry(String, BinaryData, BlobProperties)