Package com.azure.storage.blob.models
Class BlobHttpHeaders
java.lang.Object
com.azure.storage.blob.models.BlobHttpHeaders
Parameter group.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the cacheControl property: Optional.Get the contentDisposition property: Optional.Get the contentEncoding property: Optional.Get the contentLanguage property: Optional.byte[]
Get the contentMd5 property: Optional.Get the contentType property: Optional.setCacheControl
(String cacheControl) Set the cacheControl property: Optional.setContentDisposition
(String contentDisposition) Set the contentDisposition property: Optional.setContentEncoding
(String contentEncoding) Set the contentEncoding property: Optional.setContentLanguage
(String contentLanguage) Set the contentLanguage property: Optional.setContentMd5
(byte[] contentMd5) Set the contentMd5 property: Optional.setContentType
(String contentType) Set the contentType property: Optional.
-
Constructor Details
-
BlobHttpHeaders
public BlobHttpHeaders()Creates an instance of BlobHttpHeaders class.
-
-
Method Details
-
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:
- the cacheControl value.
-
setCacheControl
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:
cacheControl
- the cacheControl value to set.- Returns:
- the BlobHttpHeaders object itself.
-
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:
- the contentType value.
-
setContentType
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:
contentType
- the contentType value to set.- Returns:
- the BlobHttpHeaders object itself.
-
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:
- the contentMd5 value.
-
setContentMd5
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:
contentMd5
- the contentMd5 value to set.- Returns:
- the BlobHttpHeaders object itself.
-
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:
- the contentEncoding value.
-
setContentEncoding
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:
contentEncoding
- the contentEncoding value to set.- Returns:
- the BlobHttpHeaders object itself.
-
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:
- the contentLanguage value.
-
setContentLanguage
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:
contentLanguage
- the contentLanguage value to set.- Returns:
- the BlobHttpHeaders object itself.
-
getContentDisposition
Get the contentDisposition property: Optional. Sets the blob's Content-Disposition header.- Returns:
- the contentDisposition value.
-
setContentDisposition
Set the contentDisposition property: Optional. Sets the blob's Content-Disposition header.- Parameters:
contentDisposition
- the contentDisposition value to set.- Returns:
- the BlobHttpHeaders object itself.
-