Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BAF6A200B71 for ; Wed, 31 Aug 2016 10:21:38 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B96FD160AD0; Wed, 31 Aug 2016 08:21:38 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0F311160A8C for ; Wed, 31 Aug 2016 10:21:37 +0200 (CEST) Received: (qmail 31988 invoked by uid 500); 31 Aug 2016 08:21:37 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 31976 invoked by uid 99); 31 Aug 2016 08:21:37 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Aug 2016 08:21:37 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 1F6C1E0230; Wed, 31 Aug 2016 08:21:37 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: acosentino@apache.org To: commits@camel.apache.org Date: Wed, 31 Aug 2016 08:21:37 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [1/8] camel git commit: Added RSS dataformat docs to Gitbook archived-at: Wed, 31 Aug 2016 08:21:38 -0000 Repository: camel Updated Branches: refs/heads/master e68960d54 -> 8d186c028 Added RSS dataformat docs to Gitbook Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/7eca5fc9 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/7eca5fc9 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/7eca5fc9 Branch: refs/heads/master Commit: 7eca5fc92d2992af5c7b51c8fa0533b47d459fca Parents: e68960d Author: Andrea Cosentino Authored: Wed Aug 31 09:34:29 2016 +0200 Committer: Andrea Cosentino Committed: Wed Aug 31 09:34:29 2016 +0200 ---------------------------------------------------------------------- .../camel-rss/src/main/docs/rss-dataformat.adoc | 31 ++++++++++++++++++++ 1 file changed, 31 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/7eca5fc9/components/camel-rss/src/main/docs/rss-dataformat.adoc ---------------------------------------------------------------------- diff --git a/components/camel-rss/src/main/docs/rss-dataformat.adoc b/components/camel-rss/src/main/docs/rss-dataformat.adoc new file mode 100644 index 0000000..7a6f149 --- /dev/null +++ b/components/camel-rss/src/main/docs/rss-dataformat.adoc @@ -0,0 +1,31 @@ +[[RSS-RSSDataformat]] +RSS Dataformat +~~~~~~~~~~~~~ + +The RSS component ships with an RSS dataformat that can be used to +convert between String (as XML) and ROME RSS model objects. + +* marshal = from ROME `SyndFeed` to XML `String` +* unmarshal = from XML `String` to ROME `SyndFeed` + +A route using this would look something like this: + +The purpose of this feature is to make it possible to use Camel's lovely +built-in expressions for manipulating RSS messages. As shown below, an +XPath expression can be used to filter the RSS message: + +TIP: *Query parameters* +If the URL for the RSS feed uses query parameters, this component will +understand them as well, for example if the feed uses `alt=rss`, then +you can for example do +`from("rss:http://someserver.com/feeds/posts/default?alt=rss&splitEntries=false&consumer.delay=1000").to("bean:rss");` + +[[RSS-RSSDataformat-Options]] +Options +^^^^^^^ + +// dataformat options: START +The RSS dataformat has no options. +// dataformat options: END + +