java.lang.Object | +--java.util.EventObject | +--javax.mail.event.MailEvent | +--javax.mail.event.ConnectionEvent
This class models Connection events.
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 |
public static final intOPENED
public static final intDISCONNECTED
public static final intCLOSED
protected inttype
publicConnectionEvent(java.lang.Object source, int type)
source
- The source objectpublic intgetType()
public voiddispatch(java.lang.Object listener)
dispatch
in classMailEvent