public class ImapServer extends MailServer<ReceiveMailSession>
MailServer.Builder| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_IMAP_PORT
Default IMAP port.
|
protected static java.lang.String |
MAIL_IMAP_HOST |
protected static java.lang.String |
MAIL_IMAP_PARTIALFETCH |
protected static java.lang.String |
MAIL_IMAP_PORT |
protected static java.lang.String |
PROTOCOL_IMAP |
| Constructor and Description |
|---|
ImapServer(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_IMAP_PORT
protected static final java.lang.String MAIL_IMAP_HOST
protected static final java.lang.String MAIL_IMAP_PARTIALFETCH
protected static final java.lang.String PROTOCOL_IMAP
protected static final int DEFAULT_IMAP_PORT
public ImapServer(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
IMAPStorejavax.mail.NoSuchProviderException - if a provider for the given protocol is not found.public ReceiveMailSession createSession()
createSession in class MailServer<ReceiveMailSession>ReceiveMailSessionCopyright © 2003-present Jodd Team