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.
- See Also:
Server.getPassword()
getPort
public int getPort()
- Specified by:
getPort
in interface Server
- Returns:
- Returns the port.
- See Also:
Server.getPort()
getHostName
public String getHostName()
- Specified by:
getHostName
in interface Server
- Returns:
- Returns the server.
- See Also:
Server.getHostName()
getUsername
public String getUsername()
- Specified by:
getUsername
in interface Server
- Returns:
- Returns the username.
- See Also:
Server.getUsername()
hasAuthentication
public boolean hasAuthentication()
- Specified by:
hasAuthentication
in interface Server
- Returns:
- if has a authenatication or not
- See Also:
Server.hasAuthentication()
toString
public String toString()
- Overrides:
toString
in class Object
- See Also:
Object.toString()
cloneReadOnly
public Server cloneReadOnly()
- Specified by:
cloneReadOnly
in interface Server
- Returns:
- clone the DataSource as ReadOnly
- See Also:
Server.cloneReadOnly()
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnly
in interface Server
- Returns:
- Returns the readOnly.
- See Also:
Server.isReadOnly()
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
- See Also:
Server.verify()
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