Package org.ldaptive.provider.jldap
Class JLdapConnection.AggregateUnsolicitedNotificationListener
- java.lang.Object
-
- org.ldaptive.provider.jldap.JLdapConnection.AggregateUnsolicitedNotificationListener
-
- All Implemented Interfaces:
com.novell.ldap.LDAPUnsolicitedNotificationListener
- Enclosing class:
- JLdapConnection
protected class JLdapConnection.AggregateUnsolicitedNotificationListener extends Object implements com.novell.ldap.LDAPUnsolicitedNotificationListener
Allows the use of multiple unsolicited notification handlers per connection.
-
-
Field Summary
Fields Modifier and Type Field Description private List<UnsolicitedNotificationListener>listenersListeners to receive unsolicited notifications.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAggregateUnsolicitedNotificationListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddUnsolicitedNotificationListener(UnsolicitedNotificationListener listener)Adds an unsolicited notification listener to this handler.voidmessageReceived(com.novell.ldap.LDAPExtendedResponse extendedResponse)voidremoveUnsolicitedNotificationListener(UnsolicitedNotificationListener listener)Removes an unsolicited notification listener from this handler.
-
-
-
Field Detail
-
listeners
private final List<UnsolicitedNotificationListener> listeners
Listeners to receive unsolicited notifications.
-
-
Method Detail
-
addUnsolicitedNotificationListener
public void addUnsolicitedNotificationListener(UnsolicitedNotificationListener listener)
Adds an unsolicited notification listener to this handler.- Parameters:
listener- to receive unsolicited notifications
-
removeUnsolicitedNotificationListener
public void removeUnsolicitedNotificationListener(UnsolicitedNotificationListener listener)
Removes an unsolicited notification listener from this handler.- Parameters:
listener- to stop receiving unsolicited notifications
-
messageReceived
public void messageReceived(com.novell.ldap.LDAPExtendedResponse extendedResponse)
- Specified by:
messageReceivedin interfacecom.novell.ldap.LDAPUnsolicitedNotificationListener
-
-