javax.naming.ldap
Class UnsolicitedNotificationEvent

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject 
      extended by javax.naming.ldap.UnsolicitedNotificationEvent
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable

public class UnsolicitedNotificationEvent
extends EventObject sample code for java.util.EventObject definition code for java.util.EventObject

This class represents an event fired in response to an unsolicited notification sent by the LDAP server.

Since:
1.3
See Also:
UnsolicitedNotification sample code for javax.naming.ldap.UnsolicitedNotification definition code for javax.naming.ldap.UnsolicitedNotification , UnsolicitedNotificationListener sample code for javax.naming.ldap.UnsolicitedNotificationListener definition code for javax.naming.ldap.UnsolicitedNotificationListener , EventContext.addNamingListener(javax.naming.Name, int, javax.naming.event.NamingListener) sample code for javax.naming.event.EventContext.addNamingListener(javax.naming.Name, int, javax.naming.event.NamingListener) definition code for javax.naming.event.EventContext.addNamingListener(javax.naming.Name, int, javax.naming.event.NamingListener) , EventDirContext.addNamingListener(javax.naming.Name, java.lang.String, javax.naming.directory.SearchControls, javax.naming.event.NamingListener) sample code for javax.naming.event.EventDirContext.addNamingListener(javax.naming.Name, java.lang.String, javax.naming.directory.SearchControls, javax.naming.event.NamingListener) definition code for javax.naming.event.EventDirContext.addNamingListener(javax.naming.Name, java.lang.String, javax.naming.directory.SearchControls, javax.naming.event.NamingListener) , EventContext.removeNamingListener(javax.naming.event.NamingListener) sample code for javax.naming.event.EventContext.removeNamingListener(javax.naming.event.NamingListener) definition code for javax.naming.event.EventContext.removeNamingListener(javax.naming.event.NamingListener) , Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject
source sample code for java.util.EventObject.source definition code for java.util.EventObject.source
 
Constructor Summary
UnsolicitedNotificationEvent sample code for javax.naming.ldap.UnsolicitedNotificationEvent.UnsolicitedNotificationEvent(java.lang.Object, javax.naming.ldap.UnsolicitedNotification) definition code for javax.naming.ldap.UnsolicitedNotificationEvent.UnsolicitedNotificationEvent(java.lang.Object, javax.naming.ldap.UnsolicitedNotification) (Object sample code for java.lang.Object definition code for java.lang.Object  src, UnsolicitedNotification sample code for javax.naming.ldap.UnsolicitedNotification definition code for javax.naming.ldap.UnsolicitedNotification  notice)
          Constructs a new instance of UnsolicitedNotificationEvent.
 
Method Summary
 void dispatch sample code for javax.naming.ldap.UnsolicitedNotificationEvent.dispatch(javax.naming.ldap.UnsolicitedNotificationListener) definition code for javax.naming.ldap.UnsolicitedNotificationEvent.dispatch(javax.naming.ldap.UnsolicitedNotificationListener) (UnsolicitedNotificationListener sample code for javax.naming.ldap.UnsolicitedNotificationListener definition code for javax.naming.ldap.UnsolicitedNotificationListener  listener)
          Invokes the notificationReceived() method on a listener using this event.
 UnsolicitedNotification sample code for javax.naming.ldap.UnsolicitedNotification definition code for javax.naming.ldap.UnsolicitedNotification getNotification sample code for javax.naming.ldap.UnsolicitedNotificationEvent.getNotification() definition code for javax.naming.ldap.UnsolicitedNotificationEvent.getNotification() ()
          Returns the unsolicited notification.
 
Methods inherited from class java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject
getSource sample code for java.util.EventObject.getSource() definition code for java.util.EventObject.getSource() , toString sample code for java.util.EventObject.toString() definition code for java.util.EventObject.toString()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

UnsolicitedNotificationEvent sample code for javax.naming.ldap.UnsolicitedNotificationEvent(java.lang.Object, javax.naming.ldap.UnsolicitedNotification) definition code for javax.naming.ldap.UnsolicitedNotificationEvent(java.lang.Object, javax.naming.ldap.UnsolicitedNotification)

public UnsolicitedNotificationEvent(Object sample code for java.lang.Object definition code for java.lang.Object  src,
                                    UnsolicitedNotification sample code for javax.naming.ldap.UnsolicitedNotification definition code for javax.naming.ldap.UnsolicitedNotification  notice)
Constructs a new instance of UnsolicitedNotificationEvent.

Parameters:
src - The non-null source that fired the event.
notice - The non-null unsolicited notification.
Method Detail

getNotification sample code for javax.naming.ldap.UnsolicitedNotificationEvent.getNotification() definition code for javax.naming.ldap.UnsolicitedNotificationEvent.getNotification()

public UnsolicitedNotification sample code for javax.naming.ldap.UnsolicitedNotification definition code for javax.naming.ldap.UnsolicitedNotification  getNotification()
Returns the unsolicited notification.

Returns:
The non-null unsolicited notification that caused this event to be fired.

dispatch sample code for javax.naming.ldap.UnsolicitedNotificationEvent.dispatch(javax.naming.ldap.UnsolicitedNotificationListener) definition code for javax.naming.ldap.UnsolicitedNotificationEvent.dispatch(javax.naming.ldap.UnsolicitedNotificationListener)

public void dispatch(UnsolicitedNotificationListener sample code for javax.naming.ldap.UnsolicitedNotificationListener definition code for javax.naming.ldap.UnsolicitedNotificationListener  listener)
Invokes the notificationReceived() method on a listener using this event.

Parameters:
listener - The non-null listener on which to invoke notificationReceived.