Package javax.mail.event
Class ConnectionAdapter
java.lang.Object
javax.mail.event.ConnectionAdapter
- All Implemented Interfaces:
EventListener
,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.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Invoked when a Store/Folder/Transport is closed.void
Invoked when a Store is disconnected.void
Invoked when a Store/Folder/Transport is opened.
-
Constructor Details
-
ConnectionAdapter
public ConnectionAdapter()
-
-
Method Details
-
opened
Description copied from interface:ConnectionListener
Invoked when a Store/Folder/Transport is opened.- Specified by:
opened
in interfaceConnectionListener
-
disconnected
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
-
closed
Description copied from interface:ConnectionListener
Invoked when a Store/Folder/Transport is closed.- Specified by:
closed
in interfaceConnectionListener
-