org.apache.directory.server.core.enumeration
Class ReferralHandlingEnumeration

java.lang.Object
  extended byorg.apache.directory.server.core.enumeration.ReferralHandlingEnumeration
All Implemented Interfaces:
java.util.Enumeration, javax.naming.NamingEnumeration

public class ReferralHandlingEnumeration
extends java.lang.Object
implements javax.naming.NamingEnumeration

A wrapper enumeration which saves referral entries to be returned last.

Version:
$Rev: 434579 $
Author:
Apache Directory Project

Constructor Summary
ReferralHandlingEnumeration(javax.naming.NamingEnumeration underlying, ReferralLut lut, AttributeTypeRegistry registry, PartitionNexus nexus, int scope, boolean doThrow)
           
 
Method Summary
 void close()
           
 void doReferralExceptionOnSearchBase()
           
 boolean hasMore()
           
 boolean hasMoreElements()
           
 java.lang.Object next()
           
 java.lang.Object nextElement()
           
 void prefetch()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferralHandlingEnumeration

public ReferralHandlingEnumeration(javax.naming.NamingEnumeration underlying,
                                   ReferralLut lut,
                                   AttributeTypeRegistry registry,
                                   PartitionNexus nexus,
                                   int scope,
                                   boolean doThrow)
                            throws javax.naming.NamingException
Method Detail

prefetch

public void prefetch()
              throws javax.naming.NamingException
Throws:
javax.naming.NamingException

next

public java.lang.Object next()
                      throws javax.naming.NamingException
Specified by:
next in interface javax.naming.NamingEnumeration
Throws:
javax.naming.NamingException

hasMore

public boolean hasMore()
                throws javax.naming.NamingException
Specified by:
hasMore in interface javax.naming.NamingEnumeration
Throws:
javax.naming.NamingException

close

public void close()
           throws javax.naming.NamingException
Specified by:
close in interface javax.naming.NamingEnumeration
Throws:
javax.naming.NamingException

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface java.util.Enumeration

nextElement

public java.lang.Object nextElement()
Specified by:
nextElement in interface java.util.Enumeration

doReferralExceptionOnSearchBase

public void doReferralExceptionOnSearchBase()
                                     throws javax.naming.NamingException
Throws:
javax.naming.NamingException