-
- すべてのスーパー・インタフェース:
EventListener,NamingListener
public interface UnsolicitedNotificationListener extends NamingListener
このインタフェースは、UnsolicitedNotificationEventを処理するためのものです。 非要請通知はRFC 2251で定義されています。 このインタフェースによって、サーバーは非要請通知をクライアントに送信できます。UnsolicitedNotificationListenerは次の条件を満たす必要があります:- このインタフェースおよびメソッドを実装する。
- 非要請通知イベントを収集しようとする間にスローされた例外が通知されるように、
NamingListener.namingExceptionThrown()を実装する。 EventContextまたはEventDirContextのaddNamingListener()メソッドの1つを使用して、コンテキストに登録する。 これらのメソッドの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)
-
-
メソッドのサマリー
すべてのメソッド インスタンス・メソッド 抽象メソッド 修飾子と型 メソッド 説明 voidnotificationReceived(UnsolicitedNotificationEvent evt)非要請通知が受信されている場合に呼び出されます。-
インタフェース javax.naming.event.NamingListenerで宣言されたメソッド
namingExceptionThrown
-
-
-
-
メソッドの詳細
-
notificationReceived
void notificationReceived(UnsolicitedNotificationEvent evt)
非要請通知が受信されている場合に呼び出されます。- パラメータ:
evt- null以外のUnsolicitedNotificationEvent
-
-