Partager via


ShareFileHttpHeaders Class

  • java.lang.Object
    • com.azure.storage.file.share.models.ShareFileHttpHeaders

public final class ShareFileHttpHeaders

Parameter group.

Constructor Summary

Constructor Description
ShareFileHttpHeaders()

Creates an instance of ShareFileHttpHeaders class.

Method Summary

Modifier and Type Method and Description
String getCacheControl()

Get the cacheControl property: Sets the file's cache control.

String getContentDisposition()

Get the contentDisposition property: Sets the file's Content-Disposition header.

String getContentEncoding()

Get the contentEncoding property: Specifies which content encodings have been applied to the file.

String getContentLanguage()

Get the contentLanguage property: Specifies the natural languages used by this resource.

byte[] getContentMd5()

Get the contentMd5 property: Sets the file's MD5 hash.

String getContentType()

Get the contentType property: Sets the MIME content type of the file.

ShareFileHttpHeaders setCacheControl(String cacheControl)

Set the cacheControl property: Sets the file's cache control.

ShareFileHttpHeaders setContentDisposition(String contentDisposition)

Set the contentDisposition property: Sets the file's Content-Disposition header.

ShareFileHttpHeaders setContentEncoding(String contentEncoding)

Set the contentEncoding property: Specifies which content encodings have been applied to the file.

ShareFileHttpHeaders setContentLanguage(String contentLanguage)

Set the contentLanguage property: Specifies the natural languages used by this resource.

ShareFileHttpHeaders setContentMd5(byte[] contentMd5)

Set the contentMd5 property: Sets the file's MD5 hash.

ShareFileHttpHeaders setContentType(String contentType)

Set the contentType property: Sets the MIME content type of the file.

Methods inherited from java.lang.Object

Constructor Details

ShareFileHttpHeaders

public ShareFileHttpHeaders()

Creates an instance of ShareFileHttpHeaders class.

Method Details

getCacheControl

public String 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.

getContentDisposition

public String getContentDisposition()

Get the contentDisposition property: Sets the file's Content-Disposition header.

Returns:

the contentDisposition value.

getContentEncoding

public String getContentEncoding()

Get the contentEncoding property: Specifies which content encodings have been applied to the file.

Returns:

the contentEncoding value.

getContentLanguage

public String getContentLanguage()

Get the contentLanguage property: Specifies the natural languages used by this resource.

Returns:

the contentLanguage value.

getContentMd5

public byte[] getContentMd5()

Get the contentMd5 property: Sets the file's MD5 hash.

Returns:

the contentMd5 value.

getContentType

public String getContentType()

Get the contentType property: Sets the MIME content type of the file. The default type is 'application/octet-stream'.

Returns:

the contentType value.

setCacheControl

public ShareFileHttpHeaders setCacheControl(String cacheControl)

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.

setContentDisposition

public ShareFileHttpHeaders setContentDisposition(String contentDisposition)

Set the contentDisposition property: Sets the file's Content-Disposition header.

Parameters:

contentDisposition - the contentDisposition value to set.

Returns:

the ShareFileHttpHeaders object itself.

setContentEncoding

public ShareFileHttpHeaders setContentEncoding(String contentEncoding)

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.

setContentLanguage

public ShareFileHttpHeaders setContentLanguage(String contentLanguage)

Set the contentLanguage property: Specifies the natural languages used by this resource.

Parameters:

contentLanguage - the contentLanguage value to set.

Returns:

the ShareFileHttpHeaders object itself.

setContentMd5

public ShareFileHttpHeaders setContentMd5(byte[] contentMd5)

Set the contentMd5 property: Sets the file's MD5 hash.

Parameters:

contentMd5 - the contentMd5 value to set.

Returns:

the ShareFileHttpHeaders object itself.

setContentType

public ShareFileHttpHeaders setContentType(String contentType)

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.

Applies to