クラス HttpComponents5Connection
java.lang.ObjectSE
org.springframework.ws.transport.AbstractWebServiceConnection
org.springframework.ws.transport.AbstractSenderConnection
org.springframework.ws.transport.http.AbstractHttpSenderConnection
org.springframework.ws.transport.http.HttpComponents5Connection
- 実装済みのインターフェース一覧:
AutoCloseableSE, FaultAwareWebServiceConnection, HeadersAwareSenderWebServiceConnection, WebServiceConnection
- 導入:
- 4.0.5
コンストラクター概要
コンストラクター修飾子コンストラクター説明protectedHttpComponents5Connection(org.apache.hc.client5.http.classic.HttpClient httpClient, org.apache.hc.core5.http.HttpHost httpHost, org.apache.hc.client5.http.classic.methods.HttpPost httpPost, @Nullable org.apache.hc.core5.http.protocol.HttpContext httpContext) 方法の概要
修飾子と型メソッド説明voidaddRequestHeader(StringSE name, StringSE value) 指定された名前と値でリクエストヘッダーを追加します。org.apache.hc.core5.http.HttpHostorg.apache.hc.client5.http.classic.methods.HttpPostorg.apache.hc.core5.http.HttpResponseprotected InputStreamSEレスポンスを読み取るための、圧縮されている可能性のある生の入力ストリームを返します。protected OutputStreamSEリクエストを書き込む出力ストリームを返します。protected intレスポンスの HTTP ステータスコードを返します。protected longレスポンスの長さを返します。レスポンスに含まれるすべてのヘッダー名を反復して返します。getResponseHeaders(StringSE name) 指定されたレスポンスヘッダーのすべての文字列値の反復処理を返します。protected StringSEレスポンスの HTTP ステータスメッセージを返します。getUri()この接続の URI を返します。protected booleanレスポンスが GZIP 形式のレスポンスであるかどうかを判断します。voidonClose()AbstractWebServiceConnection.close()から呼び出されたテンプレートメソッド。protected voidonSendAfterWrite(WebServiceMessage message) 指定されたメッセージがTransportOutputStreamに書き込まれた後に呼び出されます。protected voidonSendBeforeWrite(WebServiceMessage message) 指定されたメッセージがTransportOutputStreamに書き込まれる前に呼び出されます。クラス AbstractHttpSenderConnection から継承されたメソッド
getErrorMessage, getResponseInputStream, hasError, hasFault, hasResponse, setFaultCodeクラス AbstractWebServiceConnection から継承されたメソッド
close, onReceiveAfterRead, onReceiveBeforeRead, receive, sendクラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース WebServiceConnection から継承されたメソッド
close, receive, send
コンストラクターの詳細
HttpComponents5Connection
protected HttpComponents5Connection(org.apache.hc.client5.http.classic.HttpClient httpClient, org.apache.hc.core5.http.HttpHost httpHost, org.apache.hc.client5.http.classic.methods.HttpPost httpPost, @Nullable org.apache.hc.core5.http.protocol.HttpContext httpContext)
方法の詳細
getHttpHost
public org.apache.hc.core5.http.HttpHost getHttpHost()getHttpPost
public org.apache.hc.client5.http.classic.methods.HttpPost getHttpPost()getHttpResponse
public org.apache.hc.core5.http.HttpResponse getHttpResponse()onClose
クラスからコピーされた説明:AbstractSenderConnectionAbstractWebServiceConnection.close()から呼び出されたテンプレートメソッド。デフォルトの実装は空です。- オーバーライド:
- クラス
AbstractSenderConnectionのonClose - 例外:
IOExceptionSE- この接続を閉じるときに I/O エラーが発生した場合
getUri
インターフェースからコピーされた説明:WebServiceConnectionこの接続の URI を返します。onSendBeforeWrite
クラスからコピーされた説明:AbstractWebServiceConnection指定されたメッセージがTransportOutputStreamに書き込まれる前に呼び出されます。AbstractWebServiceConnection.send(WebServiceMessage)から呼び出されます。デフォルトの実装は何もしません。
- オーバーライド:
- クラス
AbstractWebServiceConnectionのonSendBeforeWrite - パラメーター:
message- メッセージ- 例外:
IOExceptionSE- I/O 例外が発生したとき
addRequestHeader
インターフェースからコピーされた説明:HeadersAwareSenderWebServiceConnection指定された名前と値でリクエストヘッダーを追加します。このメソッドは複数回呼び出すことができ、複数の値を持つヘッダーを許可します。- パラメーター:
name- ヘッダーの名前value- ヘッダーの値- 例外:
IOExceptionSE
getRequestOutputStream
クラスからコピーされた説明:AbstractSenderConnectionリクエストを書き込む出力ストリームを返します。- 次で指定:
- クラス
AbstractSenderConnectionのgetRequestOutputStream - 例外:
IOExceptionSE
onSendAfterWrite
クラスからコピーされた説明:AbstractWebServiceConnection指定されたメッセージがTransportOutputStreamに書き込まれた後に呼び出されます。AbstractWebServiceConnection.send(WebServiceMessage)から呼び出されます。デフォルトの実装は何もしません。
- オーバーライド:
- クラス
AbstractWebServiceConnectionのonSendAfterWrite - パラメーター:
message- メッセージ- 例外:
IOExceptionSE- I/O 例外が発生したとき
isGzipResponse
クラスからコピーされた説明:AbstractHttpSenderConnectionレスポンスが GZIP 形式のレスポンスであるかどうかを判断します。- オーバーライド:
- クラス
AbstractHttpSenderConnectionのisGzipResponse - 例外:
IOExceptionSE
getResponseCode
クラスからコピーされた説明:AbstractHttpSenderConnectionレスポンスの HTTP ステータスコードを返します。- 次で指定:
- クラス
AbstractHttpSenderConnectionのgetResponseCode - 例外:
IOExceptionSE
getResponseMessage
クラスからコピーされた説明:AbstractHttpSenderConnectionレスポンスの HTTP ステータスメッセージを返します。- 次で指定:
- クラス
AbstractHttpSenderConnectionのgetResponseMessage - 例外:
IOExceptionSE
getResponseContentLength
クラスからコピーされた説明:AbstractHttpSenderConnectionレスポンスの長さを返します。- 次で指定:
- クラス
AbstractHttpSenderConnectionのgetResponseContentLength - 例外:
IOExceptionSE
getRawResponseInputStream
クラスからコピーされた説明:AbstractHttpSenderConnectionレスポンスを読み取るための、圧縮されている可能性のある生の入力ストリームを返します。- 次で指定:
- クラス
AbstractHttpSenderConnectionのgetRawResponseInputStream - 例外:
IOExceptionSE
getResponseHeaderNames
インターフェースからコピーされた説明:HeadersAwareSenderWebServiceConnectionレスポンスに含まれるすべてのヘッダー名を反復処理して返します。ヘッダーがない場合、空のIteratorを返します。getResponseHeaders
インターフェースからコピーされた説明:HeadersAwareSenderWebServiceConnection指定されたレスポンスヘッダーのすべての文字列値を反復処理して返します。指定された名前のヘッダーが存在しない場合は、空のIteratorを返します。