直接已知子类:
ObsFSAttribute

public class ObjectMetadata extends HeaderResponse
Object properties
  • 字段详细资料

    • lastModified

      private Date lastModified
    • contentLength

      private Long contentLength
    • contentType

      private String contentType
    • contentEncoding

      private String contentEncoding
    • contentDisposition

      private String contentDisposition
    • cacheControl

      private String cacheControl
    • contentLanguage

      private String contentLanguage
    • expires

      private String expires
    • etag

      private String etag
    • contentMd5

      private String contentMd5
    • crc64

      private String crc64
    • storageClass

      private StorageClassEnum storageClass
    • webSiteRedirectLocation

      private String webSiteRedirectLocation
    • nextPosition

      private long nextPosition
    • appendable

      private boolean appendable
    • userMetadata

      private Map<String,Object> 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

      public Map<String,Object> getAllMetadata()
      Obtain object properties.
      返回:
      Object properties
    • getMetadata

      @Deprecated public Map<String,Object> getMetadata()
      已过时。
    • addUserMetadata

      public void addUserMetadata(String key, String value)
      Add customized metadata for an object.
      参数:
      key - Keyword of the customized metadata
      value - Value of the customized metadata
    • getUserMetadata

      public Object getUserMetadata(String key)
      Obtain the customized metadata of an object.
      参数:
      key - Keyword of the customized metadata
      返回:
      Value of the customized metadata
    • getEtag

      public String getEtag()
      Obtain the ETag of the object.
      返回:
      ETag of the object
    • setEtag

      public void setEtag(String objEtag)
    • setMetadata

      public void setMetadata(Map<String,Object> metadata)
      Set object properties.
      参数:
      metadata - Object properties
    • getLastModified

      public Date getLastModified()
      Obtain the last modification time of the object.
      返回:
      Last modification time of the object
    • setLastModified

      public void setLastModified(Date lastModified)
    • getContentEncoding

      public String getContentEncoding()
      Obtain the content encoding of the object.
      返回:
      Content encoding
    • setContentEncoding

      public void setContentEncoding(String contentEncoding)
      Set the content encoding of the object.
      参数:
      contentEncoding - Content encoding
    • getContentDisposition

      public String getContentDisposition()
      返回:
      从以下版本开始:
      3.20.7
    • setContentDisposition

      public void setContentDisposition(String contentDisposition)
      设置对象的Content-Disposition
      参数:
      contentDisposition -
      从以下版本开始:
      3.20.7
    • getCacheControl

      public String getCacheControl()
      返回:
      从以下版本开始:
      3.20.7
    • setCacheControl

      public void setCacheControl(String cacheControl)
      参数:
      cacheControl -
      从以下版本开始:
      3.20.7
    • getContentLanguage

      public String getContentLanguage()
      返回:
      从以下版本开始:
      3.20.7
    • setContentLanguage

      public void setContentLanguage(String contentLanguage)
      参数:
      contentLanguage -
      从以下版本开始:
      3.20.7
    • getExpires

      public String getExpires()
      返回:
      从以下版本开始:
      3.20.7
    • setExpires

      public void setExpires(String expires)
      参数:
      expires -
      从以下版本开始:
      3.20.7
    • getContentLength

      public Long getContentLength()
      Obtain the content length of an object.
      返回:
      Content length of the object
    • setContentLength

      public void setContentLength(Long contentLength)
      Set the content length of an object.
      参数:
      contentLength - Content length of the object
    • getContentType

      public String getContentType()
      Obtain the MIME type of an object.
      返回:
      MIME type of the object
    • setContentType

      public void setContentType(String contentType)
      Set the MIME type for an object.
      参数:
      contentType - MIME type of the object
    • getStorageClass

      @Deprecated public String getStorageClass()
      已过时。
      Obtain the object storage class.
      返回:
      Object storage class
    • setStorageClass

      @Deprecated public void setStorageClass(String storageClass)
      已过时。
      Set the object storage class.
      参数:
      storageClass - Object storage class
    • getObjectStorageClass

      public StorageClassEnum getObjectStorageClass()
      Obtain the object storage class.
      返回:
      Object storage class
    • setObjectStorageClass

      public void setObjectStorageClass(StorageClassEnum storageClass)
      Set the object storage class.
      参数:
      storageClass - Object storage class
    • getValue

      public Object getValue(String name)
    • isEqualsIgnoreCase

      private boolean isEqualsIgnoreCase(String key1, String key2)
    • getContentMd5

      public String getContentMd5()
      Obtain Base64-encoded MD5 value of an object.
      返回:
      Base64-encoded MD5 value of the object
    • setContentMd5

      public void setContentMd5(String contentMd5)
      Set the Base64-encoded MD5 value for an object.
      参数:
      contentMd5 - Base64-encoded MD5 value of the object
    • getCrc64

      public String getCrc64()
    • setCrc64

      public void setCrc64(String crc64)
    • getWebSiteRedirectLocation

      public String getWebSiteRedirectLocation()
      Set the redirection link which can redirect the request to another object in the bucket or to an external URL.
      返回:
      Redirection link
    • setWebSiteRedirectLocation

      public void setWebSiteRedirectLocation(String webSiteRedirectLocation)
      Obtain the redirection link which can redirect the request to another object in the bucket or to an external URL.
      参数:
      webSiteRedirectLocation - Redirection link
    • setUserMetadata

      public void setUserMetadata(Map<String,Object> userMetadata)
      Set user custom metadata
      参数:
      userMetadata - user custom metadata
    • toString

      public String toString()
      覆盖:
      toString 在类中 HeaderResponse