Class S3FinishedResponseContext

java.lang.Object
software.amazon.awssdk.crt.s3.S3FinishedResponseContext

public class S3FinishedResponseContext extends Object
  • Method Details

    • 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. For S3MetaRequestOptions.MetaRequestType.DEFAULT, this is the name passed to S3MetaRequestOptions.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