|
void
|
addConnectionListener(ConnectionListener l)
Add a listener for Connection events on this service.
|
|
synchronized
void
|
close()
Close this service and terminate its connection.
|
|
synchronized
void
|
connect(String host, int port, String user, String password)
Similar to connect(host, user, password) except a specific port
can be specified.
|
|
void
|
connect()
A generic connect method that takes no parameters.
|
|
void
|
connect(String host, String user, String password)
Connect to the specified address.
|
|
void
|
connect(String user, String password)
Connect to the current host using the specified username
and password.
|
|
void
|
finalize()
Stop the event dispatcher thread so the queue can be garbage collected.
|
|
synchronized
URLName
|
getURLName()
Return a URLName representing this service.
|
|
synchronized
boolean
|
isConnected()
Is this service currently connected?
This implementation uses a private boolean field to
store the connection state.
|
|
void
|
notifyConnectionListeners(int type)
Notify all ConnectionListeners.
|
|
boolean
|
protocolConnect(String host, int port, String user, String password)
The service implementation should override this method to
perform the actual protocol-specific connection attempt.
|
|
void
|
queueEvent(MailEvent event, Vector vector)
Add the event and vector of listeners to the queue to be delivered.
|
|
void
|
removeConnectionListener(ConnectionListener l)
Remove a Connection event listener.
|
|
synchronized
void
|
setConnected(boolean connected)
Set the connection state of this service.
|
|
synchronized
void
|
setURLName(URLName url)
Set the URLName representing this service.
|
|
String
|
toString()
Return getURLName.toString() if this service has a URLName,
otherwise it will return the default toString.
|