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 void
addConnectionListener(ConnectionListener connectionListener)
void
close()
void
connect()
void
connect(java.lang.String host, int port, java.lang.String user, java.lang.String password)
void
connect(java.lang.String host, java.lang.String user, java.lang.String password)
URLName
getURLName()
boolean
isConnected()
void
removeConnectionListener(ConnectionListener connectionListener)
java.lang.String
toString()
-
-
-
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:
isConnected
in interfaceService
-
close
public void close() throws MessagingException
-
getURLName
public URLName getURLName()
- Specified by:
getURLName
in interfaceService
-
addConnectionListener
public void addConnectionListener(ConnectionListener connectionListener)
- Specified by:
addConnectionListener
in interfaceService
-
removeConnectionListener
public void removeConnectionListener(ConnectionListener connectionListener)
- Specified by:
removeConnectionListener
in interfaceService
-
-