クラス FeedEntryMessageSource
java.lang.ObjectSE
org.springframework.integration.util.AbstractExpressionEvaluator
org.springframework.integration.endpoint.AbstractMessageSource<com.rometools.rome.feed.synd.SyndEntry>
org.springframework.integration.feed.inbound.FeedEntryMessageSource
- 実装済みのインターフェース一覧:
Aware、BeanFactoryAware、BeanNameAware、DisposableBean、InitializingBean、MessageSource<com.rometools.rome.feed.synd.SyndEntry>、IntegrationPattern、NamedComponent、IntegrationInboundManagement、IntegrationManagement
public class FeedEntryMessageSource
extends AbstractMessageSource<com.rometools.rome.feed.synd.SyndEntry>
MessageSource のこの実装は、'feedUrl' 属性で識別されるフィードの個々の SyndEntry を生成します。- 導入:
- 2.0
- 作成者:
- Josh Long, Mario Gray, Oleg Zhurakousky, Artem Bilan, Aaron Loes, Christian Tzolov
ネストされたクラスの概要
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたネストクラス / インターフェース
IntegrationManagement.ManagementOverridesフィールド概要
クラス org.springframework.integration.util.AbstractExpressionEvaluator から継承されたフィールド
EXPRESSION_PARSER, loggerインターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたフィールド
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAMEコンストラクター概要
コンストラクターコンストラクター説明FeedEntryMessageSource(URLSE feedUrl, StringSE metadataKey) HttpURLFeedFetcher を使用して指定された URL からフィードを読み取る FeedEntryMessageSource を作成します。FeedEntryMessageSource(Resource feedResource, StringSE metadataKey) 指定されたResourceからフィードを読み取る FeedEntryMessageSource を作成します。方法の概要
修飾子と型メソッド説明protected com.rometools.rome.feed.synd.SyndEntryサブクラスはこのメソッドを実装する必要があります。protected voidonInit()voidsetMetadataStore(MetadataStore metadataStore) voidsetPreserveWireFeed(boolean preserveWireFeed) WireFeedをターゲットSyndFeedに保持する必要があるかどうかを示すフラグを指定します。voidsetSyndFeedInput(com.rometools.rome.io.SyndFeedInput syndFeedInput) フィード XML ドキュメントのパーサーを指定します。toString()クラス org.springframework.integration.endpoint.AbstractMessageSource から継承されたメソッド
buildMessage, destroy, getBeanName, getComponentName, getManagedName, getManagedType, getOverrides, isLoggingEnabled, receive, registerMetricsCaptor, setBeanName, setHeaderExpressions, setLoggingEnabled, setManagedName, setManagedTypeクラス org.springframework.integration.util.AbstractExpressionEvaluator から継承されたメソッド
afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, setBeanFactory, setConversionService, setSimpleEvaluationContextクラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSEインターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたメソッド
getThisAs, isObserved, registerObservationRegistryインターフェース org.springframework.integration.core.MessageSource から継承されたメソッド
getIntegrationPatternType
コンストラクターの詳細
FeedEntryMessageSource
HttpURLFeedFetcher を使用して指定された URL からフィードを読み取る FeedEntryMessageSource を作成します。フィード URL に http * 以外のプロトコルがある場合は、代替コンストラクターを介してResourceのカスタム実装を提供することを検討してください。- パラメーター:
feedUrl- URL。metadataKey- メタデータキー。
FeedEntryMessageSource
指定されたResourceからフィードを読み取る FeedEntryMessageSource を作成します。- パラメーター:
feedResource- 使用するResource。metadataKey- メタデータキー。- 導入:
- 5.0
方法の詳細
setMetadataStore
setSyndFeedInput
public void setSyndFeedInput(com.rometools.rome.io.SyndFeedInput syndFeedInput) フィード XML ドキュメントのパーサーを指定します。- パラメーター:
syndFeedInput- 使用するSyndFeedInput。- 導入:
- 5.0
setPreserveWireFeed
public void setPreserveWireFeed(boolean preserveWireFeed) WireFeedをターゲットSyndFeedに保持する必要があるかどうかを示すフラグを指定します。- パラメーター:
preserveWireFeed-booleanフラグ。- 導入:
- 5.0
- 関連事項:
SyndFeedInput.setPreserveWireFeed(boolean)
getComponentType
onInit
protected void onInit()- オーバーライド:
- クラス
AbstractExpressionEvaluatorのonInit
doReceive
protected com.rometools.rome.feed.synd.SyndEntry doReceive()クラスからコピーされた説明:AbstractMessageSourceサブクラスはこのメソッドを実装する必要があります。通常、返される値は型 T のpayloadになりますが、返される値はペイロードが型 T であるMessageインスタンスである場合もあります。また、追加のヘッダーの設定に使用されるAbstractIntegrationMessageBuilderである場合もあります。- 次で指定:
- クラス
AbstractMessageSource<com.rometools.rome.feed.synd.SyndEntry>のdoReceive - 戻り値:
- 返された値。
toString