クラス XPathPayloadEndpointMapping
java.lang.ObjectSE
org.springframework.context.support.ApplicationObjectSupport
org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping
org.springframework.ws.server.endpoint.mapping.AbstractMapBasedEndpointMapping
org.springframework.ws.server.endpoint.mapping.XPathPayloadEndpointMapping
- 実装されたすべてのインターフェース:
org.springframework.beans.factory.Aware
、org.springframework.beans.factory.InitializingBean
、org.springframework.context.ApplicationContextAware
、org.springframework.core.Ordered
、EndpointMapping
public class XPathPayloadEndpointMapping
extends AbstractMapBasedEndpointMapping
implements org.springframework.beans.factory.InitializingBean
XPath 式を使用してエンドポイントにマップする
EndpointMapping
インターフェースの実装。Bean インスタンスへのマッピングと Bean 名へのマッピングの両方をサポートします。後者はプロトタイプエンドポイントに必要です。XPath 式は、expression
プロパティを使用して設定できます。このプロパティの設定は必須です。式で使用される名前空間バインディングを設定することを定義するオプションの namespaces
プロパティもあります。
endpointMap
プロパティは、エンドポイントマップに Bean 参照を設定するのに適しています。例: XML Bean 定義のマップ要素経由。
Bean 名へのマッピングは、次のように、java.util.Properties
クラスで受け入れられる形式で mappings
プロパティを介して設定できます。
BookFlight=bookFlightEndpoint GetFlights=getFlightsEndpoint構文は XPATH_EVALUATION = ENDPOINT_BEAN_NAME です。重要なのは受信メッセージの XPath 式の評価であり、値はエンドポイントの名前です。
- 導入:
- 1.0.0
- 作成者:
- Arjen Poutsma
- 関連事項:
フィールドサマリー
クラス org.springframework.context.support.ApplicationObjectSupport から継承されたフィールド
logger
インターフェース org.springframework.core.Ordered から継承されたフィールド
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
コンストラクターのサマリー
メソッドのサマリー
修飾子と型メソッド説明void
protected StringSE
getLookupKeyForMessage
(MessageContext messageContext) 指定されたメッセージコンテキストのエンドポイントキーを返します。void
setExpression
(StringSE expression) 使用する XPath 式を設定します。void
setNamespaces
(MapSE<StringSE, StringSE> namespaces) 式で使用される名前空間バインディングを設定します。protected boolean
指定されたエンドポイントキーを検証します。クラス org.springframework.ws.server.endpoint.mapping.AbstractMapBasedEndpointMapping から継承されたメソッド
getEndpointInternal, initApplicationContext, lookupEndpoint, registerEndpoint, setEndpointMap, setLazyInitEndpoints, setMappings, setRegisterBeanNames
クラス org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping から継承されたメソッド
createEndpointInvocationChain, getDefaultEndpoint, getEndpoint, getInterceptors, getOrder, initInterceptors, resolveStringEndpoint, setDefaultEndpoint, setInterceptors, setOrder
クラス org.springframework.context.support.ApplicationObjectSupport から継承されたメソッド
getApplicationContext, getMessageSourceAccessor, initApplicationContext, isContextRequired, obtainApplicationContext, requiredContextClass, setApplicationContext
コンストラクターの詳細
XPathPayloadEndpointMapping
public XPathPayloadEndpointMapping()
メソッドの詳細
setExpression
使用する XPath 式を設定します。setNamespaces
式で使用される名前空間バインディングを設定します。キーはプレフィックス、値は名前空間です。afterPropertiesSet
- 次で指定:
- インターフェース
org.springframework.beans.factory.InitializingBean
のafterPropertiesSet
- 例外:
ExceptionSE
getLookupKeyForMessage
クラスからコピーされた説明:AbstractMapBasedEndpointMapping
指定されたメッセージコンテキストのエンドポイントキーを返します。キーが見つからない場合はnull
を返します。- 次で指定:
- クラス
AbstractMapBasedEndpointMapping
のgetLookupKeyForMessage
- 戻り値:
- 登録キー。または
null
- 例外:
ExceptionSE
validateLookupKey
クラスからコピーされた説明:AbstractMapBasedEndpointMapping
指定されたエンドポイントキーを検証します。true
を返す必要がありますが、指定された文字列は有効です。- 次で指定:
- クラス
AbstractMapBasedEndpointMapping
のvalidateLookupKey