public class Pop3MailReceiver extends AbstractMailReceiver
MailReceiver implementation that polls a mail server using the
POP3 protocol.DEFAULT_SI_USER_FLAG, folderOpenMode, initialized, loggerEXPRESSION_PARSER| Constructor and Description |
|---|
Pop3MailReceiver() |
Pop3MailReceiver(java.lang.String url) |
Pop3MailReceiver(java.lang.String host,
int port,
java.lang.String username,
java.lang.String password) |
Pop3MailReceiver(java.lang.String host,
java.lang.String username,
java.lang.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, getJavaMailProperties, getUserFlag, onInit, openFolder, receive, setAdditionalFlags, setEmbeddedPartsAsBytes, setHeaderMapper, setJavaMailAuthenticator, setJavaMailProperties, setMaxFetchSize, setProtocol, setSelectorExpression, setSession, setShouldDeleteMessages, setUserFlag, shouldDeleteMessages, toStringafterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getComponentType, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskSchedulerpublic Pop3MailReceiver()
public Pop3MailReceiver(java.lang.String url)
public Pop3MailReceiver(java.lang.String host,
java.lang.String username,
java.lang.String password)
public Pop3MailReceiver(java.lang.String host,
int port,
java.lang.String username,
java.lang.String password)
protected javax.mail.Message[] searchForNewMessages()
throws javax.mail.MessagingException
AbstractMailReceiversearchForNewMessages in class AbstractMailReceiverjavax.mail.MessagingException - Any MessagingException.protected void deleteMessages(javax.mail.Message[] messages)
throws javax.mail.MessagingException
deleteMessages in class AbstractMailReceivermessages - the messages to deletejavax.mail.MessagingException - in case of JavaMail errors