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
ConstructorsConstructorDescriptionAzureBlobStorageEntry(@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 StringgetKey()The object path on object storage.@NonNull com.azure.core.util.BinaryDataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:ObjectStorageEntryThe object path on object storage. For example/path/to- Specified by:
getKeyin 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:
getInputStreamin interfaceObjectStorageEntry<com.azure.core.util.BinaryData>- Returns:
- The object content.
-
getNativeEntry
@NonNull public @NonNull com.azure.core.util.BinaryData getNativeEntry()- Specified by:
getNativeEntryin 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:
getMetadatain 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:
getContentTypein interfaceObjectStorageEntry<com.azure.core.util.BinaryData>- Returns:
- the MIME type of the entry.
-
AzureBlobStorageEntry(String, BinaryData, BlobProperties)