类 ObjectMetadata
java.lang.Object
com.obs.services.internal.service.InternalHeaderResponse
com.obs.services.model.HeaderResponse
com.obs.services.model.ObjectMetadata
-
字段概要
从类继承的字段 com.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.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()从类继承的方法 com.obs.services.model.HeaderResponse
getOriginalHeaders, getRequestId, getResponseHeaders, getStatusCode从类继承的方法 com.obs.services.internal.service.InternalHeaderResponse
setOriginalHeaders, setResponseHeaders, setStatusCode
-
构造器详细资料
-
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
-
getMetadata
已过时。 -
addUserMetadata
-
getUserMetadata
-
getEtag
-
setEtag
-
setMetadata
-
getLastModified
Obtain the last modification time of the object.- 返回:
- Last modification time of the object
-
setLastModified
-
getContentEncoding
-
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
-
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
-
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
-
toString
- 覆盖:
toString在类中HeaderResponse
-