public static class MailServer.Builder
extends java.lang.Object
MailServer.ImapServer,
ImapSslServer,
Pop3Server,
Pop3SslServer,
SmtpServer,
SmtpSslServer| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
MailServer.Builder |
auth(javax.mail.Authenticator authenticator)
Sets the authenticator.
|
MailServer.Builder |
auth(java.lang.String username,
java.lang.String password)
Sets authenticator as
SimpleAuthenticator using username and password. |
ImapServer |
buildImapMailServer()
Create a
ImapServer from current data. |
Pop3Server |
buildPop3MailServer()
Create a
Pop3Server from current data. |
SmtpServer |
buildSmtpMailServer()
Create a
SmtpServer from current data. |
MailServer.Builder |
host(java.lang.String host)
Sets the host.
|
MailServer.Builder |
port(int port)
Sets the port.
|
MailServer.Builder |
ssl(boolean ssl)
Sets the SSL implementation of the Mail server.
|
public MailServer.Builder host(java.lang.String host)
host - The host to set.public MailServer.Builder port(int port)
port - The port to set.public MailServer.Builder ssl(boolean ssl)
ssl - SSL flagpublic MailServer.Builder auth(java.lang.String username, java.lang.String password)
SimpleAuthenticator using username and password.username - The username to use.password - The password to use.public MailServer.Builder auth(javax.mail.Authenticator authenticator)
authenticator - Authenticator to set.public ImapServer buildImapMailServer()
ImapServer from current data.ImapServer from current data.public Pop3Server buildPop3MailServer()
Pop3Server from current data.Pop3Server from current data.public SmtpServer buildSmtpMailServer()
SmtpServer from current data.SmtpServer from current data.Copyright © 2003-present Jodd Team