Package com.netscape.jndi.ldap
Class BaseSearchEnum<T>
java.lang.Object
com.netscape.jndi.ldap.BaseSearchEnum<T>
- All Implemented Interfaces:
Enumeration<T>
,NamingEnumeration<T>
- Direct Known Subclasses:
BindingEnum
,NameClassPairEnum
,SearchResultEnum
Wrapper for the LDAPSearchResult that implements all NamingEnumeration methods
except next() (left to be implemented by subclasses). Because LDAPJDK does
not provide for capability to ignoral referrals, the class is using hasMore()
method to read ahead search results and "ignore" referrals if required.
Base class for BindingEnum, NameClassPairEnum and SearchResultEnum
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) LdapContextImpl
(package private) Name
(package private) LDAPSearchResults
private LDAPEntry
private LDAPException
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Enumeration
asIterator
Methods inherited from interface javax.naming.NamingEnumeration
next
-
Field Details
-
m_res
LDAPSearchResults m_res -
m_ctx
LdapContextImpl m_ctx -
m_ctxName
Name m_ctxName -
nextEntry
-
nextException
-
-
Constructor Details
-
BaseSearchEnum
- Throws:
NamingException
-
-
Method Details
-
nextLDAPEntry
- Throws:
NamingException
-
nextElement
- Specified by:
nextElement
in interfaceEnumeration<T>
-
hasMore
- Specified by:
hasMore
in interfaceNamingEnumeration<T>
- Throws:
NamingException
-
hasMoreElements
public boolean hasMoreElements()- Specified by:
hasMoreElements
in interfaceEnumeration<T>
-
close
- Specified by:
close
in interfaceNamingEnumeration<T>
- Throws:
NamingException
-