クラス UriEndpointMapping
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.UriEndpointMapping
- 実装済みのインターフェース一覧:
org.springframework.beans.factory.Aware、org.springframework.context.ApplicationContextAware、org.springframework.core.Ordered、EndpointMapping
完全なリクエスト URI またはリクエスト URI パスからエンドポイント Bean にマップするための
EndpointMapping インターフェースの実装。Bean インスタンスへのマッピングと Bean 名へのマッピングの両方をサポートします。後者はプロトタイプハンドラーに必要です。usePath プロパティが有効になっている場合、マッピングは完全な URI ではなく URI パスに基づいて行われます。
endpointMap プロパティは、エンドポイントマップに Bean 参照を設定するのに適しています。例: XML Bean 定義のマップ要素経由。
Bean 名へのマッピングは、次のように、 java.util.Properties クラスで受け入れられる形式で mappings プロパティを介して設定できます。
http://example.com:8080/services/bookFlight=bookFlightEndpoint jms://exampleQueue=getFlightsEndpointまたは、
usePath プロパティが有効になっている場合:/services/bookFlight=bookFlightEndpoint構文は [URI | PATH] = ENDPOINT_BEAN_NAME。
このエンドポイントマッピングはリクエストメッセージから読み取らないため、トランスポートリクエストから直接読み取るメッセージファクトリ( payloadCaching が無効になっている SaajSoapMessageFactory など)に適しています。ただし、このエンドポイントマッピングは明らかにトランスポート固有です。
- 導入:
- 1.5.0
- 作成者:
- Arjen Poutsma
フィールド概要
クラス org.springframework.context.support.ApplicationObjectSupport から継承されたフィールド
loggerインターフェース org.springframework.core.Ordered から継承されたフィールド
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEコンストラクター概要
コンストラクター方法の概要
修飾子と型メソッド説明protected StringSEgetLookupKeyForMessage(MessageContext messageContext) 指定されたメッセージコンテキストのエンドポイントキーを返します。voidsetUsePath(boolean usePath) 完全な URI の代わりにパスを使用する必要があるかどうかを示します。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
コンストラクターの詳細
UriEndpointMapping
public UriEndpointMapping()
メソッドの詳細
setUsePath
public void setUsePath(boolean usePath) 完全な URI の代わりにパスを使用する必要があるかどうかを示します。デフォルトはfalseです。- 導入:
- 2.1.1
validateLookupKey
クラスからコピーされた説明:AbstractMapBasedEndpointMapping指定されたエンドポイントキーを検証します。trueを返す必要がありますが、指定された文字列は有効です。- 次で指定:
- クラス
AbstractMapBasedEndpointMappingのvalidateLookupKey
getLookupKeyForMessage
クラスからコピーされた説明:AbstractMapBasedEndpointMapping指定されたメッセージコンテキストのエンドポイントキーを返します。キーが見つからない場合はnullを返します。- 次で指定:
- クラス
AbstractMapBasedEndpointMappingのgetLookupKeyForMessage - 戻り値:
- 登録キー。または
null - 例外:
ExceptionSE