public class Pop3MailReceiver extends AbstractMailReceiver
MailReceiver
implementation that polls a mail server using the
POP3 protocol.Modifier and Type | Field and Description |
---|---|
static String |
PROTOCOL |
DEFAULT_SI_USER_FLAG
EXPRESSION_PARSER, logger
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(Message[] messages)
Deletes the given messages from this receiver's folder, and closes it to expunge deleted messages.
|
protected Message[] |
searchForNewMessages()
Subclasses must implement this method to return new mail messages.
|
closeFolder, destroy, fetchMessages, getFolder, getFolderOpenMode, getJavaMailProperties, getUserFlag, onInit, openFolder, receive, setAdditionalFlags, setAutoCloseFolder, setEmbeddedPartsAsBytes, setHeaderMapper, setJavaMailAuthenticator, setJavaMailProperties, setMaxFetchSize, setProtocol, setSelectorExpression, setSession, setShouldDeleteMessages, setSimpleContent, setUserFlag, shouldDeleteMessages, toString
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getComponentType, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler
public static final String PROTOCOL
public Pop3MailReceiver()
public Pop3MailReceiver(String url)
protected Message[] searchForNewMessages() throws MessagingException
AbstractMailReceiver
searchForNewMessages
in class AbstractMailReceiver
MessagingException
- Any MessagingException.protected void deleteMessages(Message[] messages) throws MessagingException
deleteMessages
in class AbstractMailReceiver
messages
- the messages to deleteMessagingException
- in case of JavaMail errors