-
- すべてのスーパー・インタフェース:
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)
-
-
メソッドのサマリー
すべてのメソッド インスタンス・メソッド 抽象メソッド 修飾子と型 メソッド 説明 void
notificationReceived(UnsolicitedNotificationEvent evt)
非要請通知が受信されている場合に呼び出されます。-
インタフェース javax.naming.event.NamingListenerから継承されたメソッド
namingExceptionThrown
-
-
-
-
メソッドの詳細
-
notificationReceived
void notificationReceived(UnsolicitedNotificationEvent evt)
非要請通知が受信されている場合に呼び出されます。- パラメータ:
evt
- null以外のUnsolicitedNotificationEvent
-
-