Top Description Constructors Methods
javax.mail.event

public abstract Class ConnectionAdapter

extends Object
implements ConnectionListener
Class Inheritance
All Implemented Interfaces
javax.mail.event.ConnectionListener, java.util.EventListener

The adapter which receives connection events. The methods in this class are empty; this class is provided as a convenience for easily creating listeners by extending this class and overriding only the methods of interest.
Author
John Mani

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
closed(ConnectionEvent
the ConnectionEvent
e
)

Implements javax.mail.event.ConnectionListener.closed.

Invoked when a Store/Folder/Transport is closed.
public void
disconnected(ConnectionEvent
the ConnectionEvent
e
)

Implements javax.mail.event.ConnectionListener.disconnected.

Invoked when a Store is disconnected.
public void
opened(ConnectionEvent
the ConnectionEvent
e
)

Implements javax.mail.event.ConnectionListener.opened.

Invoked when a Store/Folder/Transport is opened.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ConnectionAdapterback to summary
public ConnectionAdapter()

Method Detail

closedback to summary
public void closed(ConnectionEvent e)

Implements javax.mail.event.ConnectionListener.closed.

Doc from javax.mail.event.ConnectionListener.closed.

Invoked when a Store/Folder/Transport is closed.

Parameters
e:ConnectionEvent

the ConnectionEvent

Annotations
@Override
disconnectedback to summary
public void disconnected(ConnectionEvent e)

Implements javax.mail.event.ConnectionListener.disconnected.

Doc from javax.mail.event.ConnectionListener.disconnected.

Invoked when a Store is disconnected. Note that a folder cannot be disconnected, so a folder will not fire this event

Parameters
e:ConnectionEvent

the ConnectionEvent

Annotations
@Override
openedback to summary
public void opened(ConnectionEvent e)

Implements javax.mail.event.ConnectionListener.opened.

Doc from javax.mail.event.ConnectionListener.opened.

Invoked when a Store/Folder/Transport is opened.

Parameters
e:ConnectionEvent

the ConnectionEvent

Annotations
@Override