com.amazonaws.services.s3.internal

## クラス S3ErrorResponseHandler

- java.lang.Object
- - com.amazonaws.services.s3.internal.S3ErrorResponseHandler

- すべての実装されたインタフェース:
    HttpResponseHandler<AmazonServiceException>

      public class S3ErrorResponseHandler
      extends java.lang.Object
      implements HttpResponseHandler<AmazonServiceException>

  Response handler for S3 error responses. S3 error responses are different from other AWS error responses in a few ways. Most error responses will contain an XML body, but not all (ex: error responses to HEAD requests will not), so this error handler has to account for that. The actual XML error response body is slightly different than other services like SimpleDB or EC2 and some information isn't explicitly represented in the XML error response body (ex: error type/fault information) so it has to be inferred from other parts of the error response.

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `S3ErrorResponseHandler()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `AmazonServiceException` | `handle(HttpResponse errorResponse)` HTTP レスポンスオブジェクトを受け入れ、 T 型のオブジェクトを返します。
    `boolean` | `needsConnectionLeftOpen()` Since this response handler completely consumes all the data from the underlying HTTP connection during the handle method, we don't need to keep the HTTP connection open.

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### S3ErrorResponseHandler

          public S3ErrorResponseHandler()

  - ### メソッドの詳細

    - #### handle

          public AmazonServiceException handle(HttpResponse errorResponse)
                                        throws java.lang.Exception

      インタフェースからコピーされた説明: `HttpResponseHandler`
      HTTP レスポンスオブジェクトを受け入れ、 T 型のオブジェクトを返します。 個別の実装において、必要であったとしてもその応答ハンドラを選択し、求める型を返します。
      定義:
        `handle` インタフェース内 `HttpResponseHandler<AmazonServiceException>`
      パラメータ:
        `errorResponse` - The HTTP response to handle, as received from an AWS service.
      戻り値:
        An object of type T, as defined by individual implementations.
      例外:
        `java.lang.Exception` - If any problems are encountered handling the response.
      関連項目:
        `HttpResponseHandler.handle(com.amazonaws.http.HttpResponse)`

    - #### needsConnectionLeftOpen

          public boolean needsConnectionLeftOpen()

      Since this response handler completely consumes all the data from the underlying HTTP connection during the handle method, we don't need to keep the HTTP connection open.
      定義:
        `needsConnectionLeftOpen` インタフェース内 `HttpResponseHandler<AmazonServiceException>`
      戻り値:
        True if this response handler requires that the underlying HTTP connection be left open, and not automatically closed, otherwise false.
      関連項目:
        `HttpResponseHandler.needsConnectionLeftOpen()`