public class FeedEntryMessageSource extends IntegrationObjectSupport implements MessageSource<com.sun.syndication.feed.synd.SyndEntry>
MessageSource will produce individual
SyndEntrys for a feed identified with the 'feedUrl' attribute.logger| Constructor and Description |
|---|
FeedEntryMessageSource(java.net.URL feedUrl,
java.lang.String metadataKey)
Creates a FeedEntryMessageSource that will use a HttpURLFeedFetcher to read feeds from the given URL.
|
FeedEntryMessageSource(java.net.URL feedUrl,
java.lang.String metadataKey,
com.sun.syndication.fetcher.FeedFetcher feedFetcher)
Creates a FeedEntryMessageSource that will use the provided FeedFetcher to read from the given feed URL.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
Message<com.sun.syndication.feed.synd.SyndEntry> |
receive()
Retrieve the next available message from this source.
|
void |
setMetadataStore(MetadataStore metadataStore) |
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toStringpublic FeedEntryMessageSource(java.net.URL feedUrl,
java.lang.String metadataKey)
FeedFetcher via the alternate constructor.public FeedEntryMessageSource(java.net.URL feedUrl,
java.lang.String metadataKey,
com.sun.syndication.fetcher.FeedFetcher feedFetcher)
public void setMetadataStore(MetadataStore metadataStore)
public java.lang.String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class IntegrationObjectSupportpublic Message<com.sun.syndication.feed.synd.SyndEntry> receive()
MessageSourcenull if no message is available.receive in interface MessageSource<com.sun.syndication.feed.synd.SyndEntry>protected void onInit()
throws java.lang.Exception
IntegrationObjectSupportonInit in class IntegrationObjectSupportjava.lang.Exception