...
URI format
Code Block |
---|
atom://atomUri[?options]
|
Where atomUri is the URI to the atom feed to poll.
...
Property | Default | Description |
---|---|---|
| | If |
| | Is only used by the split entries to filter the entries to return. Camel will default use the |
| | Is only used by the filter, as the starting timestamp for selection never entries (uses the |
| | Sets whether to add the Abdera Feed object as a header. |
| | If |
| | Delay in millis between each poll. |
| | Millis before polling starts. |
| | If |
You can append query options to the URI in the following format, ?option=value&option=value&...
Exchange data format
Camel will set the in In body on the returned Exchange
with the entries. Depending on the splitEntries
flag Camel will either return one Entry
or a List<Entry>
.
Option | Value | Behavior |
---|---|---|
| | Only a single entry from the currently being processed feed is set: |
| | The entires entire list of entries from the feed is set: |
Camel can set the Feed
object on the in In header (see feedHeader
option to disable this):
Message Headers
Camel atom uses these headers.
Header | Description |
---|---|
| Camel 1.x: When consuming the |
| Camel 2.0: When consuming the |
...
In this sample we poll James Strahams Strachan's blog.
Code Block |
---|
from("atom://http://macstrac.blogspot.com/feeds/posts/default").to("seda:feeds"); |
In this sample we want to filter only good blogs we like to a seda SEDA queue. The sample also shows how to setup Camel standalone, not running in any Container or using Spring.
...