gnodet-bot commented on code in PR #31143:
URL: https://github.com/apache/camel/pull/31143#discussion_r4745600619
##########
components/camel-atom/src/main/java/org/apache/camel/component/feed/FeedEndpoint.java:
##########
@@ -31,21 +31,33 @@
*/
public abstract class FeedEndpoint extends DefaultPollingEndpoint {
- @UriPath(description = "The URI to the feed to poll.")
+ @UriPath(description = "The URI of the Atom feed to poll: an http or https
URL, which the feed reader fetches, or a"
+ + " Camel resource URI such as file: or classpath:
(classpath when there is no prefix). Query"
+ + " parameters that are not options of this
endpoint are kept in the feed URI.")
@Metadata(required = true)
protected String feedUri;
- @UriParam(defaultValue = "true", description = "Sets whether or not
entries should be sent "
- + "individually or whether
the entire feed should be sent as a single message")
+ @UriParam(defaultValue = "true",
+ description = "Whether to route each entry of the feed as its
own message, with the"
+ + " com.apptasticsoftware.rssreader.Item as body.
When false, each poll routes one message with"
+ + " the List of all the entries of the feed as
body, and the idempotent options and"
+ + " throttleEntries do not apply.")
protected boolean splitEntries = true;
- @UriParam(label = "advanced", defaultValue = "true", description = "Sets
whether to add the feed object as a header.")
+ @UriParam(label = "advanced", defaultValue = "true",
+ description = "Whether to set the List of all the entries of the
feed in the CamelAtomFeed header of each message.")
Review Comment:
⚠️ **Wrong header name for RSS**: `CamelAtomFeed` is correct for the Atom
component but `FeedEndpoint` is the base class for **both** Atom and RSS. The
RSS component sets `CamelRssFeed` (via `RssConstants.RSS_FEED`), so RSS users
reading this description see the wrong header name.
The description should not name the Atom-specific constant. Suggested fix:
```suggestion
description = "Whether to set the full feed (the List of all
entries) in the exchange header"
+ " (CamelAtomFeed for the Atom component,
CamelRssFeed for the RSS component)."
+ " When false, no feed header is set.")
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]