@FunctionalInterface
public interface HttpInvokerRequestExecutorすぐに使える 2 つの実装:
SimpleHttpInvokerRequestExecutor: JDK 機能を使用して POST リクエストを実行します。HTTP 認証や詳細構成オプションはサポートされません。HttpComponentsHttpInvokerRequestExecutor: Apache の Commons HttpClient を使用して POST リクエストを実行し、事前設定された HttpClient インスタンス (認証、HTTP 接続プールなどを含む) を使用できるようにします。HttpInvokerClientInterceptor.setHttpInvokerRequestExecutor(org.springframework.remoting.httpinvoker.HttpInvokerRequestExecutor)| 修飾子と型 | メソッドと説明 |
|---|---|
RemoteInvocationResult | executeRequest(HttpInvokerClientConfiguration config, RemoteInvocation invocation) リクエストを実行して、指定されたリモート呼び出しを送信します。 |
RemoteInvocationResult executeRequest(HttpInvokerClientConfiguration config, RemoteInvocation invocation) throws java.lang.Exception
config - ターゲットサービスを指定する HTTP インボーカー構成 invocation - 実行する RemoteInvocationjava.io.IOException - I/O 操作によってスローされた場合 java.lang.ClassNotFoundException - 逆直列化中にスローされた場合 java.lang.Exception - 一般的なエラーの場合