public interface StorageObjectMetadata
Only the metadata accessors and mutators used by the Client currently are supported, additional methods should be added as needed
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
|
Map<String,String> getUserMetadata()
long getContentLength()
void setContentLength(long contentLength)
contentLength
- the length of contentvoid addUserMetadata(String key, String value)
key
- the key of user metadatavalue
- the value of user metadatavoid setContentEncoding(String encoding)
encoding
- the encoding name using in HTTP header Content-EncodingString getContentEncoding()
Copyright © 2021. All rights reserved.