org.springframework.integration.feed.inbound
Class FeedEntryMessageSource
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.feed.inbound.FeedEntryMessageSource
- All Implemented Interfaces:
- org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, org.springframework.integration.context.NamedComponent, org.springframework.integration.core.MessageSource<com.sun.syndication.feed.synd.SyndEntry>
public class FeedEntryMessageSource
- extends org.springframework.integration.context.IntegrationObjectSupport
- implements org.springframework.integration.core.MessageSource<com.sun.syndication.feed.synd.SyndEntry>
This implementation of MessageSource will produce individual
SyndEntrys for a feed identified with the 'feedUrl' attribute.
- Since:
- 2.0
| Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport |
logger |
|
Constructor Summary |
FeedEntryMessageSource(java.net.URL feedUrl)
Creates a FeedEntryMessageSource that will use a HttpURLFeedFetcher to read feeds from the given URL. |
FeedEntryMessageSource(java.net.URL feedUrl,
com.sun.syndication.fetcher.FeedFetcher feedFetcher)
Creates a FeedEntryMessageSource that will use the provided FeedFetcher to read from the given feed URL. |
|
Method Summary |
java.lang.String |
getComponentType()
|
protected void |
onInit()
|
org.springframework.integration.Message<com.sun.syndication.feed.synd.SyndEntry> |
receive()
|
void |
setMetadataStore(org.springframework.integration.store.MetadataStore metadataStore)
|
| Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
afterPropertiesSet, getBeanFactory, getComponentName, getConversionService, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FeedEntryMessageSource
public FeedEntryMessageSource(java.net.URL feedUrl)
- Creates a FeedEntryMessageSource that will use a HttpURLFeedFetcher to read feeds from the given URL.
If the feed URL has a protocol other than http*, consider providing a custom implementation of the
FeedFetcher via the alternate constructor.
FeedEntryMessageSource
public FeedEntryMessageSource(java.net.URL feedUrl,
com.sun.syndication.fetcher.FeedFetcher feedFetcher)
- Creates a FeedEntryMessageSource that will use the provided FeedFetcher to read from the given feed URL.
setMetadataStore
public void setMetadataStore(org.springframework.integration.store.MetadataStore metadataStore)
getComponentType
public java.lang.String getComponentType()
- Specified by:
getComponentType in interface org.springframework.integration.context.NamedComponent- Overrides:
getComponentType in class org.springframework.integration.context.IntegrationObjectSupport
receive
public org.springframework.integration.Message<com.sun.syndication.feed.synd.SyndEntry> receive()
- Specified by:
receive in interface org.springframework.integration.core.MessageSource<com.sun.syndication.feed.synd.SyndEntry>
onInit
protected void onInit()
throws java.lang.Exception
- Overrides:
onInit in class org.springframework.integration.context.IntegrationObjectSupport
- Throws:
java.lang.Exception