java.lang.ObjectSE
org.springframework.ldap.control.ControlExchangeDirContextProcessor<S,T>
- 実装済みのインターフェース一覧:
DirContextProcessor
public class ControlExchangeDirContextProcessor<S extends ControlSE, T extends ControlSE>
extends ObjectSE
implements DirContextProcessor
ControlExchange を介して LDAP リクエストおよびレスポンス制御を管理するための汎用 DirContextProcessor 実装。このプロセッサーは、LDAP コントロールのライフサイクルを次のように処理します。
- 運用開始前に、取引所からのリクエスト制御を
LdapContextSE に追加する - 操作後に一致するレスポンス制御を抽出する
- 後続の操作のために、レスポンス制御を使用して交換情報を更新します。
For stateful controls that require maintaining connection state across multiple operations (such as paged results or server-side sorting), the same LDAP connection must be reused. Spring LDAP's SingleContextSource and TransactionAwareContextSourceProxy provide this capability when wired into LdapTemplate and LdapClient instances.
- 導入:
- 4.1
- 関連事項:
コンストラクター概要
コンストラクターコンストラクター説明ControlExchangeDirContextProcessor(ControlExchange<S, T> exchange) Construct thisDirContextProcessor, providing theControlExchangeto use.方法の概要
修飾子と型メソッド説明リクエスト制御とレスポンス制御を含む、現在の制御交換を返します。voidpostProcess(DirContextSE ctx) LdapContextSE からリクエスト制御の ID に一致するレスポンス制御を抽出し、交換情報を更新します。voidpreProcess(DirContextSE ctx) Adds the request control from the exchange to theLdapContextSE, replacing any existing control with the same ID.
コンストラクターの詳細
ControlExchangeDirContextProcessor
Construct thisDirContextProcessor, providing theControlExchangeto use.- パラメーター:
exchange- theControlExchangeto use for managing request and response controls
方法の詳細
preProcess
Adds the request control from the exchange to theLdapContextSE, replacing any existing control with the same ID.- 次で指定:
- インターフェース
DirContextProcessor内のpreProcess - パラメーター:
ctx- theDirContextSE to pre-process; must be an instance ofLdapContextSE- 例外:
NamingExceptionSE- if an error occurs while processingIllegalArgumentExceptionSE- ifctxis not anLdapContextSE
postProcess
LdapContextSE からリクエスト制御の ID に一致するレスポンス制御を抽出し、交換情報を更新します。- 次で指定:
- インターフェース
DirContextProcessor内のpostProcess - パラメーター:
ctx- theDirContextSE to post-process; must be an instance ofLdapContextSE- 例外:
NamingExceptionSE- if an error occurs while processingIllegalArgumentExceptionSE- ifctxis not anLdapContextSE
getExchange
リクエスト制御とレスポンス制御を含む、現在の制御交換を返します。The exchange is updated after each
postProcess(DirContext)call when a matching response control is found.- 戻り値:
- 現在の
ControlExchange