public class

ConnectionEvent

extends MailEvent
java.lang.Object
   ↳ java.util.EventObject
     ↳ com.google.code.javax.mail.event.MailEvent
       ↳ com.google.code.javax.mail.event.ConnectionEvent

Class Overview

This class models Connection events.

Summary

Constants
int CLOSED A connection was closed.
int DISCONNECTED A connection was disconnected (not currently used).
int OPENED A connection was opened.
long serialVersionUID
[Expand]
Inherited Constants
From class com.google.code.javax.mail.event.MailEvent
From class java.util.EventObject
Fields
protected int type The event type.
[Expand]
Inherited Fields
From class java.util.EventObject
Public Constructors
ConnectionEvent(Object source, int type)
Constructor
Public Methods
void dispatch(Object listener)
Invokes the appropriate ConnectionListener method
int getType()
Return the type of this event
[Expand]
Inherited Methods
From class com.google.code.javax.mail.event.MailEvent
From class java.util.EventObject
From class java.lang.Object

Constants

public static final int CLOSED

A connection was closed.

Constant Value: 3 (0x00000003)

public static final int DISCONNECTED

A connection was disconnected (not currently used).

Constant Value: 2 (0x00000002)

public static final int OPENED

A connection was opened.

Constant Value: 1 (0x00000001)

private static final long serialVersionUID

Constant Value: -1855480171284792957 (0xe640029d6ec9f983)

Fields

protected int type

The event type.

Public Constructors

public ConnectionEvent (Object source, int type)

Constructor

Parameters
source The source object
type

Public Methods

public void dispatch (Object listener)

Invokes the appropriate ConnectionListener method

Parameters
listener

public int getType ()

Return the type of this event

Returns
  • type