gnu.inet.ldap

Interface ResultHandler

public interface ResultHandler

Callback handler for receiving notification of search results. The application must pass an implementation of this interface into the LDAPConnection.search method. Search responses received during the execution of the method result in calls to the methods defined in this interface.

Method Summary

void
searchResultEntry(String name, Map attributes)
Receive an LDAP SearchResultEntry response.
void
searchResultReference(List urls)
Receive an LDAP SearchResultReference response.

Method Details

searchResultEntry

public void searchResultEntry(String name,
                              Map attributes)
Receive an LDAP SearchResultEntry response. The attributes map provides a mapping of attribute names to values. In the case where typesOnly was true, the value for each attribute will be null. Otherwise it will be a Set of attribute values, which may be of the following types:
  • java.lang.String
  • java.lang.Integer
  • java.lang.Double
  • java.lang.Boolean
  • byte[]
Parameters:
name - the object name DN
attributes - a map of attribute names to values

searchResultReference

public void searchResultReference(List urls)
Receive an LDAP SearchResultReference response. The argument to this function is a sequence of LDAP URLs, one for each entry not explored by the server during the search.
Parameters:
urls - the list of LDAP URLs