パッケージ jakarta.mail.event

クラス ConnectionEvent

実装されたすべてのインターフェース:
SerializableSE

public class ConnectionEvent extends MailEvent
このクラスは、接続イベントをモデル化します。
作成者:
John Mani
関連事項:
  • フィールドのサマリー

    フィールド
    修飾子と型
    フィールド
    説明
    static final int
    接続が閉じられました。
    static final int
    接続が切断されました(現在は使用されていません)。
    static final int
    接続が開かれました。
    protected int
    イベント型。

    クラス java.util.EventObjectSE から継承されたフィールド

    sourceSE
  • コンストラクターの概要

    コンストラクター
    コンストラクター
    説明
    ConnectionEvent(ObjectSE source, int type)
    ConnectionEvent を作成します。
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    void
    dispatch(ObjectSE listener)
    適切な ConnectionListener メソッドを呼び出します
    int
    このイベントの型を返します

    クラス java.util.EventObjectSE から継承されたメソッド

    getSource, toString

    クラス java.lang.ObjectSE から継承されたメソッド

    clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSE
  • フィールドの詳細

    • OPENED

      public static final int OPENED
      接続が開かれました。
      関連事項:
    • DISCONNECTED

      public static final int DISCONNECTED
      接続が切断されました(現在は使用されていません)。
      関連事項:
    • CLOSED

      public static final int CLOSED
      接続が閉じられました。
      関連事項:
    • type

      protected int type
      イベント型。
  • コンストラクターの詳細

    • ConnectionEvent

      public ConnectionEvent(ObjectSE source, int type)
      ConnectionEvent を作成します。
      パラメーター:
      source - ソースオブジェクト
      type - イベント型
  • メソッドの詳細

    • getType

      public int getType()
      このイベントの型を返します
      戻り値:
    • dispatch

      public void dispatch(ObjectSE listener)
      適切な ConnectionListener メソッドを呼び出します
      次で指定:
      クラス MailEventdispatch 
      パラメーター:
      listener - 呼び出すリスナー