Package jakarta.mail.event
Class ConnectionAdapter
- java.lang.Object
-
- jakarta.mail.event.ConnectionAdapter
-
- All Implemented Interfaces:
ConnectionListener
,EventListener
public abstract class ConnectionAdapter extends Object implements ConnectionListener
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
Constructors Constructor Description ConnectionAdapter()
Creates a defaultConnectionAdapter
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closed(ConnectionEvent e)
Invoked when a Store/Folder/Transport is closed.void
disconnected(ConnectionEvent e)
Invoked when a Store is disconnected.void
opened(ConnectionEvent e)
Invoked when a Store/Folder/Transport is opened.
-
-
-
Method Detail
-
opened
public void opened(ConnectionEvent e)
Description copied from interface:ConnectionListener
Invoked when a Store/Folder/Transport is opened.- Specified by:
opened
in interfaceConnectionListener
- Parameters:
e
- the ConnectionEvent
-
disconnected
public void disconnected(ConnectionEvent e)
Description copied from interface:ConnectionListener
Invoked when a Store is disconnected. Note that a folder cannot be disconnected, so a folder will not fire this event- Specified by:
disconnected
in interfaceConnectionListener
- Parameters:
e
- the ConnectionEvent
-
closed
public void closed(ConnectionEvent e)
Description copied from interface:ConnectionListener
Invoked when a Store/Folder/Transport is closed.- Specified by:
closed
in interfaceConnectionListener
- Parameters:
e
- the ConnectionEvent
-
-