com.amazonaws.services.s3.internal

## クラス AbstractS3ResponseHandler<T>

- java.lang.Object
- - com.amazonaws.services.s3.internal.AbstractS3ResponseHandler<T>

- 型パラメータ:
    `T` - The output type resulting from handling a response.
  すべての実装されたインタフェース:
    HttpResponseHandler<AmazonWebServiceResponse<T>>
  直系の既知のサブクラス:
    S3MetadataResponseHandler, S3ObjectResponseHandler, S3StringResponseHandler, S3XmlResponseHandler

      public abstract class AbstractS3ResponseHandler<T>
      extends java.lang.Object
      implements HttpResponseHandler<AmazonWebServiceResponse<T>>

  Abstract HTTP response handler for Amazon S3 responses. Provides common utilities that other specialized S3 response handlers need to share such as pulling common response metadata (ex: request IDs) out of headers.

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `needsConnectionLeftOpen()` The majority of S3 response handlers read the complete response while handling it, and don't need to manually manage the underlying HTTP connection.
    `protected AmazonWebServiceResponse<T>` | `parseResponseMetadata(HttpResponse response)` Parses the S3 response metadata (ex: AWS request ID) from the specified response, and returns a AmazonWebServiceResponse object ready for the result to be plugged in.
    `protected void` | `populateObjectMetadata(HttpResponse response, ObjectMetadata metadata)` Populates the specified S3ObjectMetadata object with all object metadata pulled from the headers in the specified response.

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

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

    - ### インタフェースから継承されたメソッド com.amazonaws.http.HttpResponseHandler

      `handle`

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

    - #### AbstractS3ResponseHandler

          public AbstractS3ResponseHandler()

  - ### メソッドの詳細

    - #### needsConnectionLeftOpen

          public boolean needsConnectionLeftOpen()

      The majority of S3 response handlers read the complete response while handling it, and don't need to manually manage the underlying HTTP connection.
      定義:
        `needsConnectionLeftOpen` インタフェース内 `HttpResponseHandler<AmazonWebServiceResponse<T>>`
      戻り値:
        True if this response handler requires that the underlying HTTP connection be left open, and not automatically closed, otherwise false.
      関連項目:
        `HttpResponseHandler.needsConnectionLeftOpen()`

    - #### parseResponseMetadata

          protected AmazonWebServiceResponse<T> parseResponseMetadata(HttpResponse response)

      Parses the S3 response metadata (ex: AWS request ID) from the specified response, and returns a AmazonWebServiceResponse object ready for the result to be plugged in.
      パラメータ:
        `response` - The response containing the response metadata to pull out.
      戻り値:
        A new, populated AmazonWebServiceResponse object, ready for the result to be plugged in.

    - #### populateObjectMetadata

          protected void populateObjectMetadata(HttpResponse response,
                                    ObjectMetadata metadata)

      Populates the specified S3ObjectMetadata object with all object metadata pulled from the headers in the specified response.
      パラメータ:
        `response` - The HTTP response containing the object metadata within the headers.
        `metadata` - The metadata object to populate from the response's headers.