javax.mail.event
Class ConnectionEvent
public class ConnectionEvent
A connection event.
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 listener method.
|
int | getType() - Returns the type of this event.
|
CLOSED
public static final int CLOSED
A connection was closed.
DISCONNECTED
public static final int DISCONNECTED
A connection was disconnected (not currently used).
OPENED
public static final int OPENED
A connection was opened.
type
protected int type
The event type.
ConnectionEvent
public ConnectionEvent(Object source,
int type)
Constructor.
source
- the sourcetype
- one of OPENED, DISCONNECTED, or CLOSED
dispatch
public void dispatch(Object listener)
Invokes the appropriate listener method.
- dispatch in interface MailEvent
getType
public int getType()
Returns the type of this event.
© Copyright 2003, 2004
The Free Software Foundation, All rights reserved