クラス CommonsHttpMessageSender
java.lang.ObjectSE
org.springframework.ws.transport.http.AbstractHttpWebServiceMessageSender
org.springframework.ws.transport.http.CommonsHttpMessageSender
- 実装済みのインターフェース一覧:
org.springframework.beans.factory.DisposableBean、org.springframework.beans.factory.InitializingBean、WebServiceMessageSender
@DeprecatedSE
public class CommonsHttpMessageSender
extends AbstractHttpWebServiceMessageSender
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
使用すべきではありません。
Jakarta Commons HttpClient を使用して POST リクエストを実行する
WebServiceMessageSender 実装。 事前構成された HttpClient インスタンスを、認証、HTTP 接続プーリングなどで使用できるようにします。認証は、Credentials インスタンス(UsernamePasswordCredentials など)を挿入することによって設定することもできます。
- 導入:
- 1.0.0
- 作成者:
- Arjen Poutsma
- 関連事項:
フィールド概要
クラス org.springframework.ws.transport.http.AbstractHttpWebServiceMessageSender から継承されたフィールド
loggerコンストラクター概要
コンストラクターコンストラクター説明使用すべきではありません。デフォルトのMultiThreadedHttpConnectionManagerを使用するデフォルトのHttpClientを使用して、CommonsHttpMessageSenderの新しいインスタンスを作成します。CommonsHttpMessageSender(org.apache.commons.httpclient.HttpClient httpClient) 使用すべきではありません。指定されたHttpClientインスタンスを使用してCommonsHttpMessageSenderの新しいインスタンスを作成します。方法の概要
修飾子と型メソッド説明void使用すべきではありません。createConnection(URISE uri) 使用すべきではありません。指定された URI に新しいWebServiceConnectionを作成します。voiddestroy()使用すべきではありません。org.apache.commons.httpclient.auth.AuthScope使用すべきではありません。使用する認証スコープを返します。org.apache.commons.httpclient.Credentials使用すべきではありません。使用するクレデンシャルを返します。org.apache.commons.httpclient.HttpClient使用すべきではありません。このメッセージ送信者が使用するHttpClientを返します。voidsetAuthScope(org.apache.commons.httpclient.auth.AuthScope authScope) 使用すべきではありません。使用する認証範囲を設定します。voidsetConnectionTimeout(int timeout) 使用すべきではありません。接続が確立されるまでのタイムアウトを設定します。voidsetCredentials(org.apache.commons.httpclient.Credentials credentials) 使用すべきではありません。使用する資格情報を設定します。voidsetHttpClient(org.apache.commons.httpclient.HttpClient httpClient) 使用すべきではありません。このメッセージ送信者が使用するHttpClientを設定します。voidsetMaxConnectionsPerHost(MapSE<StringSE, StringSE> maxConnectionsPerHost) 使用すべきではありません。基盤となる HttpClient のホストあたりの最大接続数を設定します。voidsetMaxTotalConnections(int maxTotalConnections) 使用すべきではありません。基礎となる HttpClient に許可される接続の最大数を設定します。voidsetReadTimeout(int timeout) 使用すべきではありません。基になる HttpClient のソケット読み取りタイムアウトを設定します。クラス org.springframework.ws.transport.http.AbstractHttpWebServiceMessageSender から継承されたメソッド
isAcceptGzipEncoding, setAcceptGzipEncoding, supports
コンストラクターの詳細
CommonsHttpMessageSender
public CommonsHttpMessageSender()使用すべきではありません。デフォルトのMultiThreadedHttpConnectionManagerを使用するデフォルトのHttpClientを使用して、CommonsHttpMessageSenderの新しいインスタンスを作成します。CommonsHttpMessageSender
public CommonsHttpMessageSender(org.apache.commons.httpclient.HttpClient httpClient) 使用すべきではありません。指定されたHttpClientインスタンスを使用してCommonsHttpMessageSenderの新しいインスタンスを作成します。- パラメーター:
httpClient- この送信者に使用する HttpClient インスタンス
メソッドの詳細
getHttpClient
public org.apache.commons.httpclient.HttpClient getHttpClient()使用すべきではありません。このメッセージ送信者が使用するHttpClientを返します。setHttpClient
public void setHttpClient(org.apache.commons.httpclient.HttpClient httpClient) 使用すべきではありません。このメッセージ送信者が使用するHttpClientを設定します。getCredentials
public org.apache.commons.httpclient.Credentials getCredentials()使用すべきではありません。使用するクレデンシャルを返します。setCredentials
public void setCredentials(org.apache.commons.httpclient.Credentials credentials) 使用すべきではありません。使用する資格情報を設定します。設定されていない場合、認証は行われません。- 関連事項:
UsernamePasswordCredentialsNTCredentials
setConnectionTimeout
public void setConnectionTimeout(int timeout) 使用すべきではありません。接続が確立されるまでのタイムアウトを設定します。値 0 は、タイムアウトしないことを意味します。- パラメーター:
timeout- ミリ秒単位のタイムアウト値- 関連事項:
HttpConnectionParams.setConnectionTimeout(int)
setReadTimeout
public void setReadTimeout(int timeout) 使用すべきではありません。基礎となる HttpClient のソケット読み取りタイムアウトを設定します。値 0 は、タイムアウトしないことを意味します。- パラメーター:
timeout- ミリ秒単位のタイムアウト値- 関連事項:
HttpConnectionParams.setSoTimeout(int)
setMaxTotalConnections
public void setMaxTotalConnections(int maxTotalConnections) 使用すべきではありません。基礎となる HttpClient に許可される接続の最大数を設定します。- パラメーター:
maxTotalConnections- 許可される接続の最大数- 関連事項:
HttpConnectionManagerParams.setMaxTotalConnections(int)
setMaxConnectionsPerHost
public void setMaxConnectionsPerHost(MapSE<StringSE, StringSE> maxConnectionsPerHost) throws org.apache.commons.httpclient.URIException使用すべきではありません。基盤となる HttpClient のホストあたりの最大接続数を設定します。ホストごとの接続の最大数は、次のようにjava.util.Propertiesクラスで受け入れられる形式で設定できます。https://www.example.com=1 http://www.example.com:8080=7 www.springframework.org=10 *=5
ホストは、ホスト名または URI(スキームとポートを含む)として指定できます。特別なホスト名*を使用して、HostConfiguration.ANY_HOST_CONFIGURATIONを指定できます。- パラメーター:
maxConnectionsPerHost- 接続の最大数を指定するプロパティオブジェクト- 例外:
org.apache.commons.httpclient.URIException- 関連事項:
HttpConnectionManagerParams.setMaxConnectionsPerHost(org.apache.commons.httpclient.HostConfiguration, int)
getAuthScope
public org.apache.commons.httpclient.auth.AuthScope getAuthScope()使用すべきではありません。使用する認証スコープを返します。credentialsプロパティが設定されている場合にのみ使用されます。デフォルトでは、
AuthScope.ANYが返されます。setAuthScope
public void setAuthScope(org.apache.commons.httpclient.auth.AuthScope authScope) 使用すべきではありません。使用する認証範囲を設定します。credentialsプロパティが設定されている場合にのみ使用されます。デフォルトでは、
AuthScope.ANYが使用されます。afterPropertiesSet
使用すべきではありません。- 次で指定:
- インターフェース
org.springframework.beans.factory.InitializingBeanのafterPropertiesSet - 例外:
ExceptionSE
destroy
使用すべきではありません。- 次で指定:
- インターフェース
org.springframework.beans.factory.DisposableBeanのdestroy - 例外:
ExceptionSE
createConnection
使用すべきではありません。インターフェースからコピーされた説明:WebServiceMessageSender指定された URI に新しいWebServiceConnectionを作成します。- 次で指定:
- インターフェース
WebServiceMessageSenderのcreateConnection - パラメーター:
uri- 接続を開くための URI- 戻り値:
- 新しい接続
- 例外:
IOExceptionSE- I/O エラーの場合
HttpComponentsMessageSenderを推奨して