クラス 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
実装されたすべてのインターフェース:
AwareBeanFactoryAwareBeanNameAwareDisposableBeanInitializingBeanMessageSource<com.rometools.rome.feed.synd.SyndEntry>IntegrationPatternNamedComponentIntegrationInboundManagementIntegrationManagement

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
  • コンストラクターの詳細

    • FeedEntryMessageSource

      public FeedEntryMessageSource(URLSE feedUrl, StringSE metadataKey)
      HttpURLFeedFetcher を使用して指定された URL からフィードを読み取る FeedEntryMessageSource を作成します。フィード URL に http * 以外のプロトコルがある場合は、代替コンストラクターを介して Resource のカスタム実装を提供することを検討してください。
      パラメーター:
      feedUrl - URL。
      metadataKey - メタデータキー。
    • FeedEntryMessageSource

      public FeedEntryMessageSource(Resource feedResource, StringSE metadataKey)
      指定された Resource からフィードを読み取る FeedEntryMessageSource を作成します。
      パラメーター:
      feedResource - 使用する Resource
      metadataKey - メタデータキー。
      導入:
      5.0
  • メソッドの詳細

    • setMetadataStore

      public void setMetadataStore(MetadataStore metadataStore)
    • 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

      public StringSE getComponentType()
    • onInit

      protected void onInit()
      オーバーライド:
      クラス AbstractExpressionEvaluatoronInit 
    • doReceive

      protected com.rometools.rome.feed.synd.SyndEntry doReceive()
      クラスからコピーされた説明: AbstractMessageSource
      サブクラスはこのメソッドを実装する必要があります。通常、戻り値は T 型の payload ですが、戻り値はペイロードが T 型の Message インスタンスでもかまいません。追加のヘッダーの作成に使用される AbstractIntegrationMessageBuilder にすることもできます。
      次で指定:
      クラス AbstractMessageSource<com.rometools.rome.feed.synd.SyndEntry>doReceive 
      戻り値:
      返された値。
    • toString

      public StringSE toString()
      オーバーライド:
      クラス ObjectSEtoString