public class ServerConfiguration
extends java.lang.Object
| Constructor and Description |
|---|
ServerConfiguration()
Handles command line arguments.
|
| Modifier and Type | Method and Description |
|---|---|
ServerConfiguration |
auth(Authentication authentication)
Defines the authentication.
|
ServerConfiguration |
bind(java.lang.String bindAddress)
Sets the bind address.
|
ServerConfiguration |
charset(java.lang.String storageCharset)
Sets the storage charset name.
|
static ServerConfiguration |
create()
Creates the server configuration.
|
Authentication |
getAuthentication()
Gets the authentication.
|
java.lang.String |
getBindAddress()
Gets the bind address.
|
java.lang.String |
getPort()
Gets the port.
|
java.util.List<java.lang.String> |
getRelayDomains()
Gets the relay domains.
|
java.nio.charset.Charset |
getStorageCharset()
Gets the storage charset to store the mails.
|
java.lang.String |
getStorageCharSetName()
Gets the charset used to store the mails.
|
ServerConfiguration |
password(java.lang.String password)
Defines the user name for the authentication.
|
ServerConfiguration |
port(int port)
Defines the server's port.
|
ServerConfiguration |
port(java.lang.String port)
Sets the port.
|
ServerConfiguration |
relayDomains(java.lang.String... domains)
Defines the relay domains. for this SMTP Server
|
ServerConfiguration |
relayDomainsList(java.util.List<java.lang.String> relayDomains)
Sets the relay domains.
|
java.lang.String |
toString() |
ServerConfiguration |
userName(java.lang.String userName)
Defines the user name for the authentication.
|
public static ServerConfiguration create()
public ServerConfiguration auth(Authentication authentication)
authentication - the authenticationpublic ServerConfiguration bind(java.lang.String bindAddress)
bindAddress - the new bind addresspublic ServerConfiguration charset(java.lang.String storageCharset)
storageCharset - the new storage charset namepublic Authentication getAuthentication()
public java.lang.String getBindAddress()
null
string if unspecified.public java.lang.String getPort()
null string if
unspecified.public java.util.List<java.lang.String> getRelayDomains()
public java.nio.charset.Charset getStorageCharset()
public java.lang.String getStorageCharSetName()
public ServerConfiguration password(java.lang.String password)
password - the passwordpublic ServerConfiguration port(int port)
port - the portpublic ServerConfiguration port(java.lang.String port)
port - the new portpublic ServerConfiguration relayDomains(java.lang.String... domains)
domains - a list of relay domainspublic ServerConfiguration relayDomainsList(java.util.List<java.lang.String> relayDomains)
relayDomains - the relay domainspublic java.lang.String toString()
toString in class java.lang.Objectpublic ServerConfiguration userName(java.lang.String userName)
userName - the user name