⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
javax.mail.event

Class ConnectionEvent

EventObject
|
+--javax.mail.event.MailEvent
   |
   +--javax.mail.event.ConnectionEvent


public class ConnectionEvent
extends MailEvent

This class models Connection events.
Author:

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.

int

type

The event type.

Constructor Summary

ConnectionEvent(Object source, int type)

Constructor

Method Summary

void

dispatch(Object listener)

Invokes the appropriate ConnectionListener method

int

getType()

Return the type of this event

Field Details

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 Details

ConnectionEvent

public ConnectionEvent(Object source, int type)

Constructor

Parameters:
source - The source object
type

Method Details

dispatch

public void dispatch(Object listener)

Invokes the appropriate ConnectionListener method

Parameters:
listener

getType

public int getType()

Return the type of this event