Package alt.javax.mail
Class ServiceImpl
- java.lang.Object
-
- alt.javax.mail.ServiceImpl
-
- All Implemented Interfaces:
Service
- Direct Known Subclasses:
TransportImpl
public class ServiceImpl extends java.lang.Object implements Service
-
-
Constructor Summary
Constructors Constructor Description ServiceImpl(javax.mail.Service service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConnectionListener(ConnectionListener connectionListener)voidclose()voidconnect()voidconnect(java.lang.String host, int port, java.lang.String user, java.lang.String password)voidconnect(java.lang.String host, java.lang.String user, java.lang.String password)URLNamegetURLName()booleanisConnected()voidremoveConnectionListener(ConnectionListener connectionListener)java.lang.StringtoString()
-
-
-
Method Detail
-
connect
public void connect() throws MessagingException
-
connect
public void connect(java.lang.String host, java.lang.String user, java.lang.String password) throws MessagingException
-
connect
public void connect(java.lang.String host, int port, java.lang.String user, java.lang.String password) throws MessagingException
-
isConnected
public boolean isConnected()
- Specified by:
isConnectedin interfaceService
-
close
public void close() throws MessagingException
-
getURLName
public URLName getURLName()
- Specified by:
getURLNamein interfaceService
-
addConnectionListener
public void addConnectionListener(ConnectionListener connectionListener)
- Specified by:
addConnectionListenerin interfaceService
-
removeConnectionListener
public void removeConnectionListener(ConnectionListener connectionListener)
- Specified by:
removeConnectionListenerin interfaceService
-
-