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 |
PROTOCOL_IMAP |
attachmentStorage, authenticator, customProperties, debugMode, host, MAIL_DEBUG, MAIL_HOST, MAIL_IMAP_CONNECTIONTIMEOUT, MAIL_IMAP_HOST, MAIL_IMAP_PARTIALFETCH, MAIL_IMAP_PORT, MAIL_IMAP_SOCKET_FACTORY_CLASS, MAIL_IMAP_SOCKET_FACTORY_FALLBACK, MAIL_IMAP_SOCKET_FACTORY_PORT, MAIL_IMAP_TIMEOUT, MAIL_MIME_ADDRESS_STRICT, MAIL_POP3_AUTH, MAIL_POP3_CONNECTIONTIMEOUT, MAIL_POP3_HOST, MAIL_POP3_PORT, MAIL_POP3_SOCKET_FACTORY_CLASS, MAIL_POP3_SOCKET_FACTORY_FALLBACK, MAIL_POP3_SOCKET_FACTORY_PORT, MAIL_POP3_TIMEOUT, MAIL_SMTP_AUTH, MAIL_SMTP_CONNECTIONTIMEOUT, MAIL_SMTP_HOST, MAIL_SMTP_PORT, MAIL_SMTP_SOCKET_FACTORY_CLASS, MAIL_SMTP_SOCKET_FACTORY_FALLBACK, MAIL_SMTP_SOCKET_FACTORY_PORT, MAIL_SMTP_STARTTLS_ENABLE, MAIL_SMTP_STARTTLS_REQUIRED, MAIL_SMTP_TIMEOUT, MAIL_SMTP_WRITETIMEOUT, MAIL_TRANSPORT_PROTOCOL, port, strictAddress, timeout
Modifier | Constructor and Description |
---|---|
|
ImapServer(MailServer.Builder builder) |
protected |
ImapServer(MailServer.Builder builder,
int defaultPort) |
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
protected static final java.lang.String PROTOCOL_IMAP
protected static final int DEFAULT_IMAP_PORT
public ImapServer(MailServer.Builder builder)
protected ImapServer(MailServer.Builder builder, int defaultPort)
protected java.util.Properties createSessionProperties()
MailServer
MailSession
Properties
.createSessionProperties
in class MailServer<ReceiveMailSession>
Properties
protected javax.mail.Store getStore(javax.mail.Session session) throws javax.mail.NoSuchProviderException
IMAPStore
javax.mail.NoSuchProviderException
- if a provider for the given protocol is not found.public ReceiveMailSession createSession()
createSession
in class MailServer<ReceiveMailSession>
ReceiveMailSession
Copyright © 2003-present Jodd Team