public class AmazonHttpClient
extends java.lang.Object
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static java.lang.String |
PROFILING_SYSTEM_PROPERTY
内部システムプロパティが、高度なタイミング情報の収集を有効にします。
|
| コンストラクタと説明 |
|---|
AmazonHttpClient(ClientConfiguration clientConfiguration)
指定したクライアントの設定オプションを用いて、新しい AWS クライアントを構築します。
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
disableStrictHostnameVerification()
このクライアントでのデフォルトの厳格なホスト名照合と、ホスト名と互換性のある照合方法
(例えば: 自由にホスト名のワイルドカード証明書を評価する方法)を無効にします。
|
<T> T |
execute(Request<?> request,
HttpResponseHandler<AmazonWebServiceResponse<T>> responseHandler,
HttpResponseHandler<AmazonServiceException> errorResponseHandler,
ExecutionContext executionContext)
リクエストを実行し、結果を返します。
|
protected void |
finalize() |
ResponseMetadata |
getResponseMetadataForRequest(AmazonWebServiceRequest request)
実行リクエストのための追加の応答メタデータを返します。
|
boolean |
isClockSkewError(AmazonServiceException exception)
クロックスキューエラーが発生した場合、 true を返します。
|
static boolean |
isRequestEntityTooLargeException(AmazonServiceException ase)
リクエストされたエンティティが大きすぎるエラーが発生した場合、 true を返します。
|
static boolean |
isThrottlingException(AmazonServiceException ase)
スロットルエラーが発生した場合、 true を返します。
|
void |
shutdown()
開いたままになっている可能性のあるリソースを解放し、 HTTP クライアントオブジェクトをシャットダウンします。
|
public static final java.lang.String PROFILING_SYSTEM_PROPERTY
public AmazonHttpClient(ClientConfiguration clientConfiguration)
clientConfiguration - Configuration options specifying how this client will
communicate with AWS (ex: proxy settings, retry count, etc.).public ResponseMetadata getResponseMetadataForRequest(AmazonWebServiceRequest request)
request - A previously executed AmazonWebServiceRequest object, whose
response metadata is desired.public void disableStrictHostnameVerification()
public <T> T execute(Request<?> request, HttpResponseHandler<AmazonWebServiceResponse<T>> responseHandler, HttpResponseHandler<AmazonServiceException> errorResponseHandler, ExecutionContext executionContext) throws AmazonClientException, AmazonServiceException
request - The AmazonWebServices request to send to the remote serverresponseHandler - A response handler to accept a successful response from the
remote servererrorResponseHandler - A response handler to accept an unsuccessful response from the
remote serverexecutionContext - Additional information about the context of this web service
callAmazonClientExceptionAmazonServiceExceptionpublic void shutdown()
public static boolean isThrottlingException(AmazonServiceException ase)
ase - The exception to test.public static boolean isRequestEntityTooLargeException(AmazonServiceException ase)
ase - The exception to test.public boolean isClockSkewError(AmazonServiceException exception)
ase - The exception to test.protected void finalize()
throws java.lang.Throwable
finalize クラス内 java.lang.Objectjava.lang.Throwable