/** * Factory for the {@link ImapMailInboundChannelAdapterSpec} * @param url the IMAP url * @return ImapMailInboundChannelAdapterSpec instance */ public ImapMailInboundChannelAdapterSpec imap(String url) { return Mail.imapInboundAdapter(url); }
/** * An {@link ImapMailInboundChannelAdapterSpec} factory based on the provided {@link ImapMailReceiver}. * @param imapMailReceiver the {@link ImapMailReceiver} to use. * @return the {@link ImapMailInboundChannelAdapterSpec} instance. * @since 1.2 */ public static ImapMailInboundChannelAdapterSpec imapInboundAdapter(ImapMailReceiver imapMailReceiver) { return new ImapMailInboundChannelAdapterSpec(imapMailReceiver); }
/** * Factory for the {@link Pop3MailInboundChannelAdapterSpec} * @return Pop3MailInboundChannelAdapterSpec instance */ public Pop3MailInboundChannelAdapterSpec pop3() { return Mail.pop3InboundAdapter(); }
/** * A {@link Pop3MailInboundChannelAdapterSpec} factory based on the provided {@link Pop3MailReceiver}. * @param pop3MailReceiver the {@link Pop3MailReceiver} to use. * @return the {@link Pop3MailInboundChannelAdapterSpec} instance. * @since 1.2 */ public static Pop3MailInboundChannelAdapterSpec pop3InboundAdapter(Pop3MailReceiver pop3MailReceiver) { return new Pop3MailInboundChannelAdapterSpec(pop3MailReceiver); }
/** * An {@link ImapIdleChannelAdapterSpec} factory based on the provided {@link ImapMailReceiver}. * @param imapMailReceiver the {@link ImapMailReceiver} to use. * @return the {@link ImapIdleChannelAdapterSpec} instance. * @since 1.2 */ public static ImapIdleChannelAdapterSpec imapIdleAdapter(ImapMailReceiver imapMailReceiver) { return new ImapIdleChannelAdapterSpec(imapMailReceiver, true); }
/** * A multipart mode ro use. * Possible values are 0 through 3. * @param multipartMode header value * @return this * @see org.springframework.mail.javamail.MimeMessageHelper */ public MailHeadersBuilder multipartMode(int multipartMode) { return put(MailHeaders.MULTIPART_MODE, multipartMode); }
/** * Factory for the {@link Pop3MailInboundChannelAdapterSpec} * @param host the POP3 host * @param port the POP3 port * @param username the user name to connect to POP3 * @param password the password to connect to POP3 * @return Pop3MailInboundChannelAdapterSpec instance */ public Pop3MailInboundChannelAdapterSpec pop3(String host, int port, String username, String password) { return Mail.pop3InboundAdapter(host, port, username, password); }
/** * Factory for the {@link ImapMailInboundChannelAdapterSpec} * @return ImapMailInboundChannelAdapterSpec instance */ public ImapMailInboundChannelAdapterSpec imap() { return Mail.imapInboundAdapter(); }
/** * An {@link ImapMailInboundChannelAdapterSpec} factory based on the provided {@link ImapMailReceiver}. * @param imapMailReceiver the {@link ImapMailReceiver} to use. * @return the {@link ImapMailInboundChannelAdapterSpec} instance. * @since 1.2 */ public static ImapMailInboundChannelAdapterSpec imapInboundAdapter(ImapMailReceiver imapMailReceiver) { return new ImapMailInboundChannelAdapterSpec(imapMailReceiver); }
/** * A {@link Pop3MailInboundChannelAdapterSpec} factory based on the provided {@link Pop3MailReceiver}. * @param pop3MailReceiver the {@link Pop3MailReceiver} to use. * @return the {@link Pop3MailInboundChannelAdapterSpec} instance. * @since 1.2 */ public static Pop3MailInboundChannelAdapterSpec pop3InboundAdapter(Pop3MailReceiver pop3MailReceiver) { return new Pop3MailInboundChannelAdapterSpec(pop3MailReceiver); }
/** * An {@link ImapIdleChannelAdapterSpec} factory based on the provided {@link ImapMailReceiver}. * @param imapMailReceiver the {@link ImapMailReceiver} to use. * @return the {@link ImapIdleChannelAdapterSpec} instance. * @since 1.2 */ public static ImapIdleChannelAdapterSpec imapIdleAdapter(ImapMailReceiver imapMailReceiver) { return new ImapIdleChannelAdapterSpec(imapMailReceiver, true); }
/** * A multipart mode ro use. * Possible values are 0 through 3. * @param multipartMode header value * @return this * @see org.springframework.mail.javamail.MimeMessageHelper */ public MailHeadersBuilder multipartMode(int multipartMode) { return put(MailHeaders.MULTIPART_MODE, multipartMode); }
/** * Factory for the {@link Pop3MailInboundChannelAdapterSpec} * @param host the POP3 host * @param port the POP3 port * @param username the user name to connect to POP3 * @param password the password to connect to POP3 * @return Pop3MailInboundChannelAdapterSpec instance */ public Pop3MailInboundChannelAdapterSpec pop3(String host, int port, String username, String password) { return Mail.pop3InboundAdapter(host, port, username, password); }
/** * Factory for the {@link ImapMailInboundChannelAdapterSpec} * @return ImapMailInboundChannelAdapterSpec instance */ public ImapMailInboundChannelAdapterSpec imap() { return Mail.imapInboundAdapter(); }
public static ImapMailInboundChannelAdapterSpec imapInboundAdapter(String url) { return new ImapMailInboundChannelAdapterSpec(url); }
/** * Factory for the {@link Pop3MailInboundChannelAdapterSpec} * @param url the POP3 url * @return Pop3MailInboundChannelAdapterSpec instance */ public Pop3MailInboundChannelAdapterSpec pop3(String url) { return Mail.pop3InboundAdapter(url); }
/** * Factory for the {@link ImapMailInboundChannelAdapterSpec} * @param url the IMAP url * @return ImapMailInboundChannelAdapterSpec instance */ public ImapMailInboundChannelAdapterSpec imap(String url) { return Mail.imapInboundAdapter(url); }
/** * Factory for the {@link Pop3MailInboundChannelAdapterSpec} * @return Pop3MailInboundChannelAdapterSpec instance */ public Pop3MailInboundChannelAdapterSpec pop3() { return Mail.pop3InboundAdapter(); }
/** * Factory for the {@link Pop3MailInboundChannelAdapterSpec} * @param url the POP3 url * @return Pop3MailInboundChannelAdapterSpec instance */ public Pop3MailInboundChannelAdapterSpec pop3(String url) { return Mail.pop3InboundAdapter(url); }
public static Pop3MailInboundChannelAdapterSpec pop3InboundAdapter(String host, String username, String password) { return pop3InboundAdapter(host, -1, username, password); }