-
- All Superinterfaces:
-
EventListener,NamingListener
public interface UnsolicitedNotificationListener extends NamingListener
此接口用于处理UnsolicitedNotificationEvent。 “非请求通知”在RFC 2251中定义。 它允许服务器向客户端发送未经请求的通知。 一个UnsolicitedNotificationListener必须:- 实现这个接口及其方法
- 实现
NamingListener.namingExceptionThrown()以便在尝试收集未经请求的通知事件时,会收到异常抛出的通知。 - 使用
EventContext或EventDirContext中的addNamingListener()方法之一注册上下文。 只有这些方法的NamingListener论证是适用的; 其余的将被忽略为UnsolicitedNotificationListener。 (如果实现其他监听器接口,这些参数可能适用于侦听器)。
- 从以下版本开始:
- 1.3
- 另请参见:
-
UnsolicitedNotificationEvent,UnsolicitedNotification,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)
-
-
方法摘要
所有方法 接口方法 抽象方法 Modifier and Type 方法 描述 voidnotificationReceived(UnsolicitedNotificationEvent evt)收到未经请求的通知后发出。-
Methods inherited from interface javax.naming.event.NamingListener
namingExceptionThrown
-
-
-
-
方法详细信息
-
notificationReceived
void notificationReceived(UnsolicitedNotificationEvent evt)
收到未经请求的通知后发出。- 参数
-
evt- The non-null UnsolicitedNotificationEvent
-
-