javax.mail.event

Class ConnectionEvent

public class ConnectionEvent extends MailEvent

A connection event.

Version: 1.3

Author: Chris Burdess

Field Summary
static intCLOSED
A connection was closed.
static intDISCONNECTED
A connection was disconnected (not currently used).
static intOPENED
A connection was opened.
protected inttype
The event type.
Constructor Summary
ConnectionEvent(Object source, int type)
Constructor.
Method Summary
voiddispatch(Object listener)
Invokes the appropriate listener method.
intgetType()
Returns the type of this event.

Field Detail

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.

Constructor Detail

ConnectionEvent

public ConnectionEvent(Object source, int type)
Constructor.

Parameters: source the source type one of OPENED, DISCONNECTED, or CLOSED

Method Detail

dispatch

public void dispatch(Object listener)
Invokes the appropriate listener method.

getType

public int getType()
Returns the type of this event.
© Copyright 2003, 2004 The Free Software Foundation, All rights reserved