public class FeedEntryMessageSource extends AbstractMessageSource<com.rometools.rome.feed.synd.SyndEntry>
MessageSource
will produce individual
SyndEntry
s for a feed identified with the 'feedUrl' attribute.IntegrationManagement.ManagementOverrides
EXPRESSION_PARSER, logger
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
Constructor and Description |
---|
FeedEntryMessageSource(org.springframework.core.io.Resource feedResource,
java.lang.String metadataKey)
Creates a FeedEntryMessageSource that will read feeds from the given
Resource . |
FeedEntryMessageSource(java.net.URL feedUrl,
java.lang.String metadataKey)
Creates a FeedEntryMessageSource that will use a HttpURLFeedFetcher to read feeds from the given URL.
|
Modifier and Type | Method and Description |
---|---|
protected com.rometools.rome.feed.synd.SyndEntry |
doReceive()
Subclasses must implement this method.
|
java.lang.String |
getComponentType() |
protected void |
onInit() |
void |
setMetadataStore(MetadataStore metadataStore) |
void |
setPreserveWireFeed(boolean preserveWireFeed)
Specify a flag to indication if
WireFeed should be preserved in the target SyndFeed . |
void |
setSyndFeedInput(com.rometools.rome.io.SyndFeedInput syndFeedInput)
Specify a parser for Feed XML documents.
|
java.lang.String |
toString() |
buildMessage, destroy, getComponentName, getManagedName, getManagedType, getMessageCount, getMessageCountLong, getOverrides, isCountsEnabled, isLoggingEnabled, receive, registerMetricsCaptor, reset, setBeanName, setCountsEnabled, setHeaderExpressions, setLoggingEnabled, setManagedName, setManagedType
afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, setBeanFactory, setConversionService
public FeedEntryMessageSource(java.net.URL feedUrl, java.lang.String metadataKey)
Resource
via the alternate constructor.feedUrl
- The URL.metadataKey
- The metadata key.public FeedEntryMessageSource(org.springframework.core.io.Resource feedResource, java.lang.String metadataKey)
Resource
.feedResource
- the Resource
to use.metadataKey
- the metadata key.public void setMetadataStore(MetadataStore metadataStore)
public void setSyndFeedInput(com.rometools.rome.io.SyndFeedInput syndFeedInput)
syndFeedInput
- the SyndFeedInput
to use.public void setPreserveWireFeed(boolean preserveWireFeed)
WireFeed
should be preserved in the target SyndFeed
.preserveWireFeed
- the boolean
flag.SyndFeedInput.setPreserveWireFeed(boolean)
public java.lang.String getComponentType()
protected void onInit()
onInit
in class AbstractExpressionEvaluator
protected com.rometools.rome.feed.synd.SyndEntry doReceive()
AbstractMessageSource
payload
of
type T, but the returned value may also be a Message
instance whose payload is of type T;
also can be AbstractIntegrationMessageBuilder
which is used for additional headers population.doReceive
in class AbstractMessageSource<com.rometools.rome.feed.synd.SyndEntry>
public java.lang.String toString()
toString
in class java.lang.Object