|
LDAP Classes Implements Java LDAP |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.ldap.events.LDAPEventSource com.novell.ldap.events.edir.EdirEventSource
This class act as a source for all the Edirectory Events. The class contains method for eventregisteration (registerforEvent() and registerforFilterevent()) and removal of events listening(removeListener()). The events are generated for a generic LDAPListener interface. .
Each of the method specified throws an IllegalArgumentException if the arguments are null.
Nested Class Summary |
Nested classes inherited from class com.novell.ldap.events.LDAPEventSource |
LDAPEventSource.EventsGenerator |
Constructor Summary | |
EdirEventSource()
Default Constructor for this class. |
Method Summary | |
void |
registerforEvent(EdirEventSpecifier[] specifier,
LDAPConnection conn,
LDAPEventListener alistener)
This method is use to register for Edirectory Events by the given Listener. |
void |
registerforFilterEvent(EdirEventSpecifier[] specifier,
LDAPConnection conn,
LDAPEventListener alistener)
This method is use to register for Edirectory Events by the given Listener.It also specifies a Filter (Search Filter) which are used to filter the events on the server side.The events generated after registration would include this EdirEventSource as the EventSource. |
void |
removeListener(LDAPEventListener alistener)
Removes a listener from receiving Edirectoryevents fired by this class.The listener may have registered more than once with this EdirEventSource, perhaps with different events request arguments. |
Methods inherited from class com.novell.ldap.events.LDAPEventSource |
createListeningThread, getSleepTime, pollforevents, setSleepTime, stopeventpolling |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EdirEventSource() throws LDAPException
LDAPException
- When intialization fails.Method Detail |
public void removeListener(LDAPEventListener alistener) throws LDAPException
alistener
- Removes the listener from receiving the events
fired by this EdirEventSource.
LDAPException
- If problem is encountered while removing the
listener or the listener is not registered for any event.public final void registerforEvent(EdirEventSpecifier[] specifier, LDAPConnection conn, LDAPEventListener alistener) throws LDAPException
specifier
- EdirEventSpecifier is used to specify the event
type to generate.conn
- LDAPConnection Object used to connect to server.alistener
- The LDAPEventListener for receiving the events.
LDAPException
- When the LDAP operation fails.public final void registerforFilterEvent(EdirEventSpecifier[] specifier, LDAPConnection conn, LDAPEventListener alistener) throws LDAPException
specifier
- EdirEventSpecifier is used to specify the event
type to generate.conn
- LDAPConnection Object used to connect to server.alistener
- The LDAPEventListener for receiving the events.
LDAPException
- When the LDAP operation fails.
|
LDAP Classes Implements Java LDAP |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |