UnsolicitedNotificationEvent (Java SE 11 & JDK 11 ) (original) (raw)
- java.util.EventObject
- javax.naming.ldap.UnsolicitedNotificationEvent
All Implemented Interfaces:
[Serializable](../../../../java.base/java/io/Serializable.html "interface in java.io")
public class UnsolicitedNotificationEvent
extends EventObject
This class represents an event fired in response to an unsolicited notification sent by the LDAP server.
Since:
1.3
See Also:
UnsolicitedNotification, UnsolicitedNotificationListener, 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), EventContext.removeNamingListener(javax.naming.event.NamingListener), Serialized Form
Field Summary
* ### Fields declared in class java.util.[EventObject](../../../../java.base/java/util/EventObject.html "class in java.util") `[source](../../../../java.base/java/util/EventObject.html#source)`
Constructor Summary
Constructors
Constructor Description UnsolicitedNotificationEvent(Object src,UnsolicitedNotification notice) Constructs a new instance of UnsolicitedNotificationEvent. Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type Method Description void dispatch(UnsolicitedNotificationListener listener) Invokes the notificationReceived() method on a listener using this event. UnsolicitedNotification getNotification() Returns the unsolicited notification. * ### Methods declared in class java.util.[EventObject](../../../../java.base/java/util/EventObject.html "class in java.util") `[getSource](../../../../java.base/java/util/EventObject.html#getSource%28%29), [toString](../../../../java.base/java/util/EventObject.html#toString%28%29)` * ### Methods declared in class java.lang.[Object](../../../../java.base/java/lang/Object.html "class in java.lang") `[clone](../../../../java.base/java/lang/Object.html#clone%28%29), [equals](../../../../java.base/java/lang/Object.html#equals%28java.lang.Object%29), [finalize](../../../../java.base/java/lang/Object.html#finalize%28%29), [getClass](../../../../java.base/java/lang/Object.html#getClass%28%29), [hashCode](../../../../java.base/java/lang/Object.html#hashCode%28%29), [notify](../../../../java.base/java/lang/Object.html#notify%28%29), [notifyAll](../../../../java.base/java/lang/Object.html#notifyAll%28%29), [wait](../../../../java.base/java/lang/Object.html#wait%28%29), [wait](../../../../java.base/java/lang/Object.html#wait%28long%29), [wait](../../../../java.base/java/lang/Object.html#wait%28long,int%29)`
Constructor Detail
* #### UnsolicitedNotificationEvent public UnsolicitedNotificationEvent([Object](../../../../java.base/java/lang/Object.html "class in java.lang") src, [UnsolicitedNotification](UnsolicitedNotification.html "interface in javax.naming.ldap") 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 public [UnsolicitedNotification](UnsolicitedNotification.html "interface in javax.naming.ldap") getNotification() Returns the unsolicited notification. Returns: The non-null unsolicited notification that caused this event to be fired. * #### dispatch public void dispatch([UnsolicitedNotificationListener](UnsolicitedNotificationListener.html "interface in javax.naming.ldap") listener) Invokes the `notificationReceived()` method on a listener using this event. Parameters: `listener` \- The non-null listener on which to invoke`notificationReceived`.
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2025, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.