- java.lang.Object
-
- java.util.EventObject
-
- javax.naming.ldap.UnsolicitedNotificationEvent
-
- All Implemented Interfaces:
-
Serializable
public class UnsolicitedNotificationEvent extends EventObject
此类表示响应LDAP服务器发送的未经请求的通知触发的事件。- 从以下版本开始:
- 1.3
- 另请参见:
-
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 inherited from class java.util.EventObject
source
-
-
构造方法摘要
构造方法 Constructor 描述 UnsolicitedNotificationEvent(Object src, UnsolicitedNotification notice)构造一个新的实例UnsolicitedNotificationEvent。
-
方法摘要
所有方法 接口方法 具体的方法 Modifier and Type 方法 描述 voiddispatch(UnsolicitedNotificationListener listener)使用此事件在侦听器上调用notificationReceived()方法。UnsolicitedNotificationgetNotification()返回非请求通知。-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
构造方法详细信息
-
UnsolicitedNotificationEvent
public UnsolicitedNotificationEvent(Object src, UnsolicitedNotification notice)
构造一个新的实例UnsolicitedNotificationEvent。- 参数
-
src- 触发事件的非空源。 -
notice- 非null非请求通知。
-
-
方法详细信息
-
getNotification
public UnsolicitedNotification getNotification()
返回非请求通知。- 结果
- 导致此事件被触发的非null非请求通知。
-
dispatch
public void dispatch(UnsolicitedNotificationListener listener)
使用此事件在侦听器上调用notificationReceived()方法。- 参数
-
listener- 调用notificationReceived的非空侦听notificationReceived。
-
-