Module jakarta.mail
Package jakarta.mail

Class Service

java.lang.Object
jakarta.mail.Service
All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
Store, Transport

public abstract class Service extends Object implements AutoCloseable
An abstract class that contains the functionality common to messaging services, such as stores and transports.

A messaging service is created from a Session and is named using a URLName. A service must be connected before it can be used. Connection events are sent to reflect its connection status.