| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public class ConnectionEvent extends MailEvent
This class models Connection events.
Field Summary | |
---|---|
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. |
Constructor Summary | |
---|---|
ConnectionEvent(Object source, int type) Constructor |
Method Summary | |
---|---|
void |
Invokes the appropriate ConnectionListener method |
int |
getType() Return the type of this event |
Methods inherited from class javax.mail.event.MailEvent |
---|
dispatch |
Field Detail |
---|
public static final int CLOSED
public static final int DISCONNECTED
public static final int OPENED
protected int type
Constructor Detail |
---|
public ConnectionEvent(Object source, int type)
source
- The source objecttype
Method Detail |
---|
public void dispatch(Object listener)
dispatch
in class MailEvent
listener
public int getType()
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |