public class Pop3MailReceiver extends AbstractMailReceiver
MailReceiver
implementation that polls a mail server using the
POP3 protocol.MailReceiver.MailReceiverContext
folderOpenMode, initialized, logger, SI_USER_FLAG
Constructor and Description |
---|
Pop3MailReceiver() |
Pop3MailReceiver(String url) |
Pop3MailReceiver(String host,
int port,
String username,
String password) |
Pop3MailReceiver(String host,
String username,
String password) |
Modifier and Type | Method and Description |
---|---|
protected void |
deleteMessages(javax.mail.Message[] messages)
Deletes the given messages from this receiver's folder, and closes it to expunge deleted messages.
|
protected javax.mail.Message[] |
searchForNewMessages()
Subclasses must implement this method to return new mail messages.
|
destroy, fetchMessages, getFolder, onInit, openFolder, receive, setAdditionalFlags, setJavaMailAuthenticator, setJavaMailProperties, setMaxFetchSize, setProtocol, setSelectorExpression, setSession, setShouldDeleteMessages, shouldDeleteMessages, toString
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getComponentType, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler
public Pop3MailReceiver()
public Pop3MailReceiver(String url)
protected javax.mail.Message[] searchForNewMessages() throws javax.mail.MessagingException
AbstractMailReceiver
searchForNewMessages
in class AbstractMailReceiver
javax.mail.MessagingException
protected void deleteMessages(javax.mail.Message[] messages) throws javax.mail.MessagingException
deleteMessages
in class AbstractMailReceiver
messages
- the messages to deletejavax.mail.MessagingException
- in case of JavaMail errorsCopyright © 2018. All rights reserved.