JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.793

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.http

Class AmazonHttpClient

    • Field Detail

      • requestLog

        public static final org.apache.commons.logging.Log requestLog
        Logger providing detailed information on requests/responses. Users can enable this logger to get access to AWS request IDs for responses, individual requests and parameters sent to AWS, etc.
    • Constructor Detail

      • AmazonHttpClient

        public AmazonHttpClient(ClientConfiguration config)
        Constructs a new AWS client using the specified client configuration options (ex: max retry attempts, proxy httpClientSettings, etc).
        Parameters:
        config - Configuration options specifying how this client will communicate with AWS (ex: proxy httpClientSettings, retry count, etc.).
      • AmazonHttpClient

        public AmazonHttpClient(ClientConfiguration config,
         RequestMetricCollector requestMetricCollector)
        Constructs a new AWS client using the specified client configuration options (ex: max retry attempts, proxy httpClientSettings, etc), and request metric collector.
        Parameters:
        config - Configuration options specifying how this client will communicate with AWS (ex: proxy httpClientSettings, retry count, etc.).
        requestMetricCollector - client specific request metric collector, which takes precedence over the one at the AWS SDK level; or null if there is none.
      • AmazonHttpClient

        public AmazonHttpClient(ClientConfiguration config,
         RequestMetricCollector requestMetricCollector,
         boolean useBrowserCompatibleHostNameVerifier)
        Constructs a new AWS client using the specified client configuration options (ex: max retry attempts, proxy httpClientSettings, etc), and request metric collector.
        Parameters:
        config - Configuration options specifying how this client will communicate with AWS (ex: proxy httpClientSettings, retry count, etc.).
        requestMetricCollector - client specific request metric collector, which takes precedence over the one at the AWS SDK level; or null if there is none.
      • AmazonHttpClient

        public AmazonHttpClient(ClientConfiguration config,
         RequestMetricCollector requestMetricCollector,
         boolean useBrowserCompatibleHostNameVerifier,
         boolean calculateCRC32FromCompressedData)
        Constructs a new AWS client using the specified client configuration options (ex: max retry attempts, proxy httpClientSettings, etc), and request metric collector.
        Parameters:
        config - Configuration options specifying how this client will communicate with AWS (ex: proxy httpClientSettings, retry count, etc.).
        requestMetricCollector - client specific request metric collector, which takes precedence over the one at the AWS SDK level; or null if there is none.
        calculateCRC32FromCompressedData - The flag indicating whether the CRC32 checksum is calculated from compressed data or not. It is only applicable when the header "x-amz-crc32" is set in the response.
    • Method Detail

      • shutdown

        public void shutdown()
        Shuts down this HTTP client object, releasing any resources that might be held open. This is an optional method, and callers are not expected to call it, but can if they want to explicitly release any open resources. Once a client has been shutdown, it cannot be used to make more requests.
      • getHttpRequestTimer

        public HttpRequestTimer getHttpRequestTimer()
        Package protected for unit-testing
      • getClientExecutionTimer

        public ClientExecutionTimer getClientExecutionTimer()
        Package protected for unit-testing
      • getResponseMetadataForRequest

        public ResponseMetadata getResponseMetadataForRequest(AmazonWebServiceRequest request)
        Returns additional response metadata for an executed request. Response metadata isn't considered part of the standard results returned by an operation, so it's accessed instead through this diagnostic interface. Response metadata is typically used for troubleshooting issues with AWS support staff when services aren't acting as expected.
        Parameters:
        request - A previously executed AmazonWebServiceRequest object, whose response metadata is desired.
        Returns:
        The response metadata for the specified request, otherwise null if there is no response metadata available for the request.
      • getRequestMetricCollector

        public RequestMetricCollector getRequestMetricCollector()
        Returns the httpClientSettings client specific request metric collector; or null if there is none.
      • getTimeOffset

        public int getTimeOffset()
        Returns the time difference in seconds between this client and AWS.
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /