davsclaus opened a new pull request, #30977: URL: https://github.com/apache/camel/pull/30977
# Description Part of [CAMEL-23832](https://issues.apache.org/jira/browse/CAMEL-23832). The umbrella ticket stays open. ## Summary New texts for the component description, all 20 endpoint options of camel-stream and its 2 headers (23 texts), checked against the Camel code of the endpoint, consumer, producer, `FileWatcherStrategy` and the JDK APIs it uses (`System.in`/`out`/`err`, `java.net.URLConnection`, `WatchService`). camel-stream uses no third-party library. What was wrong with the old texts: - `delay` was called an initial delay, but the producer waits that long before each message. - `closeOnDone` said it keeps the stream open until the Splitter is done. The producer keeps the file open anyway; the option closes it after the message with `CamelSplitComplete=true`. - `readTimeout` described a socket read timeout that the component does not apply anywhere. - The headers were "The index" and "Is complete". They now say what is counted and when `CamelStreamComplete` is true (always false with `scanStream`). - Most options did not say which kind (`in`, `file`, `http`, ...) or which side uses them, or that `retry`, `fileWatcher` and `scanStreamDelay` are only used with `scanStream`, and `promptMessage` only with kind `in`. - `encoding` did not say that the http consumer and `readLine=false` ignore it. - The component description named only the system streams, not the file, the HTTP URL and the header stream. ### Found, not changed - `readTimeout` does nothing. It was added for the `url` kind (CAMEL-12567), which was removed in CAMEL-14167. The `http` kind does not apply it to its `URLConnection`. - The `stream` header that the producer reads for kind `header` is not in `StreamConstants`, so it is missing from the header table of the doc page (the doc page text names it). - `groupLines` has no effect for kind `in` without `scanStream`: the consumer does not read ahead from `System.in`, so every line is marked as the last one (`CamelStreamComplete=true`) and is sent alone. - With `fileWatcher`, a `fileName` without a directory part is not watched (the watched directory is `null`), so with `retry` the file is never opened again. - With `scanStream` but without `retry`, a file that does not exist when the consumer starts is never read, even after it is created. - `httpHeaders` splits on `,`, `=` and `:`, so a header value that contains one of them (such as a URL) is dropped or cut off without a warning. - The `http` consumer reads lines with the JVM default charset and ignores `encoding`. ## Tests - There is no new test, as only description text changes. - A script compared the component JSON with the parent commit: only `description` fields changed (23 texts). # Target - [x] I checked that the commit is targeting the correct branch (Camel 4 uses the `main` branch) # Tracking - [x] If this is a large change, bug fix, or code improvement, I checked there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for the change (usually before you start working on it). # Apache Camel coding standards and style - [x] I checked that each commit in the pull request has a meaningful subject line and body. - [x] I ran the formatter and built the module, then regenerated the catalog copy, `dsl/camel-endpointdsl` and `dsl/camel-componentdsl`, and committed all generated changes. # AI-assisted contributions - [x] If this PR includes AI-generated code, commits have proper co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR description identifies the AI tool used. _Claude Code on behalf of davsclaus_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
