クラス AbstractAddressingEndpointMapping
- 実装済みのインターフェース一覧:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.core.Ordered, EndpointMapping, SoapEndpointMapping
- 既知の直属サブクラス
AbstractActionEndpointMapping
EndpointMapping 実装の抽象基本クラス。通常の SoapEndpointMapping プロパティに加えて、このマッピングには versions プロパティがあり、サポートされる WS-Addressing 仕様を定義します。デフォルトでは、これらは Addressing200408 と Addressing10 です。messageIdStrategy プロパティは、応答 MessageIDs の作成に使用する戦略を定義します。デフォルトでは、これは UuidMessageIdStrategy です。
messageSenders は、帯域外応答メッセージを送信するために使用されます。リクエストメッセージで匿名でない応答アドレスが定義されている場合、これらの送信元を使用してメッセージが送信されます。各送信元の WebServiceMessageSender.supports(java.net.URI, UriSource) と WebServiceMessageSender.UriSource.REMOTE によって、クライアントから提供された wsa:ReplyTo / wsa:FaultTo URI がそのトランスポートで受け入れられるかどうかが決定されます。
This mapping (and all subclasses) uses an implicit WS-Addressing EndpointInterceptor, which is added in every EndpointInvocationChain produced. As such, this mapping does not have the standard interceptors property, but rather a preInterceptors property and a postInterceptors property.
Pre-interceptors always run first in the order they have been configured. All other interceptors — the implicit WS-Addressing interceptor, any auto-discovered SmartEndpointInterceptors, and post-interceptors — are sorted together using OrderComparator. The implicit WS-Addressing interceptor has a fixed order of 0; unordered interceptors default to Integer.MAX_VALUESE so they run last.
- 導入:
- 1.5.0
フィールド概要
クラス TransformerObjectSupport から継承されたフィールド
loggerインターフェース org.springframework.core.Ordered から継承されたフィールド
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEコンストラクター概要
コンストラクター修飾子コンストラクター説明protectedデフォルトの戦略、つまり仕様のAddressing200408およびAddressing10バージョンとUuidMessageIdStrategyを使用して新しいインスタンスを作成します。方法の概要
修飾子と型メソッド説明voidprotected EndpointInterceptor[]buildInterceptors(ObjectSE endpoint, MessageContext messageContext, EndpointInterceptor addressingInterceptor) Build the list ofEndpointInterceptorsfor the given endpoint and message context.org.springframework.context.ApplicationContextfinal @Nullable EndpointInvocationChaingetEndpoint(MessageContext messageContext) このメッセージコンテキストのエンドポイントとインターセプターを返します。protected abstract @Nullable ObjectSE指定されたMessageAddressingPropertiesのエンドポイントを検索し、特定のエンドポイントが見つからない場合はnullを返します。protected abstract @Nullable URISEgetFaultAction(ObjectSE endpoint, MessageAddressingProperties requestMap) エンドポイントを指定して、レスポンス障害メッセージの WS-Addressing アクションを提供し、メッセージアドレス指定プロパティをリクエストします。WS-Addressing MessageIds の作成に使用されるメッセージ ID 戦略を返します。protected MessageIdStrategygetMessageIdStrategy(ObjectSE endpoint) 指定されたエンドポイントのメッセージ ID 戦略を返します。final WebServiceMessageSender[]帯域外応答メッセージの送信に使用されるメッセージ送信者を返します。protected WebServiceMessageSender[]getMessageSenders(ObjectSE endpoint) 指定されたエンドポイントのメッセージ送信者を返します。final intgetOrder()protected abstract @Nullable URISEgetResponseAction(ObjectSE endpoint, MessageAddressingProperties requestMap) エンドポイントを指定して、レスポンスメッセージの WS-Addressing アクションを提供し、メッセージアドレス指定プロパティをリクエストします。final voidsetActorOrRole(StringSE actorOrRole) デリゲートエンドポイントマッピングによってマップされたすべてのエンドポイントに適用する単一の SOAP アクター / actorOrRole を設定します。final voidsetActorsOrRoles(StringSE[] actorsOrRoles) デリゲートエンドポイントマッピングによってマップされたすべてのエンドポイントに適用する SOAP アクター / actorsOrRoles の配列を設定します。voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) final voidsetMessageIdStrategy(MessageIdStrategy messageIdStrategy) WS-Addressing MessageIds の作成に使用されるメッセージ ID 戦略を設定します。final voidsetMessageSender(WebServiceMessageSender messageSender) 帯域外応答メッセージの送信に使用される単一のメッセージ送信者を設定します。final voidsetMessageSenders(WebServiceMessageSender[] messageSenders) 帯域外応答メッセージの送信に使用されるメッセージ送信者を設定します。final voidsetOrder(int order) このマッピングのオーダー値を指定します。final voidsetPostInterceptors(EndpointInterceptor[] postInterceptors) Set additional interceptors to apply alongside the implicit WS-Addressing interceptor.final voidsetPreInterceptors(EndpointInterceptor[] preInterceptors) Set theinterceptorsto be applied first, in the order they have been defined.final voidsetUltimateReceiver(boolean ultimateReceiver) このエンドポイントが SOAP 1.2 UltimateReceiver のロールを果たしているかどうかを示します。final voidsetVersions(AddressingVersion[] versions) このマッピングでサポートされる WS-Addressing バージョンを設定します。
コンストラクターの詳細
AbstractAddressingEndpointMapping
protected AbstractAddressingEndpointMapping()デフォルトの戦略、つまり仕様のAddressing200408およびAddressing10バージョンとUuidMessageIdStrategyを使用して新しいインスタンスを作成します。
方法の詳細
setActorOrRole
インターフェースからコピーされた説明:SoapEndpointMappingデリゲートエンドポイントマッピングによってマップされたすべてのエンドポイントに適用する単一の SOAP アクター / actorOrRole を設定します。- 次で指定:
- インターフェース
SoapEndpointMapping内のsetActorOrRole
setActorsOrRoles
インターフェースからコピーされた説明:SoapEndpointMappingデリゲートエンドポイントマッピングによってマップされたすべてのエンドポイントに適用する SOAP アクター / actorsOrRoles の配列を設定します。- 次で指定:
- インターフェース
SoapEndpointMapping内のsetActorsOrRoles
setUltimateReceiver
public final void setUltimateReceiver(boolean ultimateReceiver) インターフェースからコピーされた説明:SoapEndpointMappingこのエンドポイントが SOAP 1.2 UltimateReceiver のロールを果たしているかどうかを示します。- 次で指定:
- インターフェース
SoapEndpointMapping内のsetUltimateReceiver
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - 次で指定:
- インターフェース
org.springframework.context.ApplicationContextAware内のsetApplicationContext - 例外:
org.springframework.beans.BeansException
getOrder
public final int getOrder()- 次で指定:
- インターフェース
org.springframework.core.Ordered内のgetOrder
setOrder
public final void setOrder(int order) このマッピングのオーダー値を指定します。デフォルト値は
Integer.MAX_VALUESE です。これは、順序付けされていないことを意味します。- 関連事項:
setPreInterceptors
Set theinterceptorsto be applied first, in the order they have been defined.- パラメーター:
preInterceptors- the interceptors to apply first, in that order
setPostInterceptors
Set additional interceptors to apply alongside the implicit WS-Addressing interceptor.Interceptors are sorted together with any auto-discovered
SmartEndpointInterceptorsand the implicit WS-Addressing interceptor (order0) usingOrderComparator. By default, interceptors without an explicit order are placed at the end, and therefore after the WS-Addressing interceptor. ImplementOrderedto customize the position.- パラメーター:
postInterceptors- additional interceptors to apply alongside the implicit WS-Addressing interceptor
setMessageIdStrategy
WS-Addressing MessageIds の作成に使用されるメッセージ ID 戦略を設定します。デフォルトでは、
UuidMessageIdStrategyが使用されます。getMessageIdStrategy
WS-Addressing MessageIds の作成に使用されるメッセージ ID 戦略を返します。setMessageSender
帯域外応答メッセージの送信に使用される単一のメッセージ送信者を設定します。リクエストメッセージが匿名でない応答アドレスを定義している場合、この送信者はメッセージの送信に使用されます。- パラメーター:
messageSender- メッセージの送信者
setMessageSenders
帯域外応答メッセージの送信に使用されるメッセージ送信者を設定します。リクエストメッセージが匿名でない応答アドレスを定義している場合、これらの送信者はメッセージの送信に使用されます。- パラメーター:
messageSenders- メッセージの送信者
getMessageSenders
帯域外応答メッセージの送信に使用されるメッセージ送信者を返します。- 戻り値:
- メッセージの送信者
setVersions
このマッピングでサポートされる WS-Addressing バージョンを設定します。デフォルトでは、この配列は仕様の
the August 2004およびMay 2006バージョンをサポートするように設定されています。afterPropertiesSet
- 次で指定:
- インターフェース
org.springframework.beans.factory.InitializingBean内のafterPropertiesSet - 例外:
ExceptionSE
getEndpoint
public final @Nullable EndpointInvocationChain getEndpoint(MessageContext messageContext) throws TransformerExceptionSE インターフェースからコピーされた説明:EndpointMappingこのメッセージコンテキストのエンドポイントとインターセプターを返します。選択は、メッセージの内容、トランスポートリクエストの URL、ルーティングテーブル、実装クラスが選択する任意の要素で行うことができます。返される
EndpointExecutionChainには、タグインターフェースではなく、エンドポイントオブジェクトが含まれているため、エンドポイントはいかなる方法でも制約されません。例:EndpointAdapterは、別のフレームワークのエンドポイントオブジェクトを使用できるように作成できます。一致するものが見つからなかった場合は
nullを返します。これは仕様によるものです。MessageDispatcherは、登録されているすべてのEndpointMappingBean にクエリを実行して一致するものを見つけ、エンドポイントが見つからない場合にのみエラーがあると判断します。- 次で指定:
- インターフェース
EndpointMapping内のgetEndpoint - 戻り値:
- エンドポイントオブジェクトとインターセプターを含む HandlerExecutionChain インスタンス、またはマッピングが見つからない場合は
null - 例外:
TransformerExceptionSE
buildInterceptors
protected EndpointInterceptor[] buildInterceptors(ObjectSE endpoint, MessageContext messageContext, EndpointInterceptor addressingInterceptor) Build the list ofEndpointInterceptorsfor the given endpoint and message context. Only addSmartEndpointInterceptorthat should beintercepted。- パラメーター:
endpoint- エンドポイントmessageContext- 現在のメッセージコンテキストaddressingInterceptor- the implicit WS-Addressing interceptor- 戻り値:
- 使用する迎撃機
- 導入:
- 3.1.9
getMessageSenders
指定されたエンドポイントのメッセージ送信者を返します。デフォルトの実装はgetMessageSenders()を返します- パラメーター:
endpoint- エンドポイント- 戻り値:
- 特定のエンドポイントのメッセージ送信者
getMessageIdStrategy
指定されたエンドポイントのメッセージ ID 戦略を返します。デフォルトの実装はgetMessageIdStrategy()を返します- パラメーター:
endpoint- エンドポイント- 戻り値:
- 特定のエンドポイントのメッセージ ID 戦略
getEndpointInternal
指定されたMessageAddressingPropertiesのエンドポイントを検索し、特定のエンドポイントが見つからない場合はnullを返します。このテンプレートメソッドはgetEndpoint(MessageContext)によって呼び出されます。- パラメーター:
map- メッセージアドレス指定プロパティ- 戻り値:
- エンドポイント、または
null
getResponseAction
protected abstract @Nullable URISE getResponseAction(ObjectSE endpoint, MessageAddressingProperties requestMap) エンドポイントを指定して、レスポンスメッセージの WS-Addressing アクションを提供し、メッセージアドレス指定プロパティをリクエストします。- パラメーター:
endpoint- マップされたエンドポイントrequestMap- リクエストの MAP- 戻り値:
- レスポンスアクション
getFaultAction
protected abstract @Nullable URISE getFaultAction(ObjectSE endpoint, MessageAddressingProperties requestMap) エンドポイントを指定して、レスポンス障害メッセージの WS-Addressing アクションを提供し、メッセージアドレス指定プロパティをリクエストします。- パラメーター:
endpoint- マップされたエンドポイントrequestMap- リクエストの MAP- 戻り値:
- レスポンスアクション