Top Description Constructors Methods
jakarta.mail.event

public abstract Class ConnectionAdapter

extends Object
implements ConnectionListener
Class Inheritance
All Implemented Interfaces
jakarta.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
ConnectionAdapter()

Creates a default ConnectionAdapter.

Method Summary

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

Implements jakarta.mail.event.ConnectionListener.closed.

Invoked when a Store/Folder/Transport is closed.

public void
disconnected(ConnectionEvent
the ConnectionEvent
e
)

Implements jakarta.mail.event.ConnectionListener.disconnected.

Invoked when a Store is disconnected.

public void
opened(ConnectionEvent
the ConnectionEvent
e
)

Implements jakarta.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()

Creates a default ConnectionAdapter.

Method Detail

closedback to summary
public void closed(ConnectionEvent e)

Implements jakarta.mail.event.ConnectionListener.closed.

Doc from jakarta.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 jakarta.mail.event.ConnectionListener.disconnected.

Doc from jakarta.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 jakarta.mail.event.ConnectionListener.opened.

Doc from jakarta.mail.event.ConnectionListener.opened.

Invoked when a Store/Folder/Transport is opened.

Parameters
e:ConnectionEvent

the ConnectionEvent

Annotations
@Override