モジュール java.naming
パッケージ javax.naming.ldap

インタフェースUnsolicitedNotificationListener

すべてのスーパー・インタフェース:
EventListener, NamingListener

public interface UnsolicitedNotificationListener extends NamingListener
このインタフェースは、UnsolicitedNotificationEventを処理するためのものです。 「非要請通知」はRFC 2251で定義されています。 このインタフェースによって、サーバーは非要請通知をクライアントに送信できます。 UnsolicitedNotificationListenerは次の条件を満たす必要があります:
  1. このインタフェースおよびメソッドを実装する。
  2. 非要請通知イベントを収集しようとする間にスローされた例外が通知されるように、NamingListener.namingExceptionThrown()を実装する。
  3. EventContextまたはEventDirContextaddNamingListener()メソッドの1つを使用して、コンテキストに登録する。 これらのメソッドのNamingListener引数のみが適用可能です。残りはUnsolicitedNotificationListenerでは無視されます。 (これらの引数は、リスナーが他のリスナー・インタフェースを実装しているときにはリスナーに適用される場合がある)。
導入されたバージョン:
1.3
関連項目:
  • メソッドの詳細

    • notificationReceived

      void notificationReceived(UnsolicitedNotificationEvent evt)
      非要請通知が受信されている場合に呼び出されます。
      パラメータ:
      evt - null以外のUnsolicitedNotificationEvent