类 ObjectMetadata
java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.services.internal.service.InternalHeaderResponse
cn.warpin.thirdPart.huawei.obs.obs.services.model.HeaderResponse
cn.warpin.thirdPart.huawei.obs.obs.services.model.ObjectMetadata
- 直接已知子类:
ObsFSAttribute
Object properties
-
字段概要
字段修饰符和类型字段说明private booleanprivate Stringprivate Stringprivate Stringprivate Stringprivate Longprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Dateprivate longprivate StorageClassEnumprivate String从类继承的字段 cn.warpin.thirdPart.huawei.obs.obs.services.internal.service.InternalHeaderResponse
originalHeaders, responseHeaders, statusCode -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddUserMetadata(String key, String value) Add customized metadata for an object.Obtain object properties.Obtain the content encoding of the object.Obtain the content length of an object.Obtain Base64-encoded MD5 value of an object.Obtain the MIME type of an object.getCrc64()getEtag()Obtain the ETag of the object.Obtain the last modification time of the object.已过时。longObtain the start position for next appending.Obtain the object storage class.已过时。getUserMetadata(String key) Obtain the customized metadata of an object.Set the redirection link which can redirect the request to another object in the bucket or to an external URL.booleanIdentify whether an object is appendable.private booleanisEqualsIgnoreCase(String key1, String key2) voidsetAppendable(boolean appendable) voidsetCacheControl(String cacheControl) voidsetContentDisposition(String contentDisposition) 设置对象的Content-DispositionvoidsetContentEncoding(String contentEncoding) Set the content encoding of the object.voidsetContentLanguage(String contentLanguage) voidsetContentLength(Long contentLength) Set the content length of an object.voidsetContentMd5(String contentMd5) Set the Base64-encoded MD5 value for an object.voidsetContentType(String contentType) Set the MIME type for an object.voidvoidvoidsetExpires(String expires) voidsetLastModified(Date lastModified) voidsetMetadata(Map<String, Object> metadata) Set object properties.voidsetNextPosition(long nextPosition) voidsetObjectStorageClass(StorageClassEnum storageClass) Set the object storage class.voidsetStorageClass(String storageClass) 已过时。voidsetUserMetadata(Map<String, Object> userMetadata) Set user custom metadatavoidsetWebSiteRedirectLocation(String webSiteRedirectLocation) Obtain the redirection link which can redirect the request to another object in the bucket or to an external URL.toString()从类继承的方法 cn.warpin.thirdPart.huawei.obs.obs.services.model.HeaderResponse
getOriginalHeaders, getRequestId, getResponseHeaders, getStatusCode从类继承的方法 cn.warpin.thirdPart.huawei.obs.obs.services.internal.service.InternalHeaderResponse
setOriginalHeaders, setResponseHeaders, setStatusCode
-
字段详细资料
-
lastModified
-
contentLength
-
contentType
-
contentEncoding
-
contentDisposition
-
cacheControl
-
contentLanguage
-
expires
-
etag
-
contentMd5
-
crc64
-
storageClass
-
webSiteRedirectLocation
-
nextPosition
private long nextPosition -
appendable
private boolean appendable -
userMetadata
-
-
构造器详细资料
-
ObjectMetadata
public ObjectMetadata()
-
-
方法详细资料
-
isAppendable
public boolean isAppendable()Identify whether an object is appendable.- 返回:
- Identifier specifying whether the object is appendable
-
setAppendable
public void setAppendable(boolean appendable) -
getNextPosition
public long getNextPosition()Obtain the start position for next appending. This setting is valid only when "isAppendable" is set to "true" and this parameter value is larger than "0".- 返回:
- Position from which the next appending starts
-
setNextPosition
public void setNextPosition(long nextPosition) -
getAllMetadata
Obtain object properties.- 返回:
- Object properties
-
getMetadata
已过时。 -
addUserMetadata
Add customized metadata for an object.- 参数:
key- Keyword of the customized metadatavalue- Value of the customized metadata
-
getUserMetadata
Obtain the customized metadata of an object.- 参数:
key- Keyword of the customized metadata- 返回:
- Value of the customized metadata
-
getEtag
Obtain the ETag of the object.- 返回:
- ETag of the object
-
setEtag
-
setMetadata
Set object properties.- 参数:
metadata- Object properties
-
getLastModified
Obtain the last modification time of the object.- 返回:
- Last modification time of the object
-
setLastModified
-
getContentEncoding
Obtain the content encoding of the object.- 返回:
- Content encoding
-
setContentEncoding
Set the content encoding of the object.- 参数:
contentEncoding- Content encoding
-
getContentDisposition
- 返回:
- 从以下版本开始:
- 3.20.7
-
setContentDisposition
设置对象的Content-Disposition- 参数:
contentDisposition-- 从以下版本开始:
- 3.20.7
-
getCacheControl
- 返回:
- 从以下版本开始:
- 3.20.7
-
setCacheControl
- 参数:
cacheControl-- 从以下版本开始:
- 3.20.7
-
getContentLanguage
- 返回:
- 从以下版本开始:
- 3.20.7
-
setContentLanguage
- 参数:
contentLanguage-- 从以下版本开始:
- 3.20.7
-
getExpires
- 返回:
- 从以下版本开始:
- 3.20.7
-
setExpires
- 参数:
expires-- 从以下版本开始:
- 3.20.7
-
getContentLength
Obtain the content length of an object.- 返回:
- Content length of the object
-
setContentLength
Set the content length of an object.- 参数:
contentLength- Content length of the object
-
getContentType
Obtain the MIME type of an object.- 返回:
- MIME type of the object
-
setContentType
Set the MIME type for an object.- 参数:
contentType- MIME type of the object
-
getStorageClass
已过时。Obtain the object storage class.- 返回:
- Object storage class
-
setStorageClass
已过时。Set the object storage class.- 参数:
storageClass- Object storage class
-
getObjectStorageClass
Obtain the object storage class.- 返回:
- Object storage class
-
setObjectStorageClass
Set the object storage class.- 参数:
storageClass- Object storage class
-
getValue
-
isEqualsIgnoreCase
-
getContentMd5
Obtain Base64-encoded MD5 value of an object.- 返回:
- Base64-encoded MD5 value of the object
-
setContentMd5
Set the Base64-encoded MD5 value for an object.- 参数:
contentMd5- Base64-encoded MD5 value of the object
-
getCrc64
-
setCrc64
-
getWebSiteRedirectLocation
Set the redirection link which can redirect the request to another object in the bucket or to an external URL.- 返回:
- Redirection link
-
setWebSiteRedirectLocation
Obtain the redirection link which can redirect the request to another object in the bucket or to an external URL.- 参数:
webSiteRedirectLocation- Redirection link
-
setUserMetadata
Set user custom metadata- 参数:
userMetadata- user custom metadata
-
toString
- 覆盖:
toString在类中HeaderResponse
-