public class ServerConfig extends Object
| Constructor and Description |
|---|
ServerConfig()
No-arg constructor short-cut.
|
ServerConfig(String host,
Integer port)
'Anonymous smtp' constructor short-cut.
|
ServerConfig(String host,
Integer port,
String username)
'Non-authenticated smtp' constructor short-cut.
|
ServerConfig(String host,
Integer port,
String username,
String password)
Main constructor, overrides any relevant values that may have been provided in config file.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHost() |
String |
getPassword() |
Integer |
getPort() |
String |
getUsername() |
String |
toString() |
public ServerConfig()
public ServerConfig(String host, Integer port)
host - The address URL of the SMTP server to be used.port - The port of the SMTP server.ServerConfig(String, Integer, String, String)public ServerConfig(String host, Integer port, String username)
host - The address URL of the SMTP server to be used.port - The port of the SMTP server.username - An optional username, may be null.ServerConfig(String, Integer, String, String)public ServerConfig(String host, Integer port, String username, String password)
host - The address URL of the SMTP server to be used.port - The port of the SMTP server.username - An optional username, may be null.password - An optional password, may be null.Copyright © 2017. All rights reserved.