你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
BlobHttpHeaders Class
- java.
lang. Object - com.
azure. storage. blob. models. BlobHttpHeaders
- com.
public final class BlobHttpHeaders
Parameter group.
Constructor Summary
Constructor | Description |
---|---|
BlobHttpHeaders() |
Creates an instance of Blob |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getCacheControl()
Get the cache |
String |
getContentDisposition()
Get the content |
String |
getContentEncoding()
Get the content |
String |
getContentLanguage()
Get the content |
byte[] |
getContentMd5()
Get the content |
String |
getContentType()
Get the content |
Blob |
setCacheControl(String cacheControl)
Set the cache |
Blob |
setContentDisposition(String contentDisposition)
Set the content |
Blob |
setContentEncoding(String contentEncoding)
Set the content |
Blob |
setContentLanguage(String contentLanguage)
Set the content |
Blob |
setContentMd5(byte[] contentMd5)
Set the content |
Blob |
setContentType(String contentType)
Set the content |
Methods inherited from java.lang.Object
Constructor Details
BlobHttpHeaders
public BlobHttpHeaders()
Creates an instance of BlobHttpHeaders class.
Method Details
getCacheControl
public String getCacheControl()
Get the cacheControl property: Optional. Sets the blob's cache control. If specified, this property is stored with the blob and returned with a read request.
Returns:
getContentDisposition
public String getContentDisposition()
Get the contentDisposition property: Optional. Sets the blob's Content-Disposition header.
Returns:
getContentEncoding
public String getContentEncoding()
Get the contentEncoding property: Optional. Sets the blob's content encoding. If specified, this property is stored with the blob and returned with a read request.
Returns:
getContentLanguage
public String getContentLanguage()
Get the contentLanguage property: Optional. Set the blob's content language. If specified, this property is stored with the blob and returned with a read request.
Returns:
getContentMd5
public byte[] getContentMd5()
Get the contentMd5 property: Optional. An MD5 hash of the blob content. Note that this hash is not validated, as the hashes for the individual blocks were validated when each was uploaded. The value does not need to be base64 encoded as the SDK will perform the encoding.
Returns:
getContentType
public String getContentType()
Get the contentType property: Optional. Sets the blob's content type. If specified, this property is stored with the blob and returned with a read request.
Returns:
setCacheControl
public BlobHttpHeaders setCacheControl(String cacheControl)
Set the cacheControl property: Optional. Sets the blob's cache control. If specified, this property is stored with the blob and returned with a read request.
Parameters:
Returns:
setContentDisposition
public BlobHttpHeaders setContentDisposition(String contentDisposition)
Set the contentDisposition property: Optional. Sets the blob's Content-Disposition header.
Parameters:
Returns:
setContentEncoding
public BlobHttpHeaders setContentEncoding(String contentEncoding)
Set the contentEncoding property: Optional. Sets the blob's content encoding. If specified, this property is stored with the blob and returned with a read request.
Parameters:
Returns:
setContentLanguage
public BlobHttpHeaders setContentLanguage(String contentLanguage)
Set the contentLanguage property: Optional. Set the blob's content language. If specified, this property is stored with the blob and returned with a read request.
Parameters:
Returns:
setContentMd5
public BlobHttpHeaders setContentMd5(byte[] contentMd5)
Set the contentMd5 property: Optional. An MD5 hash of the blob content. Note that this hash is not validated, as the hashes for the individual blocks were validated when each was uploaded. The value does not need to be base64 encoded as the SDK will perform the encoding.
Parameters:
Returns:
setContentType
public BlobHttpHeaders setContentType(String contentType)
Set the contentType property: Optional. Sets the blob's content type. If specified, this property is stored with the blob and returned with a read request.
Parameters:
Returns: