public final class ServerImpl extends Object implements Server
DEFAULT_PORT
Constructor and Description |
---|
ServerImpl(String hostName,
int port,
String username,
String password,
long lifeTimespan,
long idleTimespan,
boolean tls,
boolean ssl,
boolean reuseConnections) |
Modifier and Type | Method and Description |
---|---|
Server |
cloneReadOnly() |
String |
getHostName() |
long |
getIdleTimeSpan() |
static ServerImpl |
getInstance(String host,
int defaultPort,
String defaultUsername,
String defaultPassword,
long defaultLifeTimespan,
long defaultIdleTimespan,
boolean defaultTls,
boolean defaultSsl) |
long |
getLifeTimeSpan() |
String |
getPassword() |
int |
getPort() |
String |
getUsername() |
boolean |
hasAuthentication() |
boolean |
isReadOnly() |
boolean |
isSSL() |
boolean |
isTLS() |
boolean |
reuseConnections() |
void |
setSSL(boolean ssl) |
void |
setTLS(boolean tls) |
String |
toString() |
boolean |
verify()
verify the server properties
|
public ServerImpl(String hostName, int port, String username, String password, long lifeTimespan, long idleTimespan, boolean tls, boolean ssl, boolean reuseConnections)
public static ServerImpl getInstance(String host, int defaultPort, String defaultUsername, String defaultPassword, long defaultLifeTimespan, long defaultIdleTimespan, boolean defaultTls, boolean defaultSsl) throws MailException
MailException
public String getPassword()
getPassword
in interface Server
public String getHostName()
getHostName
in interface Server
public String getUsername()
getUsername
in interface Server
public boolean hasAuthentication()
hasAuthentication
in interface Server
public Server cloneReadOnly()
cloneReadOnly
in interface Server
public boolean isReadOnly()
isReadOnly
in interface Server
public boolean verify() throws SMTPException
Server
verify
in interface Server
SMTPException
public void setSSL(boolean ssl)
public void setTLS(boolean tls)
public boolean reuseConnections()
public long getLifeTimeSpan()
public long getIdleTimeSpan()
Copyright © 2015 Lucee