public abstract class MailServer<MailSessionImpl extends jodd.mail.MailSession>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MailServer.Builder
Used to create implementing instances of
MailServer. |
| Modifier | Constructor and Description |
|---|---|
protected |
MailServer(java.lang.String host,
int port,
javax.mail.Authenticator authenticator)
MailServer defined with its host, port and Authenticator. |
| Modifier and Type | Method and Description |
|---|---|
static MailServer.Builder |
create()
Returns new mail server builder.
|
abstract MailSessionImpl |
createSession()
Creates new mail session.
|
protected abstract java.util.Properties |
createSessionProperties()
Creates
MailSession Properties. |
javax.mail.Authenticator |
getAuthenticator()
Returns the
Authenticator. |
java.lang.String |
getHost()
Returns the host.
|
int |
getPort()
Returns current port.
|
java.util.Properties |
getSessionProperties()
Returns
MailSession Properties. |
protected MailServer(java.lang.String host,
int port,
javax.mail.Authenticator authenticator)
MailServer defined with its host, port and Authenticator.host - The host to use.port - The port to use.authenticator - The Authenticator to use.public abstract MailSessionImpl createSession()
MailSession or an implementing class such as ReceiveMailSession
or SendMailSession. The Session properties must be set before
the Session is created.protected abstract java.util.Properties createSessionProperties()
MailSession Properties.Propertiespublic java.lang.String getHost()
public javax.mail.Authenticator getAuthenticator()
Authenticator.Authenticator.public int getPort()
public java.util.Properties getSessionProperties()
MailSession Properties.MailSession Properties.public static MailServer.Builder create()
Copyright © 2003-present Jodd Team