- java.lang.Object
- 
- jakarta.mail.event.ConnectionAdapter
 
- 
- All Implemented Interfaces:
- ConnectionListener,- java.util.EventListener
 
 public abstract class ConnectionAdapter extends java.lang.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 SummaryConstructors Constructor Description ConnectionAdapter()Creates a defaultConnectionAdapter.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclosed(ConnectionEvent e)Invoked when a Store/Folder/Transport is closed.voiddisconnected(ConnectionEvent e)Invoked when a Store is disconnected.voidopened(ConnectionEvent e)Invoked when a Store/Folder/Transport is opened.
 
- 
- 
- 
Method Detail- 
openedpublic void opened(ConnectionEvent e) Description copied from interface:ConnectionListenerInvoked when a Store/Folder/Transport is opened.- Specified by:
- openedin interface- ConnectionListener
- Parameters:
- e- the ConnectionEvent
 
 - 
disconnectedpublic void disconnected(ConnectionEvent e) Description copied from interface:ConnectionListenerInvoked when a Store is disconnected. Note that a folder cannot be disconnected, so a folder will not fire this event- Specified by:
- disconnectedin interface- ConnectionListener
- Parameters:
- e- the ConnectionEvent
 
 - 
closedpublic void closed(ConnectionEvent e) Description copied from interface:ConnectionListenerInvoked when a Store/Folder/Transport is closed.- Specified by:
- closedin interface- ConnectionListener
- Parameters:
- e- the ConnectionEvent
 
 
- 
 
-