Name
Service
Synopsis
An abstract class that defines functionality common to all messaging services, including message stores and
message transports. Service
objects are retrieved, when necessary, from the
Session
object.
public abstract class Service { // Protected Constructors protected Service(javax.mail.Session session, URLName urlname); // Event Registration Methods (by event name) public void addConnectionListener( // synchronized javax.mail.event.ConnectionListener l); public void removeConnectionListener( // synchronized javax.mail.event.ConnectionListener l); // Public Instance Methods public void close() throws MessagingException; // synchronized public void connect() throws MessagingException; public void connect(String host, String user, String password) throws MessagingException; public void connect(String host, int port, String user, String password) throws MessagingException; public URLName getURLName(); public boolean isConnected(); // Public Methods Overriding Object public String toString(); // Protected Methods Overriding Object protected void finalize() throws Throwable; // Protected Instance Methods protected void notifyConnectionListeners( int type); protected boolean protocolConnect(String host, int port, // constant String user, String password) throws MessagingException; protected void queueEvent(javax.mail.event.MailEvent event, java.util.Vector vector); protected void setConnected( boolean connected); protected void setURLName( URLName url); // Protected ...
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.