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) LDAPSearchResultsprivate LDAPEntryprivate LDAPException -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Enumeration
asIteratorMethods 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:
nextElementin interfaceEnumeration<T>
-
hasMore
- Specified by:
hasMorein interfaceNamingEnumeration<T>- Throws:
NamingException
-
hasMoreElements
public boolean hasMoreElements()- Specified by:
hasMoreElementsin interfaceEnumeration<T>
-
close
- Specified by:
closein interfaceNamingEnumeration<T>- Throws:
NamingException
-