|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.integration.context.IntegrationObjectSupport org.springframework.integration.feed.inbound.FeedEntryMessageSource
public class FeedEntryMessageSource
This implementation of MessageSource
will produce individual
SyndEntry
s for a feed identified with the 'feedUrl' attribute.
Field Summary |
---|
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()
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)
|
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 |
Constructor Detail |
---|
public FeedEntryMessageSource(java.net.URL feedUrl)
FeedFetcher
via the alternate constructor.
public FeedEntryMessageSource(java.net.URL feedUrl, com.sun.syndication.fetcher.FeedFetcher feedFetcher)
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |