...
The atom: component is used for polling atom Atom feeds.
Camel will default poll the feed every 60th 60 seconds by default.
Note: The component currently only supports polling (consuming) feeds.
Maven users will need to add the following dependency to their pom.xml
for this component:
...
URI format
...
...
Where atomUri is the URI to the atom Atom feed to poll.
Options
...
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 |
|
| Camel 2.5: Sets whether all entries identified in a single feed poll should be delivered immediately. If |
|
| Sets whether to add the Abdera Feed object as a header. |
|
| If |
|
...
| Delay in millis between each poll. | |
|
| Millis before polling starts. |
|
| If |
...
, use fixed delay between pools, otherwise fixed rate is used. See ScheduledExecutorService in JDK for details. | ||
username | Camel 2.16: For basic authentication when polling from a HTTP feed | |
password | Camel 2.16: For basic authentication when polling from a HTTP feed |
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 |
...
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 |
---|
...
org.apache.camel.component.atom.feed
...
Camel 1.x: When consuming the org.apache.abdera.model.Feed
object is set to this header.
...
|
...
When consuming the |
Samples
In this sample we poll James Strahams Strachan's blog.
...
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.
...
...
...