-
- All Implemented Interfaces:
public class ResponseHeaderIndex of valid
x-amz-*response headers.This index may not be complete.
-
-
Field Summary
-
Method Summary
Modifier and Type Method Description final StringgetArchiveStatus()x-amz-archive-statusThe archive state of the head object.final StringgetChecksumCRC32()x-amz-checksum-crc32The base64-encoded, 32-bit CRC32 checksum of the object.final StringgetChecksumCRC32C()x-amz-checksum-crc32cThe base64-encoded, 32-bit CRC32C checksum of the object.final StringgetChecksumSHA1()x-amz-checksum-sha1The base64-encoded, 160-bit SHA-1 digest of the object.final StringgetChecksumSHA256()x-amz-checksum-sha256The base64-encoded, 256-bit SHA-256 digest of the object.final StringgetDeleteMarker()x-amz-delete-markerSpecifies whether the object retrieved was (true) or was not (false) a Delete Marker.final StringgetExpiration()x-amz-expirationIf the object expiration is configured (see PUT Bucket lifecycle), the response includes this header.final StringgetMissingMeta()x-amz-missing-metaThis is set to the number of metadata entries not returned inx-amz-metaheaders.final StringgetMultiPartPartsCount()x-amz-mp-parts-countThe count of parts this object has.final StringgetObjectLockLegalHold()x-amz-object-lock-legal-holdSpecifies whether a legal hold is in effect for this object.final StringgetObjectLockMode()x-amz-object-lock-modeThe Object Lock mode, if any, that's in effect for this object.final StringgetObjectLockRetainUntilDate()x-amz-object-lock-retain-until-dateThe date and time when the Object Lock retention period expires.final StringgetReplicationStatus()x-amz-replication-statusAmazon S3 can return this header if your request involves a bucket that is either a source or a destination in a replication rule.final StringgetRequestCharged()x-amz-request-chargedIf present, indicates that the requester was successfully charged for the request.final StringgetRestore()x-amz-restoreIf the object is an archived object (an object whose storage class isGLACIER), the response includes this header if either the archive restoration is in progress (seeRestoreObjector an archive copy is already restored.final StringgetServerSideEncryption()x-amz-server-side-encryptionThe server-side encryption algorithm used when storing this object in Amazon S3 (for example,AES256,aws:kms).final StringgetServerSideEncryptionAWSKMSKeyID()x-amz-server-side-encryption-aws-kms-key-idIf present, specifies the ID of the AWS Key Management Service (AWS KMS) symmetric customer managed key that was used for the object.final StringgetServerSideEncryptionBucketKeyEnabled()x-amz-server-side-encryption-bucket-key-enabledIndicates whether the object uses an S3 Bucket Key for server-side encryption with AWS KMS (SSE-KMS).final StringgetServerSideEncryptionCustomerAlgorithm()x-amz-server-side-encryption-customer-algorithmIf server-side encryption with a customer-provided encryption key was requested, the response will include this header confirming the encryption algorithm used.final StringgetServerSideEncryptionCustomerKeyMD5()x-amz-server-side-encryption-customer-key-MD5If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide round-trip message integrity verification of the customer-provided encryption key.final StringgetStorageClass()x-amz-storage-classProvides storage class information of the object.final StringgetTaggingCount()x-amz-tagging-countThe number of tags, if any, on the object.final StringgetVersionID()x-amz-version-idVersion of the object.final StringgetWebsiteRedirectLocation()x-amz-website-redirect-locationIf the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL.-
-
Method Detail
-
getArchiveStatus
final String getArchiveStatus()
x-amz-archive-statusThe archive state of the head object.
Valid Values:
ARCHIVE_ACCESSDEEP_ARCHIVE_ACCESS
-
getChecksumCRC32
final String getChecksumCRC32()
x-amz-checksum-crc32The base64-encoded, 32-bit CRC32 checksum of the object. This will only be present if it was uploaded with the object. With multipart uploads, this may not be a checksum value of the object. For more information about how checksums are calculated with multipart uploads, see "Checking Object Integrity" in the Amazon S3 User Guide.
-
getChecksumCRC32C
final String getChecksumCRC32C()
x-amz-checksum-crc32cThe base64-encoded, 32-bit CRC32C checksum of the object. This will only be present if it was uploaded with the object. With multipart uploads, this may not be a checksum value of the object. For more information about how checksums are calculated with multipart uploads, see "Checking Object Integrity" in the Amazon S3 User Guide.
-
getChecksumSHA1
final String getChecksumSHA1()
x-amz-checksum-sha1The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. With multipart uploads, this may not be a checksum value of the object. For more information about how checksums are calculated with multipart uploads, see "Checking Object Integrity" in the Amazon S3 User Guide.
-
getChecksumSHA256
final String getChecksumSHA256()
x-amz-checksum-sha256The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. With multipart uploads, this may not be a checksum value of the object. For more information about how checksums are calculated with multipart uploads, see "Checking Object Integrity" in the Amazon S3 User Guide.
-
getDeleteMarker
final String getDeleteMarker()
x-amz-delete-markerSpecifies whether the object retrieved was (
true) or was not (false) a Delete Marker. Iffalse, this response header does not appear in the response.
-
getExpiration
final String getExpiration()
x-amz-expirationIf the object expiration is configured (see PUT Bucket lifecycle), the response includes this header. It includes the expiry-date and rule-id key-value pairs providing object expiration information. The value of the rule-id is URL-encoded.
-
getMissingMeta
final String getMissingMeta()
x-amz-missing-metaThis is set to the number of metadata entries not returned in
x-amz-metaheaders. This can happen if you create metadata using an API like SOAP that supports more flexible metadata than the REST API. For example, using SOAP, you can create metadata whose values are not legal HTTP headers.
-
getMultiPartPartsCount
final String getMultiPartPartsCount()
x-amz-mp-parts-countThe count of parts this object has. This value is only returned if you specify
partNumberin your request and the object was uploaded as a multipart upload.
-
getObjectLockLegalHold
final String getObjectLockLegalHold()
x-amz-object-lock-legal-holdSpecifies whether a legal hold is in effect for this object. This header is only returned if the requester has the
s3:GetObjectLegalHoldpermission. This header is not returned if the specified version of this object has never had a legal hold applied. For more information about S3 Object Lock, see "Object Lock".
-
getObjectLockMode
final String getObjectLockMode()
x-amz-object-lock-modeThe Object Lock mode, if any, that's in effect for this object. This header is only returned if the requester has the
s3:GetObjectRetentionpermission. For more information about S3 Object Lock, see "Object Lock".Valid Values:
GOVERNANCECOMPLIANCE
-
getObjectLockRetainUntilDate
final String getObjectLockRetainUntilDate()
x-amz-object-lock-retain-until-dateThe date and time when the Object Lock retention period expires. This header is only returned if the requester has the
s3:GetObjectRetentionpermission.
-
getReplicationStatus
final String getReplicationStatus()
x-amz-replication-statusAmazon S3 can return this header if your request involves a bucket that is either a source or a destination in a replication rule.
In replication, you have a source bucket on which you configure replication and destination bucket or buckets where Amazon S3 stores object replicas. When you request an object (
GetObject) or object metadata (HeadObject) from these buckets, Amazon S3 will return thex-amz-replication-statusheader in the response as follows:If requesting an object from the source bucket, Amazon S3 will return the
x-amz-replication-statusheader if the object in your request is eligible for replication. For example, suppose that in your replication configuration, you specify object prefix TaxDocs requesting Amazon S3 to replicate objects with key prefix TaxDocs. Any objects you upload with this key name prefix, for exampleTaxDocs/document1.pdf, are eligible for replication. For any object request with this key name prefix, Amazon S3 will return thex-amz-replication-statusheader with valuePENDING,COMPLETEDorFAILEDindicating object replication status.If requesting an object from a destination bucket, Amazon S3 will return the
x-amz-replication-statusheader with valueREPLICAif the object in your request is a replica that Amazon S3 created and there is no replica modification replication in progress.When replicating objects to multiple destination buckets, the
x-amz-replication-statusheader acts differently. The header of the source object will only return a value of COMPLETED when replication is successful to all destinations. The header will remain at valuePENDINGuntil replication has completed for all destinations. If one or more destinations fails replication the header will returnFAILED.
For more information, see "Replication".
Valid Values:
COMPLETEPENDINGFAILEDREPLICA
-
getRequestCharged
final String getRequestCharged()
x-amz-request-chargedIf present, indicates that the requester was successfully charged for the request.
Valid Values:
requester
-
getRestore
final String getRestore()
x-amz-restoreIf the object is an archived object (an object whose storage class is
GLACIER), the response includes this header if either the archive restoration is in progress (seeRestoreObjector an archive copy is already restored.If an archive copy is already restored, the header value indicates when Amazon S3 is scheduled to delete the object copy. For example:
x-amz-restore: ongoing-request="false", expiry-date="Fri, 21 Dec 2012 00:00:00 GMT"If the object restoration is in progress, the header returns the value
ongoing-request="true".For more information about archiving objects, see "Transitioning Objects: General Considerations".
-
getServerSideEncryption
final String getServerSideEncryption()
x-amz-server-side-encryptionThe server-side encryption algorithm used when storing this object in Amazon S3 (for example,
AES256,aws:kms).Valid Values:
AES256aws:kms
-
getServerSideEncryptionAWSKMSKeyID
final String getServerSideEncryptionAWSKMSKeyID()
x-amz-server-side-encryption-aws-kms-key-idIf present, specifies the ID of the AWS Key Management Service (AWS KMS) symmetric customer managed key that was used for the object.
-
getServerSideEncryptionBucketKeyEnabled
final String getServerSideEncryptionBucketKeyEnabled()
x-amz-server-side-encryption-bucket-key-enabledIndicates whether the object uses an S3 Bucket Key for server-side encryption with AWS KMS (
SSE-KMS).
-
getServerSideEncryptionCustomerAlgorithm
final String getServerSideEncryptionCustomerAlgorithm()
x-amz-server-side-encryption-customer-algorithmIf server-side encryption with a customer-provided encryption key was requested, the response will include this header confirming the encryption algorithm used.
-
getServerSideEncryptionCustomerKeyMD5
final String getServerSideEncryptionCustomerKeyMD5()
x-amz-server-side-encryption-customer-key-MD5If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide round-trip message integrity verification of the customer-provided encryption key.
-
getStorageClass
final String getStorageClass()
x-amz-storage-classProvides storage class information of the object. Amazon S3 returns this header for all objects except for S3 Standard storage class objects.
For more information, see "Storage Classes".
Valid Values:
STANDARDREDUCED_REDUNDANCYSTANDARD_IAONEZONE_IAINTELLIGENT_TIERINGGLACIERDEEP_ARCHIVEOUTPOSTSGLACIER_IR
-
getTaggingCount
final String getTaggingCount()
x-amz-tagging-countThe number of tags, if any, on the object.
-
getVersionID
final String getVersionID()
x-amz-version-idVersion of the object.
-
getWebsiteRedirectLocation
final String getWebsiteRedirectLocation()
x-amz-website-redirect-locationIf the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this header in the object metadata.
-
-
-
-