Movatterモバイル変換


[0]ホーム

URL:


         


Class ConnectionEvent

java.lang.Object  |  +--java.util.EventObject        |        +--javax.mail.event.MailEvent              |              +--javax.mail.event.ConnectionEvent
All Implemented Interfaces:
java.io.Serializable

public classConnectionEvent
extendsMailEvent

This class models Connection events.

See Also:
Serialized Form

CLOSED
          A connection was closed.
DISCONNECTED
          A connection was disconnected (not currently used).
OPENED
          A connection was opened.
type
          The event type.
 
Fields inherited from class java.util.EventObject
source
 
ConnectionEvent(java.lang.Object source, int type)
          Constructor
 
dispatch(java.lang.Object listener)
          Invokes the appropriate ConnectionListener method
getType()
          Return the type of this event
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

OPENED

public static final intOPENED
A connection was opened.

DISCONNECTED

public static final intDISCONNECTED
A connection was disconnected (not currently used).

CLOSED

public static final intCLOSED
A connection was closed.

type

protected inttype
The event type.

ConnectionEvent

publicConnectionEvent(java.lang.Object source,                       int type)
Constructor
Parameters:
source - The source object

getType

public intgetType()
Return the type of this event
Returns:
type

dispatch

public voiddispatch(java.lang.Object listener)
Invokes the appropriate ConnectionListener method
Overrides:
dispatch in classMailEvent

         


[8]ページ先頭

©2009-2025 Movatter.jp