| |
|
| org.mule.transport.AbstractMessageRequester org.mule.transport.email.RetrieveMessageRequester
RetrieveMessageRequester | public class RetrieveMessageRequester extends AbstractMessageRequester (Code) | | This dispatcher can only be used to receive message (as opposed to listening for them).
Trying to send or dispatch will throw an UnsupportedOperationException.
This contains a reference to a mail folder (and also the endpoint and connector, via superclasses)
|
doDispose | protected void doDispose()(Code) | | |
doRequest | protected MuleMessage doRequest(long timeout) throws Exception(Code) | | Make a specific request to the underlying transport. Endpoint can be in the
form of pop3://username:password@pop3.lotsofmail.org
Parameters: timeout - the maximum time the operation should block before returning.The call should return immediately if there is data available. Ifno data becomes available before the timeout elapses, null will bereturned the result of the request wrapped in a MuleMessage object. Null will bereturned if no data was avaialable throws: Exception - if the call to the underlying protocal causes an exception |
flagMessage | protected void flagMessage(Folder folder, Message message) throws MessagingException(Code) | | There seems to be som variation on pop3 implementation so it may be
preferrable to mark messages as seen here and alos overload the getMessages
method to grab only new messages
Parameters: message - throws: javax.mail.MessagingException - |
getMessageCount | protected static int getMessageCount(Folder folder) throws MessagingException(Code) | | |
getNextMessage | protected static Message getNextMessage(Folder folder) throws MessagingException(Code) | | |
hasMessages | protected static boolean hasMessages(Folder folder) throws MessagingException(Code) | | Optimised check to se whether to return the message count and retrieve the
messages. Some pop3 implementations differ so an optimised check such as
folder.hasNewMessages() cannot be used
Parameters: folder - throws: javax.mail.MessagingException - |
|
|
|