Class CountNameClassPairCallbackHandler
java.lang.Object
org.springframework.ldap.core.support.CountNameClassPairCallbackHandler
- All Implemented Interfaces:
NameClassPairCallbackHandler
public class CountNameClassPairCallbackHandler
extends Object
implements NameClassPairCallbackHandler
A
NameClassPairCallbackHandler
for counting all returned entries.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Get the number of rows that was returned by the search.void
handleNameClassPair
(NameClassPair nameClassPair) Handle one entry.
-
Constructor Details
-
CountNameClassPairCallbackHandler
public CountNameClassPairCallbackHandler()
-
-
Method Details
-
getNoOfRows
public int getNoOfRows()Get the number of rows that was returned by the search.- Returns:
- the number of entries that have been handled.
-
handleNameClassPair
Description copied from interface:NameClassPairCallbackHandler
Handle one entry. This method will be called once for each entry returned by a search or list.- Specified by:
handleNameClassPair
in interfaceNameClassPairCallbackHandler
- Parameters:
nameClassPair
- the NameClassPair returned from theNamingEnumeration
.
-