public class FeedEntryMessageSource extends IntegrationObjectSupport implements MessageSource<com.sun.syndication.feed.synd.SyndEntry>
MessageSource
will produce individual
SyndEntry
s 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, toString
public 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()
IntegrationObjectSupport
getComponentType
in interface NamedComponent
getComponentType
in class IntegrationObjectSupport
public Message<com.sun.syndication.feed.synd.SyndEntry> receive()
MessageSource
null
if no message is available.receive
in interface MessageSource<com.sun.syndication.feed.synd.SyndEntry>
protected void onInit() throws java.lang.Exception
IntegrationObjectSupport
onInit
in class IntegrationObjectSupport
java.lang.Exception