org.ldaptive.provider.opendj
Class OpenDJConnection.AggregateUnsolicitedNotificationListener

java.lang.Object
  extended by org.ldaptive.provider.opendj.OpenDJConnection.AggregateUnsolicitedNotificationListener
All Implemented Interfaces:
EventListener, org.forgerock.opendj.ldap.ConnectionEventListener
Enclosing class:
OpenDJConnection

protected class OpenDJConnection.AggregateUnsolicitedNotificationListener
extends Object
implements org.forgerock.opendj.ldap.ConnectionEventListener

Allows the use of multiple unsolicited notification listeners per connection.


Constructor Summary
protected OpenDJConnection.AggregateUnsolicitedNotificationListener()
           
 
Method Summary
 void addUnsolicitedNotificationListener(org.ldaptive.extended.UnsolicitedNotificationListener listener)
          Adds an unsolicited notification listener to this listener.
 void handleConnectionClosed()
          
 void handleConnectionError(boolean b, org.forgerock.opendj.ldap.ErrorResultException e)
          
 void handleUnsolicitedNotification(org.forgerock.opendj.ldap.responses.ExtendedResult extendedResult)
          
 void removeUnsolicitedNotificationListener(org.ldaptive.extended.UnsolicitedNotificationListener listener)
          Removes an unsolicited notification listener from this listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenDJConnection.AggregateUnsolicitedNotificationListener

protected OpenDJConnection.AggregateUnsolicitedNotificationListener()
Method Detail

addUnsolicitedNotificationListener

public void addUnsolicitedNotificationListener(org.ldaptive.extended.UnsolicitedNotificationListener listener)
Adds an unsolicited notification listener to this listener.

Parameters:
listener - to receive unsolicited notifications

removeUnsolicitedNotificationListener

public void removeUnsolicitedNotificationListener(org.ldaptive.extended.UnsolicitedNotificationListener listener)
Removes an unsolicited notification listener from this listener.

Parameters:
listener - to stop receiving unsolicited notifications

handleConnectionClosed

public void handleConnectionClosed()

Specified by:
handleConnectionClosed in interface org.forgerock.opendj.ldap.ConnectionEventListener

handleConnectionError

public void handleConnectionError(boolean b,
                                  org.forgerock.opendj.ldap.ErrorResultException e)

Specified by:
handleConnectionError in interface org.forgerock.opendj.ldap.ConnectionEventListener

handleUnsolicitedNotification

public void handleUnsolicitedNotification(org.forgerock.opendj.ldap.responses.ExtendedResult extendedResult)

Specified by:
handleUnsolicitedNotification in interface org.forgerock.opendj.ldap.ConnectionEventListener


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