railo.runtime.net.mail
Class ServerImpl
java.lang.Object
railo.runtime.net.mail.ServerImpl
- All Implemented Interfaces:
- Server
public final class ServerImpl
- extends Object
- implements Server
ServerImpl
public ServerImpl(String hostName,
int port,
String username,
String password,
boolean tls,
boolean ssl)
getInstance
public static ServerImpl getInstance(String host,
int defaultPort,
String defaultUsername,
String defaultPassword,
boolean defaultTls,
boolean defaultSsl)
throws MailException
- Throws:
MailException
getPassword
public String getPassword()
- Specified by:
getPassword
in interface Server
- Returns:
- Returns the password.
getPort
public int getPort()
- Specified by:
getPort
in interface Server
- Returns:
- Returns the port.
getHostName
public String getHostName()
- Specified by:
getHostName
in interface Server
- Returns:
- Returns the server.
getUsername
public String getUsername()
- Specified by:
getUsername
in interface Server
- Returns:
- Returns the username.
hasAuthentication
public boolean hasAuthentication()
- Specified by:
hasAuthentication
in interface Server
- Returns:
- if has a authenatication or not
toString
public String toString()
- Overrides:
toString
in class Object
cloneReadOnly
public Server cloneReadOnly()
- Specified by:
cloneReadOnly
in interface Server
- Returns:
- clone the DataSource as ReadOnly
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnly
in interface Server
- Returns:
- Returns the readOnly.
verify
public boolean verify()
throws SMTPException
- Description copied from interface:
Server
- verify the server properties
- Specified by:
verify
in interface Server
- Returns:
- is ok
- Throws:
SMTPException
isTLS
public boolean isTLS()
- Specified by:
isTLS
in interface Server
- Returns:
- is tls
isSSL
public boolean isSSL()
- Specified by:
isSSL
in interface Server
- Returns:
- is ssl
setSSL
public void setSSL(boolean ssl)
setTLS
public void setTLS(boolean tls)
Copyright © 2012 Railo