@DeprecatedSE @FunctionalInterfaceSE 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 ExceptionSE
config
- ターゲットサービスを指定する HTTP インボーカー構成 invocation
- 実行する RemoteInvocationIOExceptionSE
- I/O 操作によってスローされた場合 ClassNotFoundExceptionSE
- 逆直列化中にスローされた場合 ExceptionSE
- 一般的なエラーの場合