- java.lang.Object
-
- java.util.EventObject
-
- javax.naming.ldap.UnsolicitedNotificationEvent
-
- 实现的所有接口
-
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
-
-
字段汇总
-
声明的属性在类 java.util.EventObject
source
-
-
构造方法摘要
构造方法 构造器 描述 UnsolicitedNotificationEvent(Object src, UnsolicitedNotification notice)构造UnsolicitedNotificationEvent的新实例。
-
方法摘要
所有方法 实例方法 具体的方法 变量和类型 方法 描述 voiddispatch(UnsolicitedNotificationListener listener)使用此事件在侦听器上调用notificationReceived()方法。UnsolicitedNotificationgetNotification()返回未经请求的通知。-
声明方法的类 java.util.EventObject
getSource, toString
-
-
-
-
构造方法详细信息
-
UnsolicitedNotificationEvent
public UnsolicitedNotificationEvent(Object src, UnsolicitedNotification notice)
构造UnsolicitedNotificationEvent的新实例。- 参数
-
src- 触发事件的非null源。 -
notice- 非null未经请求的通知。
-
-
方法详细信息
-
getNotification
public UnsolicitedNotification getNotification()
返回未经请求的通知。- 结果
- 导致此事件被触发的非null未经请求的通知。
-
dispatch
public void dispatch(UnsolicitedNotificationListener listener)
使用此事件在侦听器上调用notificationReceived()方法。- 参数
-
listener- 要在其上调用notificationReceived的非null侦听notificationReceived。
-
-