public class S3ObjectMetadata extends Object implements StorageObjectMetadata
It only supports a limited set of metadata properties currrently used by the JDBC client
| Modifier and Type | Method and Description |
|---|---|
void |
addUserMetadata(String key,
String value)
Adds the key value pair of custom user-metadata for the associated object.
|
String |
getContentEncoding() |
long |
getContentLength() |
Map<String,String> |
getUserMetadata() |
void |
setContentEncoding(String encoding)
Sets the optional Content-Encoding HTTP header specifying what content encodings, have been
applied to the object and what decoding mechanisms must be applied, in order to obtain the
media-type referenced by the Content-Type field.
|
void |
setContentLength(long contentLength)
Sets size of the associated object in bytes
|
public Map<String,String> getUserMetadata()
getUserMetadata in interface StorageObjectMetadatapublic long getContentLength()
getContentLength in interface StorageObjectMetadatapublic void setContentLength(long contentLength)
StorageObjectMetadatasetContentLength in interface StorageObjectMetadatacontentLength - the length of contentpublic void addUserMetadata(String key, String value)
StorageObjectMetadataaddUserMetadata in interface StorageObjectMetadatakey - the key of user metadatavalue - the value of user metadatapublic void setContentEncoding(String encoding)
StorageObjectMetadatasetContentEncoding in interface StorageObjectMetadataencoding - the encoding name using in HTTP header Content-Encodingpublic String getContentEncoding()
getContentEncoding in interface StorageObjectMetadataCopyright © 2022. All rights reserved.