クラス PagedResultsControlExchangeDirContextProcessor
java.lang.ObjectSE
org.springframework.ldap.control.ControlExchangeDirContextProcessor<PagedResultsControlSE, PagedResultsResponseControlSE>
org.springframework.ldap.control.PagedResultsControlExchangeDirContextProcessor
- 実装済みのインターフェース一覧:
DirContextProcessor
public final class PagedResultsControlExchangeDirContextProcessor
extends ControlExchangeDirContextProcessor<PagedResultsControlSE, PagedResultsResponseControlSE>
LDAP ページ化された結果コントロールを管理するための特殊な
DirContextProcessor。 このプロセッサーは、RFC 2696 で定義されているページ分割された LDAP 検索結果の処理を簡素化します。また、追加ページが利用可能かどうかを判断するための便利な hasMore() メソッドを提供し、結果のすべてのページを簡単に反復処理できるようにします。
Paging requires that the same LDAP connection be used across each page. Spring LDAP's SingleContextSource and TransactionAwareContextSourceProxy provide this capability when wired into LdapTemplate and LdapClient instances.
- 導入:
- 4.1
- 関連事項:
コンストラクター概要
コンストラクターコンストラクター説明PagedResultsControlExchangeDirContextProcessor(int pageSize) 指定されたページサイズでページングされた結果プロセッサーを構築します。方法の概要
クラス ControlExchangeDirContextProcessor から継承されたメソッド
getExchange, postProcess, preProcess
コンストラクターの詳細
PagedResultsControlExchangeDirContextProcessor
public PagedResultsControlExchangeDirContextProcessor(int pageSize) 指定されたページサイズでページングされた結果プロセッサーを構築します。- パラメーター:
pageSize- the number of entries to return in each page
方法の詳細
hasMore
public boolean hasMore()Determines whether there are more pages of results available.This method checks if the server returned a non-null cookie in the response control, which indicates that additional results are available.
- 戻り値:
trueif more pages are available,falseotherwise