org.ldaptive.provider.netscape
Class NetscapeConnection.SearchResultIterator

java.lang.Object
  extended by org.ldaptive.provider.netscape.NetscapeConnection.SearchResultIterator
Enclosing class:
NetscapeConnection

protected static class NetscapeConnection.SearchResultIterator
extends Object

Iterates over an ldap search listener.


Constructor Summary
NetscapeConnection.SearchResultIterator(netscape.ldap.LDAPSearchListener l)
          Create a new ldap search listener iterator.
 
Method Summary
 netscape.ldap.LDAPSearchListener getLDAPSearchListener()
          Returns the ldap search listener.
 netscape.ldap.LDAPResponse getResponse()
          Returns the search response.
 boolean hasNext()
          Returns whether the listener has another message to read.
 netscape.ldap.LDAPMessage next()
          Returns the next message in the listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetscapeConnection.SearchResultIterator

public NetscapeConnection.SearchResultIterator(netscape.ldap.LDAPSearchListener l)
Create a new ldap search listener iterator.

Parameters:
l - ldap search listener
Method Detail

getLDAPSearchListener

public netscape.ldap.LDAPSearchListener getLDAPSearchListener()
Returns the ldap search listener.

Returns:
ldap search listener

hasNext

public boolean hasNext()
                throws netscape.ldap.LDAPException
Returns whether the listener has another message to read.

Returns:
whether the listener has another message to read
Throws:
netscape.ldap.LDAPException - if an error occurs reading the response

next

public netscape.ldap.LDAPMessage next()
Returns the next message in the listener.

Returns:
ldap message

getResponse

public netscape.ldap.LDAPResponse getResponse()
Returns the search response. Available after all messages have been read from the listener.

Returns:
ldap search response


Copyright © 2003-2016 Virginia Tech. All Rights Reserved.