public final class Mail
extends java.lang.Object
public static MailSendingMessageHandlerSpec outboundAdapter(java.lang.String host)
public static Pop3MailInboundChannelAdapterSpec pop3InboundAdapter()
Pop3MailInboundChannelAdapterSpec
factory using a default
Pop3MailReceiver
.Pop3MailInboundChannelAdapterSpec
instance.public static Pop3MailInboundChannelAdapterSpec pop3InboundAdapter(Pop3MailReceiver pop3MailReceiver)
Pop3MailInboundChannelAdapterSpec
factory based on the provided
Pop3MailReceiver
.pop3MailReceiver
- the Pop3MailReceiver
to use.Pop3MailInboundChannelAdapterSpec
instance.public static Pop3MailInboundChannelAdapterSpec pop3InboundAdapter(java.lang.String url)
Pop3MailInboundChannelAdapterSpec
factory based on the provided url.url
- the pop3 urlPop3MailInboundChannelAdapterSpec
instance.public static Pop3MailInboundChannelAdapterSpec pop3InboundAdapter(java.lang.String host, java.lang.String username, java.lang.String password)
Pop3MailInboundChannelAdapterSpec
factory based on the provided host,
user, password and the default port.host
- the host.username
- the user.password
- the password.Pop3MailInboundChannelAdapterSpec
instance.public static Pop3MailInboundChannelAdapterSpec pop3InboundAdapter(java.lang.String host, int port, java.lang.String username, java.lang.String password)
Pop3MailInboundChannelAdapterSpec
factory based on the provided host,
port, user, and password.host
- the host.port
- the port.username
- the user.password
- the password.Pop3MailInboundChannelAdapterSpec
instance.public static ImapMailInboundChannelAdapterSpec imapInboundAdapter()
ImapMailInboundChannelAdapterSpec
factory using a default ImapMailReceiver
.ImapMailInboundChannelAdapterSpec
instance.public static ImapMailInboundChannelAdapterSpec imapInboundAdapter(ImapMailReceiver imapMailReceiver)
ImapMailInboundChannelAdapterSpec
factory based on the provided ImapMailReceiver
.imapMailReceiver
- the ImapMailReceiver
to use.ImapMailInboundChannelAdapterSpec
instance.public static ImapMailInboundChannelAdapterSpec imapInboundAdapter(java.lang.String url)
ImapMailInboundChannelAdapterSpec
factory based on the provided url.url
- the imap urlImapMailInboundChannelAdapterSpec
instance.public static ImapIdleChannelAdapterSpec imapIdleAdapter()
ImapIdleChannelAdapterSpec
factory using a default ImapMailReceiver
.ImapIdleChannelAdapterSpec
instance.public static ImapIdleChannelAdapterSpec imapIdleAdapter(java.lang.String url)
ImapIdleChannelAdapterSpec
factory based on the provided url.url
- the imap urlImapIdleChannelAdapterSpec
instance.public static ImapIdleChannelAdapterSpec imapIdleAdapter(ImapMailReceiver imapMailReceiver)
ImapIdleChannelAdapterSpec
factory based on the provided ImapMailReceiver
.imapMailReceiver
- the ImapMailReceiver
to use.ImapIdleChannelAdapterSpec
instance.public static MailHeadersBuilder headers()
MailHeadersBuilder
factory.public static MailToStringTransformer toStringTransformer()
MailToStringTransformer
factory.public static MailToStringTransformer toStringTransformer(java.lang.String charset)
MailToStringTransformer
factory.charset
- the charset to use when the default is not appropriate.