org.springframework.integration.mail
Class MailReceivingMessageSource

java.lang.Object
  extended by org.springframework.integration.mail.MailReceivingMessageSource
All Implemented Interfaces:
org.springframework.integration.core.MessageSource<javax.mail.Message>

public class MailReceivingMessageSource
extends java.lang.Object
implements org.springframework.integration.core.MessageSource<javax.mail.Message>

MessageSource implementation that delegates to a MailReceiver to poll a mailbox. Each poll of the mailbox may return more than one message which will then be stored in a queue.


Constructor Summary
MailReceivingMessageSource(MailReceiver mailReceiver)
           
 
Method Summary
 org.springframework.integration.Message<javax.mail.Message> receive()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailReceivingMessageSource

public MailReceivingMessageSource(MailReceiver mailReceiver)
Method Detail

receive

public org.springframework.integration.Message<javax.mail.Message> receive()
Specified by:
receive in interface org.springframework.integration.core.MessageSource<javax.mail.Message>