javax.mail.event
Class ConnectionEvent
public class ConnectionEvent
This class models Connection events.
static int | CLOSED - A connection was closed.
|
static int | DISCONNECTED - A connection was disconnected(not currently used).
|
static int | OPENED - A connection was opened.
|
protected int | type - The event type.
|
void | dispatch(Object listener) - Invokes the appropriate ConnectionListener method
|
int | getType() - Return the type of this event
|
CLOSED
public static final int CLOSED
A connection was closed.
- 3
DISCONNECTED
public static final int DISCONNECTED
A connection was disconnected(not currently used).
- 2
OPENED
public static final int OPENED
A connection was opened.
- 1
type
protected int type
The event type.
ConnectionEvent
public ConnectionEvent(Object source,
int type)
Constructor
source
- The source object
dispatch
public void dispatch(Object listener)
Invokes the appropriate ConnectionListener method
- dispatch in interface MailEvent
getType
public int getType()
Return the type of this event