Package jakarta.mail.event
Class TransportAdapter
java.lang.Object
jakarta.mail.event.TransportAdapter
- All Implemented Interfaces:
TransportListener
,EventListener
The adapter which receives Transport 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Invoked when a Message is succesfully delivered.void
Invoked when a Message is not delivered.void
Invoked when a Message is partially delivered.
-
Constructor Details
-
TransportAdapter
public TransportAdapter()Creates a defaultTransportAdapter
.
-
-
Method Details
-
messageDelivered
Description copied from interface:TransportListener
Invoked when a Message is succesfully delivered.- Specified by:
messageDelivered
in interfaceTransportListener
- Parameters:
e
- TransportEvent
-
messageNotDelivered
Description copied from interface:TransportListener
Invoked when a Message is not delivered.- Specified by:
messageNotDelivered
in interfaceTransportListener
- Parameters:
e
- TransportEvent- See Also:
-
messagePartiallyDelivered
Description copied from interface:TransportListener
Invoked when a Message is partially delivered.- Specified by:
messagePartiallyDelivered
in interfaceTransportListener
- Parameters:
e
- TransportEvent- See Also:
-