javax.naming.ldap
类 UnsolicitedNotificationEvent
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),
序列化表格
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 侦听器。