|
LDAP Classes Implements Java LDAP |
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
EventConstant | This interface contains the constants for Classification of Events. |
LDAPEventListener | This interface defines the generic listener for handling LDAP Events. |
PSearchEventListener | This Listener is for receiving persistence search events. |
Class Summary | |
LDAPEvent | This class represents an generic event fired in response to an notification (LDAPResponse) sent by the LDAP Server. |
LDAPEventSource | The base Class which is used by all Ldap Event Generator. |
LDAPExceptionEvent | This class represents an event fired when an Exception occurs during the process of listening to the LDAP Events. |
PsearchEventSource | This Class is responsible for generation of Persistence Search Events. |
SearchReferralEvent | This class represents an Persistence Search event fired in response to an notification (LDAPSearchResult) sent by the LDAP Server. |
SearchResultEvent | This class represents an Persistence Search event fired in response to an notification (LDAPSearchResult) sent by the LDAP Server. |
Provides classes for LDAP Events notification when connected to a LDAP V3 Server.
The following example explains the use of PsearchEventSource
source = new PsearchEventSource();
//Create a instance
listener = new SearchEventListener();
//Some implementation of PSearchListener
//register for search with no attributes returned
source.registerforEvent(
connection, //Connection to connect to server.
searchBase,// container to search
LDAPConnection.SCOPE_SUB,// search container's subtree
"(objectClass=*)",
// search filter, all objects
LDAPConnection.NO_ATTRS, // don't return attributes
true,// return attrs and values, ignored
null, // use default search queue
EventConstant.LDAP_PSEARCH_ANY, // use default search constraints
true, //return change only
listener); //PsearchListener for receiving events.
// process the events in the listener.
//In the end, remove the listener
source.removeListener(listener);
|
LDAP Classes Implements Java LDAP |
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |