Package software.amazon.awssdk.crt.s3
Class S3FinishedResponseContext
java.lang.Object
software.amazon.awssdk.crt.s3.S3FinishedResponseContext
-
Method Summary
Modifier and TypeMethodDescriptiongetCause()
Cause of the error, such as a Java exception from a callback.int
In the case of a failed HTTP response, get the headers of the response.byte[]
int
boolean
-
Method Details
-
getErrorCode
public int getErrorCode() -
getResponseStatus
public int getResponseStatus() -
getErrorPayload
public byte[] getErrorPayload() -
getErrorOperationName
- Returns:
- the name of the S3 operation that failed, in the case of a failed HTTP response.
For example, if
S3MetaRequestOptions.MetaRequestType.PUT_OBJECT
fails this could be "PutObject", "CreateMultipartUpload", "UploadPart", "CompleteMultipartUpload", or others. ForS3MetaRequestOptions.MetaRequestType.DEFAULT
, this is the name passed toS3MetaRequestOptions.withOperationName(java.lang.String)
. May be null.
-
getChecksumAlgorithm
-
isChecksumValidated
public boolean isChecksumValidated() -
getCause
Cause of the error, such as a Java exception from a callback. May be NULL if there was no exception in a callback.- Returns:
- throwable
-
getErrorHeaders
In the case of a failed HTTP response, get the headers of the response. May be NULL.- Returns:
- array of headers
-