Class OracleCloudStorageEntry
java.lang.Object
io.micronaut.objectstorage.oraclecloud.OracleCloudStorageEntry
- All Implemented Interfaces:
ObjectStorageEntry<com.oracle.bmc.objectstorage.responses.GetObjectResponse>
public class OracleCloudStorageEntry
extends Object
implements ObjectStorageEntry<com.oracle.bmc.objectstorage.responses.GetObjectResponse>
An
ObjectStorageEntry implementation for Oracle Cloud Storage.- Since:
- 1.0
- Author:
- Pavol Gressa
-
Constructor Summary
ConstructorsConstructorDescriptionOracleCloudStorageEntry(String key, com.oracle.bmc.objectstorage.responses.GetObjectResponse objectResponse) -
Method Summary
Modifier and TypeMethodDescription@NonNull InputStream@NonNull StringgetKey()The object path on object storage.@NonNull com.oracle.bmc.objectstorage.responses.GetObjectResponseMethods 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
-
OracleCloudStorageEntry
public OracleCloudStorageEntry(String key, com.oracle.bmc.objectstorage.responses.GetObjectResponse objectResponse)
-
-
Method Details
-
getKey
Description copied from interface:ObjectStorageEntryThe object path on object storage. For example/path/to- Specified by:
getKeyin interfaceObjectStorageEntry<com.oracle.bmc.objectstorage.responses.GetObjectResponse>- Returns:
- object path or empty string if the object is placed at the root of bucket
-
getInputStream
- Specified by:
getInputStreamin interfaceObjectStorageEntry<com.oracle.bmc.objectstorage.responses.GetObjectResponse>- Returns:
- The object content.
-
getNativeEntry
@NonNull public @NonNull com.oracle.bmc.objectstorage.responses.GetObjectResponse getNativeEntry()- Specified by:
getNativeEntryin interfaceObjectStorageEntry<com.oracle.bmc.objectstorage.responses.GetObjectResponse>- Returns:
- The underlying cloud vendor-specific response object.
-
getMetadata
- Specified by:
getMetadatain interfaceObjectStorageEntry<com.oracle.bmc.objectstorage.responses.GetObjectResponse>- Returns:
- a map with key-value pairs that were stored along the file. An empty map by default.
-
getContentType
- Specified by:
getContentTypein interfaceObjectStorageEntry<com.oracle.bmc.objectstorage.responses.GetObjectResponse>- Returns:
- the MIME type of the entry.
-