Package software.amazon.awssdk.crt.s3
Class S3FinishedResponseContext
- java.lang.Object
-
- software.amazon.awssdk.crt.s3.S3FinishedResponseContext
-
public class S3FinishedResponseContext extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
getCause()
Cause of the error, such as a Java exception from a callback.ChecksumAlgorithm
getChecksumAlgorithm()
int
getErrorCode()
HttpHeader[]
getErrorHeaders()
In the case of a failed HTTP response, get the headers of the response.String
getErrorOperationName()
byte[]
getErrorPayload()
int
getResponseStatus()
boolean
isChecksumValidated()
-
-
-
Method Detail
-
getErrorCode
public int getErrorCode()
-
getResponseStatus
public int getResponseStatus()
-
getErrorPayload
public byte[] getErrorPayload()
-
getErrorOperationName
public String 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
public ChecksumAlgorithm getChecksumAlgorithm()
-
isChecksumValidated
public boolean isChecksumValidated()
-
getCause
public Throwable 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
public HttpHeader[] getErrorHeaders()
In the case of a failed HTTP response, get the headers of the response. May be NULL.- Returns:
- array of headers
-
-