ShareFileDownloadHeaders Class
- java.
lang. Object - com.
azure. storage. file. share. models. ShareFileDownloadHeaders
- com.
public final class ShareFileDownloadHeaders
Defines headers for Download operation.
Constructor Summary
Constructor | Description |
---|---|
ShareFileDownloadHeaders() |
Constructs a new instance of ShareFileDownloadHeaders. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getAcceptRanges()
Get the accept |
String |
getCacheControl()
Get the cache |
String |
getContentDisposition()
Get the content |
String |
getContentEncoding()
Get the content |
String |
getContentLanguage()
Get the content |
Long |
getContentLength()
Get the content |
byte[] |
getContentMd5()
Get the content |
String |
getContentRange()
Get the content |
String |
getContentType()
Get the content |
Offset |
getCopyCompletionTime()
Get the copy |
String |
getCopyId()
Get the copy |
String |
getCopyProgress()
Get the copy |
String |
getCopySource()
Get the copy |
Copy |
getCopyStatus()
Get the copy |
String |
getCopyStatusDescription()
Get the copy |
Offset |
getDateProperty()
Get the date |
String |
getETag()
Get the e |
String |
getErrorCode()
Get the error |
String |
getFileAttributes()
Get the file |
Offset |
getFileChangeTime()
Get the file |
byte[] |
getFileContentMd5()
Get the file |
Offset |
getFileCreationTime()
Get the file |
String |
getFileId()
Get the file |
Offset |
getFileLastWriteTime()
Get the file |
String |
getFileParentId()
Get the file |
String |
getFilePermissionKey()
Get the file |
Offset |
getLastModified()
Get the last |
Lease |
getLeaseDuration()
Get the lease |
Lease |
getLeaseState()
Get the lease |
Lease |
getLeaseStatus()
Get the lease |
Map<String,String> |
getMetadata()
Get the metadata property: The metadata property. |
String |
getRequestId()
Get the request |
String |
getVersion()
Get the version property: Indicates the version of the File service used to execute the request. |
Boolean |
isServerEncrypted()
Get the is |
Share |
setAcceptRanges(String acceptRanges)
Set the accept |
Share |
setCacheControl(String cacheControl)
Set the cache |
Share |
setContentDisposition(String contentDisposition)
Set the content |
Share |
setContentEncoding(String contentEncoding)
Set the content |
Share |
setContentLanguage(String contentLanguage)
Set the content |
Share |
setContentLength(Long contentLength)
Set the content |
Share |
setContentMd5(byte[] contentMd5)
Set the content |
Share |
setContentRange(String contentRange)
Set the content |
Share |
setContentType(String contentType)
Set the content |
Share |
setCopyCompletionTime(OffsetDateTime copyCompletionTime)
Set the copy |
Share |
setCopyId(String copyId)
Set the copy |
Share |
setCopyProgress(String copyProgress)
Set the copy |
Share |
setCopySource(String copySource)
Set the copy |
Share |
setCopyStatus(CopyStatusType copyStatus)
Set the copy |
Share |
setCopyStatusDescription(String copyStatusDescription)
Set the copy |
Share |
setDateProperty(OffsetDateTime dateProperty)
Set the date |
Share |
setETag(String eTag)
Set the e |
Share |
setErrorCode(String errorCode)
Set the error |
Share |
setFileAttributes(String fileAttributes)
Set the file |
Share |
setFileChangeTime(OffsetDateTime fileChangeTime)
Set the file |
Share |
setFileContentMd5(byte[] fileContentMd5)
Set the file |
Share |
setFileCreationTime(OffsetDateTime fileCreationTime)
Set the file |
Share |
setFileId(String fileId)
Set the file |
Share |
setFileLastWriteTime(OffsetDateTime fileLastWriteTime)
Set the file |
Share |
setFileParentId(String fileParentId)
Set the file |
Share |
setFilePermissionKey(String filePermissionKey)
Set the file |
Share |
setIsServerEncrypted(Boolean isServerEncrypted)
Set the is |
Share |
setLastModified(OffsetDateTime lastModified)
Set the last |
Share |
setLeaseDuration(LeaseDurationType leaseDuration)
Set the lease |
Share |
setLeaseState(LeaseStateType leaseState)
Set the lease |
Share |
setLeaseStatus(LeaseStatusType leaseStatus)
Set the lease |
Share |
setMetadata(Map<String,String> metadata)
Set the metadata property: The metadata property. |
Share |
setRequestId(String requestId)
Set the request |
Share |
setVersion(String version)
Set the version property: Indicates the version of the File service used to execute the request. |
Methods inherited from java.lang.Object
Constructor Details
ShareFileDownloadHeaders
public ShareFileDownloadHeaders()
Constructs a new instance of ShareFileDownloadHeaders.
Method Details
getAcceptRanges
public String getAcceptRanges()
Get the acceptRanges property: Indicates that the service supports requests for partial file content.
Returns:
getCacheControl
public String getCacheControl()
Get the cacheControl property: Returned if it was previously specified for the file.
Returns:
getContentDisposition
public String getContentDisposition()
Get the contentDisposition property: Returns the value that was specified for the 'x-ms-content-disposition' header and specifies how to process the response.
Returns:
getContentEncoding
public String getContentEncoding()
Get the contentEncoding property: Returns the value that was specified for the Content-Encoding request header.
Returns:
getContentLanguage
public String getContentLanguage()
Get the contentLanguage property: Returns the value that was specified for the Content-Language request header.
Returns:
getContentLength
public Long getContentLength()
Get the contentLength property: The number of bytes present in the response body.
Returns:
getContentMd5
public byte[] getContentMd5()
Get the contentMd5 property: If the file has an MD5 hash and the request is to read the full file, this response header is returned so that the client can check for message content integrity. If the request is to read a specified range and the 'x-ms-range-get-content-md5' is set to true, then the request returns an MD5 hash for the range, as long as the range size is less than or equal to 4 MB. If neither of these sets of conditions is true, then no value is returned for the 'Content-MD5' header.
Returns:
getContentRange
public String getContentRange()
Get the contentRange property: Indicates the range of bytes returned if the client requested a subset of the file by setting the Range request header.
Returns:
getContentType
public String getContentType()
Get the contentType property: The content type specified for the file. The default content type is 'application/octet-stream'.
Returns:
getCopyCompletionTime
public OffsetDateTime getCopyCompletionTime()
Get the copyCompletionTime property: Conclusion time of the last attempted Copy File operation where this file was the destination file. This value can specify the time of a completed, aborted, or failed copy attempt.
Returns:
getCopyId
public String getCopyId()
Get the copyId property: String identifier for the last attempted Copy File operation where this file was the destination file.
Returns:
getCopyProgress
public String getCopyProgress()
Get the copyProgress property: Contains the number of bytes copied and the total bytes in the source in the last attempted Copy File operation where this file was the destination file. Can show between 0 and Content-Length bytes copied.
Returns:
getCopySource
public String getCopySource()
Get the copySource property: URL up to 2KB in length that specifies the source file used in the last attempted Copy File operation where this file was the destination file.
Returns:
getCopyStatus
public CopyStatusType getCopyStatus()
Get the copyStatus property: State of the copy operation identified by 'x-ms-copy-id'. Possible values include: 'pending', 'success', 'aborted', 'failed'.
Returns:
getCopyStatusDescription
public String getCopyStatusDescription()
Get the copyStatusDescription property: Only appears when x-ms-copy-status is failed or pending. Describes cause of fatal or non-fatal copy operation failure.
Returns:
getDateProperty
public OffsetDateTime getDateProperty()
Get the dateProperty property: A UTC date/time value generated by the service that indicates the time at which the response was initiated.
Returns:
getETag
public String getETag()
Get the eTag property: The ETag contains a value that you can use to perform operations conditionally, in quotes.
Returns:
getErrorCode
public String getErrorCode()
Get the errorCode property: The errorCode property.
Returns:
getFileAttributes
public String getFileAttributes()
Get the fileAttributes property: Attributes set for the file.
Returns:
getFileChangeTime
public OffsetDateTime getFileChangeTime()
Get the fileChangeTime property: Change time for the file.
Returns:
getFileContentMd5
public byte[] getFileContentMd5()
Get the fileContentMd5 property: If the file has a MD5 hash, and if request contains range header (Range or x-ms-range), this response header is returned with the value of the whole file's MD5 value. This value may or may not be equal to the value returned in Content-MD5 header, with the latter calculated from the requested range.
Returns:
getFileCreationTime
public OffsetDateTime getFileCreationTime()
Get the fileCreationTime property: Creation time for the file.
Returns:
getFileId
public String getFileId()
Get the fileId property: The fileId of the file.
Returns:
getFileLastWriteTime
public OffsetDateTime getFileLastWriteTime()
Get the fileLastWriteTime property: Last write time for the file.
Returns:
getFileParentId
public String getFileParentId()
Get the fileParentId property: The parent fileId of the file.
Returns:
getFilePermissionKey
public String getFilePermissionKey()
Get the filePermissionKey property: Key of the permission set for the file.
Returns:
getLastModified
public OffsetDateTime getLastModified()
Get the lastModified property: Returns the date and time the file was last modified. Any operation that modifies the file or its properties updates the last modified time.
Returns:
getLeaseDuration
public LeaseDurationType getLeaseDuration()
Get the leaseDuration property: When a file is leased, specifies whether the lease is of infinite or fixed duration. Possible values include: 'infinite', 'fixed'.
Returns:
getLeaseState
public LeaseStateType getLeaseState()
Get the leaseState property: Lease state of the file. Possible values include: 'available', 'leased', 'expired', 'breaking', 'broken'.
Returns:
getLeaseStatus
public LeaseStatusType getLeaseStatus()
Get the leaseStatus property: The current lease status of the file. Possible values include: 'locked', 'unlocked'.
Returns:
getMetadata
public Map
Get the metadata property: The metadata property.
Returns:
getRequestId
public String getRequestId()
Get the requestId property: This header uniquely identifies the request that was made and can be used for troubleshooting the request.
Returns:
getVersion
public String getVersion()
Get the version property: Indicates the version of the File service used to execute the request.
Returns:
isServerEncrypted
public Boolean isServerEncrypted()
Get the isServerEncrypted property: The value of this header is set to true if the file data and application metadata are completely encrypted using the specified algorithm. Otherwise, the value is set to false (when the file is unencrypted, or if only parts of the file/application metadata are encrypted).
Returns:
setAcceptRanges
public ShareFileDownloadHeaders setAcceptRanges(String acceptRanges)
Set the acceptRanges property: Indicates that the service supports requests for partial file content.
Parameters:
Returns:
setCacheControl
public ShareFileDownloadHeaders setCacheControl(String cacheControl)
Set the cacheControl property: Returned if it was previously specified for the file.
Parameters:
Returns:
setContentDisposition
public ShareFileDownloadHeaders setContentDisposition(String contentDisposition)
Set the contentDisposition property: Returns the value that was specified for the 'x-ms-content-disposition' header and specifies how to process the response.
Parameters:
Returns:
setContentEncoding
public ShareFileDownloadHeaders setContentEncoding(String contentEncoding)
Set the contentEncoding property: Returns the value that was specified for the Content-Encoding request header.
Parameters:
Returns:
setContentLanguage
public ShareFileDownloadHeaders setContentLanguage(String contentLanguage)
Set the contentLanguage property: Returns the value that was specified for the Content-Language request header.
Parameters:
Returns:
setContentLength
public ShareFileDownloadHeaders setContentLength(Long contentLength)
Set the contentLength property: The number of bytes present in the response body.
Parameters:
Returns:
setContentMd5
public ShareFileDownloadHeaders setContentMd5(byte[] contentMd5)
Set the contentMd5 property: If the file has an MD5 hash and the request is to read the full file, this response header is returned so that the client can check for message content integrity. If the request is to read a specified range and the 'x-ms-range-get-content-md5' is set to true, then the request returns an MD5 hash for the range, as long as the range size is less than or equal to 4 MB. If neither of these sets of conditions is true, then no value is returned for the 'Content-MD5' header.
Parameters:
Returns:
setContentRange
public ShareFileDownloadHeaders setContentRange(String contentRange)
Set the contentRange property: Indicates the range of bytes returned if the client requested a subset of the file by setting the Range request header.
Parameters:
Returns:
setContentType
public ShareFileDownloadHeaders setContentType(String contentType)
Set the contentType property: The content type specified for the file. The default content type is 'application/octet-stream'.
Parameters:
Returns:
setCopyCompletionTime
public ShareFileDownloadHeaders setCopyCompletionTime(OffsetDateTime copyCompletionTime)
Set the copyCompletionTime property: Conclusion time of the last attempted Copy File operation where this file was the destination file. This value can specify the time of a completed, aborted, or failed copy attempt.
Parameters:
Returns:
setCopyId
public ShareFileDownloadHeaders setCopyId(String copyId)
Set the copyId property: String identifier for the last attempted Copy File operation where this file was the destination file.
Parameters:
Returns:
setCopyProgress
public ShareFileDownloadHeaders setCopyProgress(String copyProgress)
Set the copyProgress property: Contains the number of bytes copied and the total bytes in the source in the last attempted Copy File operation where this file was the destination file. Can show between 0 and Content-Length bytes copied.
Parameters:
Returns:
setCopySource
public ShareFileDownloadHeaders setCopySource(String copySource)
Set the copySource property: URL up to 2KB in length that specifies the source file used in the last attempted Copy File operation where this file was the destination file.
Parameters:
Returns:
setCopyStatus
public ShareFileDownloadHeaders setCopyStatus(CopyStatusType copyStatus)
Set the copyStatus property: State of the copy operation identified by 'x-ms-copy-id'. Possible values include: 'pending', 'success', 'aborted', 'failed'.
Parameters:
Returns:
setCopyStatusDescription
public ShareFileDownloadHeaders setCopyStatusDescription(String copyStatusDescription)
Set the copyStatusDescription property: Only appears when x-ms-copy-status is failed or pending. Describes cause of fatal or non-fatal copy operation failure.
Parameters:
Returns:
setDateProperty
public ShareFileDownloadHeaders setDateProperty(OffsetDateTime dateProperty)
Set the dateProperty property: A UTC date/time value generated by the service that indicates the time at which the response was initiated.
Parameters:
Returns:
setETag
public ShareFileDownloadHeaders setETag(String eTag)
Set the eTag property: The ETag contains a value that you can use to perform operations conditionally, in quotes.
Parameters:
Returns:
setErrorCode
public ShareFileDownloadHeaders setErrorCode(String errorCode)
Set the errorCode property: The errorCode property.
Parameters:
Returns:
setFileAttributes
public ShareFileDownloadHeaders setFileAttributes(String fileAttributes)
Set the fileAttributes property: Attributes set for the file.
Parameters:
Returns:
setFileChangeTime
public ShareFileDownloadHeaders setFileChangeTime(OffsetDateTime fileChangeTime)
Set the fileChangeTime property: Change time for the file.
Parameters:
Returns:
setFileContentMd5
public ShareFileDownloadHeaders setFileContentMd5(byte[] fileContentMd5)
Set the fileContentMd5 property: If the file has a MD5 hash, and if request contains range header (Range or x-ms-range), this response header is returned with the value of the whole file's MD5 value. This value may or may not be equal to the value returned in Content-MD5 header, with the latter calculated from the requested range.
Parameters:
Returns:
setFileCreationTime
public ShareFileDownloadHeaders setFileCreationTime(OffsetDateTime fileCreationTime)
Set the fileCreationTime property: Creation time for the file.
Parameters:
Returns:
setFileId
public ShareFileDownloadHeaders setFileId(String fileId)
Set the fileId property: The fileId of the file.
Parameters:
Returns:
setFileLastWriteTime
public ShareFileDownloadHeaders setFileLastWriteTime(OffsetDateTime fileLastWriteTime)
Set the fileLastWriteTime property: Last write time for the file.
Parameters:
Returns:
setFileParentId
public ShareFileDownloadHeaders setFileParentId(String fileParentId)
Set the fileParentId property: The parent fileId of the file.
Parameters:
Returns:
setFilePermissionKey
public ShareFileDownloadHeaders setFilePermissionKey(String filePermissionKey)
Set the filePermissionKey property: Key of the permission set for the file.
Parameters:
Returns:
setIsServerEncrypted
public ShareFileDownloadHeaders setIsServerEncrypted(Boolean isServerEncrypted)
Set the isServerEncrypted property: The value of this header is set to true if the file data and application metadata are completely encrypted using the specified algorithm. Otherwise, the value is set to false (when the file is unencrypted, or if only parts of the file/application metadata are encrypted).
Parameters:
Returns:
setLastModified
public ShareFileDownloadHeaders setLastModified(OffsetDateTime lastModified)
Set the lastModified property: Returns the date and time the file was last modified. Any operation that modifies the file or its properties updates the last modified time.
Parameters:
Returns:
setLeaseDuration
public ShareFileDownloadHeaders setLeaseDuration(LeaseDurationType leaseDuration)
Set the leaseDuration property: When a file is leased, specifies whether the lease is of infinite or fixed duration. Possible values include: 'infinite', 'fixed'.
Parameters:
Returns:
setLeaseState
public ShareFileDownloadHeaders setLeaseState(LeaseStateType leaseState)
Set the leaseState property: Lease state of the file. Possible values include: 'available', 'leased', 'expired', 'breaking', 'broken'.
Parameters:
Returns:
setLeaseStatus
public ShareFileDownloadHeaders setLeaseStatus(LeaseStatusType leaseStatus)
Set the leaseStatus property: The current lease status of the file. Possible values include: 'locked', 'unlocked'.
Parameters:
Returns:
setMetadata
public ShareFileDownloadHeaders setMetadata(Map
Set the metadata property: The metadata property.
Parameters:
Returns:
setRequestId
public ShareFileDownloadHeaders setRequestId(String requestId)
Set the requestId property: This header uniquely identifies the request that was made and can be used for troubleshooting the request.
Parameters:
Returns:
setVersion
public ShareFileDownloadHeaders setVersion(String version)
Set the version property: Indicates the version of the File service used to execute the request.
Parameters:
Returns:
Applies to
Azure SDK for Java