Class ShareFileHttpHeaders
java.lang.Object
com.azure.storage.file.share.models.ShareFileHttpHeaders
Parameter group.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the cacheControl property: Sets the file's cache control.Get the contentDisposition property: Sets the file's Content-Disposition header.Get the contentEncoding property: Specifies which content encodings have been applied to the file.Get the contentLanguage property: Specifies the natural languages used by this resource.byte[]
Get the contentMd5 property: Sets the file's MD5 hash.Get the contentType property: Sets the MIME content type of the file.setCacheControl
(String cacheControl) Set the cacheControl property: Sets the file's cache control.setContentDisposition
(String contentDisposition) Set the contentDisposition property: Sets the file's Content-Disposition header.setContentEncoding
(String contentEncoding) Set the contentEncoding property: Specifies which content encodings have been applied to the file.setContentLanguage
(String contentLanguage) Set the contentLanguage property: Specifies the natural languages used by this resource.setContentMd5
(byte[] contentMd5) Set the contentMd5 property: Sets the file's MD5 hash.setContentType
(String contentType) Set the contentType property: Sets the MIME content type of the file.
-
Constructor Details
-
ShareFileHttpHeaders
public ShareFileHttpHeaders()
-
-
Method Details
-
getContentType
Get the contentType property: Sets the MIME content type of the file. The default type is 'application/octet-stream'.- Returns:
- the contentType value.
-
setContentType
Set the contentType property: Sets the MIME content type of the file. The default type is 'application/octet-stream'.- Parameters:
contentType
- the contentType value to set.- Returns:
- the ShareFileHttpHeaders object itself.
-
getContentEncoding
Get the contentEncoding property: Specifies which content encodings have been applied to the file.- Returns:
- the contentEncoding value.
-
setContentEncoding
Set the contentEncoding property: Specifies which content encodings have been applied to the file.- Parameters:
contentEncoding
- the contentEncoding value to set.- Returns:
- the ShareFileHttpHeaders object itself.
-
getContentLanguage
Get the contentLanguage property: Specifies the natural languages used by this resource.- Returns:
- the contentLanguage value.
-
setContentLanguage
Set the contentLanguage property: Specifies the natural languages used by this resource.- Parameters:
contentLanguage
- the contentLanguage value to set.- Returns:
- the ShareFileHttpHeaders object itself.
-
getCacheControl
Get the cacheControl property: Sets the file's cache control. The File service stores this value but does not use or modify it.- Returns:
- the cacheControl value.
-
setCacheControl
Set the cacheControl property: Sets the file's cache control. The File service stores this value but does not use or modify it.- Parameters:
cacheControl
- the cacheControl value to set.- Returns:
- the ShareFileHttpHeaders object itself.
-
getContentMd5
public byte[] getContentMd5()Get the contentMd5 property: Sets the file's MD5 hash.- Returns:
- the contentMd5 value.
-
setContentMd5
Set the contentMd5 property: Sets the file's MD5 hash.- Parameters:
contentMd5
- the contentMd5 value to set.- Returns:
- the ShareFileHttpHeaders object itself.
-
getContentDisposition
Get the contentDisposition property: Sets the file's Content-Disposition header.- Returns:
- the contentDisposition value.
-
setContentDisposition
Set the contentDisposition property: Sets the file's Content-Disposition header.- Parameters:
contentDisposition
- the contentDisposition value to set.- Returns:
- the ShareFileHttpHeaders object itself.
-