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 <anco...@gmail.com>
Authored: Wed Aug 31 09:34:29 2016 +0200
Committer: Andrea Cosentino <anco...@gmail.com>
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
+
+

Reply via email to