クラス XmppMessageSender
java.lang.ObjectSE
org.springframework.ws.transport.AbstractWebServiceMessageSender<XmppDestinationDescriptor>
org.springframework.ws.transport.xmpp.XmppMessageSender
- 実装済みのインターフェース一覧:
org.springframework.beans.factory.InitializingBean, WebServiceMessageSender
public class XmppMessageSender
extends AbstractWebServiceMessageSender<XmppDestinationDescriptor>
implements org.springframework.beans.factory.InitializingBean
XMPP
Message を使用する WebServiceMessageSender 実装。connection を設定する必要があります。このメッセージ送信者は、次の形式の URI をサポートしています。
xmpp : toto は Jabber ID を表します。
WebServiceMessageSender.UriSource.APPLICATION の場合、デフォルトのチェックでは任意の xmpp: URI が受け入れられます。WebServiceMessageSender.UriSource.REMOTE の場合、デフォルトのチェックでは設定済みの XMPPConnection が必要となり、JID ドメインが接続の XMPP サービスドメインと一致する URI のみが受け入れられます (XmppDestinationDescriptor.domain() を参照)。許可リスト、マルチテナントルーティング、またはより厳格な JID チェックには、WebServiceMessageSender.DestinationPolicy を使用してください。
- 導入:
- 2.0
ネストされたクラスの概要
インターフェース WebServiceMessageSender から継承されたネストクラス / インターフェース
WebServiceMessageSender.DestinationDescriptor, WebServiceMessageSender.DestinationPolicy<D>, WebServiceMessageSender.UriSourceフィールド概要
フィールド修飾子と型フィールド説明static final StringSEMessageメッセージの読み取りと書き込みに使用されるデフォルトのエンコーディング。static final long受信操作のデフォルトのタイムアウト: -1 は、タイムアウトなしで受信をブロックしていることを示します。コンストラクター概要
コンストラクター方法の概要
修飾子と型メソッド説明voidcreateConnection(URISE uri) 指定された URI に新しいWebServiceConnectionを作成します。protected XmppDestinationDescriptorcreateDescriptor(URISE uri, WebServiceMessageSender.UriSource uriSource) protected StringSEprotected PredicateSE<XmppDestinationDescriptor> defaultChecks(WebServiceMessageSender.UriSource uriSource) Return the default checks to apply for the givenWebServiceMessageSender.UriSource。voidsetConnection(org.jivesoftware.smack.XMPPConnection connection) XMPPConnectionを設定します。voidsetMessageEncoding(StringSE messageEncoding) Messageオブジェクトからの読み取りに使用されるエンコーディングを設定します。voidsetReceiveTimeout(long receiveTimeout) 受信呼び出しに使用するタイムアウトを設定します。クラス AbstractWebServiceMessageSender から継承されたメソッド
getDestinationPolicy, setDestinationPolicy, supportsクラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース WebServiceMessageSender から継承されたメソッド
supports
フィールドの詳細
DEFAULT_RECEIVE_TIMEOUT
public static final long DEFAULT_RECEIVE_TIMEOUT受信操作のデフォルトのタイムアウト: -1 は、タイムアウトなしで受信をブロックしていることを示します。- 関連事項:
DEFAULT_MESSAGE_ENCODING
Messageメッセージの読み取りと書き込みに使用されるデフォルトのエンコーディング。- 関連事項:
コンストラクターの詳細
XmppMessageSender
public XmppMessageSender()
方法の詳細
setConnection
public void setConnection(org.jivesoftware.smack.XMPPConnection connection) XMPPConnectionを設定します。このプロパティの設定は必須です。setReceiveTimeout
public void setReceiveTimeout(long receiveTimeout) 受信呼び出しに使用するタイムアウトを設定します。デフォルトは -1 で、タイムアウトがないことを意味します。- 関連事項:
setMessageEncoding
Messageオブジェクトからの読み取りに使用されるエンコーディングを設定します。デフォルトはUTF-8です。afterPropertiesSet
- 次で指定:
- インターフェース
org.springframework.beans.factory.InitializingBean内のafterPropertiesSet - 例外:
ExceptionSE
createConnection
インターフェースからコピーされた説明:WebServiceMessageSender指定された URI に新しいWebServiceConnectionを作成します。- 次で指定:
- インターフェース
WebServiceMessageSender内のcreateConnection - パラメーター:
uri- 接続を開くための URI- 戻り値:
- 新しい接続
- 例外:
IOExceptionSE- I/O エラーの場合
createDescriptor
protected XmppDestinationDescriptor createDescriptor(URISE uri, WebServiceMessageSender.UriSource uriSource) クラスからコピーされた説明:AbstractWebServiceMessageSender- 次で指定:
- クラス
AbstractWebServiceMessageSender<XmppDestinationDescriptor>のcreateDescriptor - パラメーター:
uri- the URI to checkuriSource- the source of the URI- 戻り値:
- a suitable descriptor
defaultChecks
protected PredicateSE<XmppDestinationDescriptor> defaultChecks(WebServiceMessageSender.UriSource uriSource) クラスからコピーされた説明:AbstractWebServiceMessageSenderReturn the default checks to apply for the givenWebServiceMessageSender.UriSource。- 次で指定:
- クラス
AbstractWebServiceMessageSender<XmppDestinationDescriptor>のdefaultChecks - 戻り値:
- the default checks to apply
createThread