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 StorageObjectMetadata
public long getContentLength()
getContentLength
in interface StorageObjectMetadata
public void setContentLength(long contentLength)
StorageObjectMetadata
setContentLength
in interface StorageObjectMetadata
contentLength
- the length of contentpublic void addUserMetadata(String key, String value)
StorageObjectMetadata
addUserMetadata
in interface StorageObjectMetadata
key
- the key of user metadatavalue
- the value of user metadatapublic void setContentEncoding(String encoding)
StorageObjectMetadata
setContentEncoding
in interface StorageObjectMetadata
encoding
- the encoding name using in HTTP header Content-Encodingpublic String getContentEncoding()
getContentEncoding
in interface StorageObjectMetadata
Copyright © 2021. All rights reserved.