This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch ih in repository https://gitbox.apache.org/repos/asf/camel.git
commit 45e649f78a6a4174d1449af1f2c98e3750bba69b Author: Claus Ibsen <[email protected]> AuthorDate: Mon Nov 24 09:43:22 2025 +0100 CAMEL-22693: Mark up EIP and endpoint headers that are of importance to make tooling, trouble shooting and development easier. --- .../core/commands/action/CamelHistoryAction.java | 23 ++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelHistoryAction.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelHistoryAction.java index 3cf542cd879d..8ee575496188 100644 --- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelHistoryAction.java +++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelHistoryAction.java @@ -339,22 +339,25 @@ public class CamelHistoryAction extends ActionWatchCommand { String uri = r.endpoint != null ? r.endpoint.getString("endpoint") : null; Row t = r.first ? r : next; // if sending to endpoint then we should find details in the next step as they are response if (uri != null && t != null) { + StringJoiner sj = new StringJoiner(" "); var map = extractComponentModel(uri, t); - // special for file + // special for file / http String fn = map.remove("CamelFileName"); String fs = map.remove("CamelFileLength"); + String hn = map.remove("CamelHttpResponseCode"); + String hs = map.remove("CamelHttpResponseText"); if (fn != null && fs != null) { - r.summary = "File: " + fn + " (" + fs + " bytes)"; + sj.add("File: " + fn + " (" + fs + " bytes)"); } else if (fn != null) { - r.summary = "File: " + fn; - } else { - StringJoiner sj = new StringJoiner(" "); - map.forEach((k, v) -> { - String line = k + "=" + v; - sj.add(line); - }); - r.summary = sj.toString(); + sj.add("File: " + fn); + } else if (hn != null && hs != null) { + sj.add(hn + "=" + hs); } + map.forEach((k, v) -> { + String line = k + "=" + v; + sj.add(line); + }); + r.summary = sj.toString(); } else if ("filter".equals(r.nodeShortName)) { if (next != null && r.nodeId != null && r.nodeId.equals(next.nodeParentId)) { r.summary = "Filter: true";
