public class Pop3Server extends MailServer<ReceiveMailSession>
MailServer.Builder| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_POP3_PORT
Default POP3 port.
|
protected static java.lang.String |
MAIL_POP3_AUTH |
protected static java.lang.String |
MAIL_POP3_HOST |
protected static java.lang.String |
MAIL_POP3_PORT |
protected static java.lang.String |
PROTOCOL_POP3 |
| Constructor and Description |
|---|
Pop3Server(java.lang.String host,
int port,
javax.mail.Authenticator authenticator) |
| Modifier and Type | Method and Description |
|---|---|
ReceiveMailSession |
createSession()
Creates new mail session.
|
protected java.util.Properties |
createSessionProperties()
Creates
MailSession Properties. |
protected javax.mail.Store |
getStore(javax.mail.Session session)
Returns email store.
|
create, getAuthenticator, getHost, getPort, getSessionPropertiesprotected static final java.lang.String MAIL_POP3_PORT
protected static final java.lang.String MAIL_POP3_HOST
protected static final java.lang.String MAIL_POP3_AUTH
protected static final java.lang.String PROTOCOL_POP3
protected static final int DEFAULT_POP3_PORT
public Pop3Server(java.lang.String host,
int port,
javax.mail.Authenticator authenticator)
protected java.util.Properties createSessionProperties()
MailServerMailSession Properties.createSessionProperties in class MailServer<ReceiveMailSession>Propertiesprotected javax.mail.Store getStore(javax.mail.Session session)
throws javax.mail.NoSuchProviderException
POP3Storejavax.mail.NoSuchProviderException - If a provider for the given protocol is not found.public ReceiveMailSession createSession()
createSession in class MailServer<ReceiveMailSession>ReceiveMailSessionEmailUtil.createSession(String, Properties, Authenticator)Copyright © 2003-present Jodd Team