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 Summary
ConstructorDescriptionAzureBlobStorageEntry
(@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 Summary
Modifier and TypeMethodDescription@Nullable com.azure.storage.blob.models.BlobProperties
@NonNull InputStream
@NonNull String
getKey()
The object path on object storage.@NonNull com.azure.core.util.BinaryData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.objectstorage.ObjectStorageEntry
toStreamedFile, toSystemFile
-
Constructor Details
-
AzureBlobStorageEntry
@Deprecated public AzureBlobStorageEntry(@NonNull @NonNull String key, @NonNull @NonNull com.azure.core.util.BinaryData data) Deprecated.- Parameters:
key
- the keydata
- the binary data
-
AzureBlobStorageEntry
public AzureBlobStorageEntry(@NonNull @NonNull String key, @NonNull @NonNull com.azure.core.util.BinaryData data, @Nullable @Nullable com.azure.storage.blob.models.BlobProperties blobProperties)
-
-
Method Details
-
getKey
Description copied from interface:ObjectStorageEntry
The object path on object storage. For example/path/to
- Specified by:
getKey
in interfaceObjectStorageEntry<com.azure.core.util.BinaryData>
- Returns:
- object path or empty string if the object is placed at the root of bucket
-
getInputStream
- Specified by:
getInputStream
in interfaceObjectStorageEntry<com.azure.core.util.BinaryData>
- Returns:
- The object content.
-
getNativeEntry
@NonNull public @NonNull com.azure.core.util.BinaryData getNativeEntry()- Specified by:
getNativeEntry
in interfaceObjectStorageEntry<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:
getMetadata
in interfaceObjectStorageEntry<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:
getContentType
in interfaceObjectStorageEntry<com.azure.core.util.BinaryData>
- Returns:
- the MIME type of the entry.
-
AzureBlobStorageEntry(String, BinaryData, BlobProperties)