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 8e6564edce2c4c267a67a438a9e4f1463e0c019c Author: Claus Ibsen <[email protected]> AuthorDate: Fri Nov 21 08:49:34 2025 +0100 CAMEL-22693: Mark up EIP and endpoint headers that are of importance to make tooling, trouble shooting and development easier. --- .../resources/org/apache/camel/catalog/components/http.json | 6 +++--- .../resources/org/apache/camel/catalog/components/https.json | 6 +++--- .../resources/org/apache/camel/catalog/main/important-headers.json | 5 ++++- .../resources/META-INF/org/apache/camel/component/http/http.json | 6 +++--- .../resources/META-INF/org/apache/camel/component/http/https.json | 6 +++--- .../main/java/org/apache/camel/component/http/HttpConstants.java | 7 ++++--- .../src/main/java/org/apache/camel/util/ImportantHeaderUtils.java | 5 ++++- 7 files changed, 24 insertions(+), 17 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/http.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/http.json index f73d6d437210..5d42ffe13e24 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/http.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/http.json @@ -78,8 +78,8 @@ }, "headers": { "Content-Encoding": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The HTTP content encoding. Is set on both the IN and OUT message to provide a content encoding, such as gzip.", "constantName": "org.apache.camel.component.http.HttpConstants#CONTENT_ENCODING" }, - "CamelHttpResponseCode": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "int", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The HTTP response code from the external server. Is 200 for OK.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_RESPONSE_CODE" }, - "CamelHttpResponseText": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The HTTP response text from the external server.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_RESPONSE_TEXT" }, + "CamelHttpResponseCode": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "int", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "important": true, "description": "The HTTP response code from the external server. Is 200 for OK.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_RESPONSE_CODE" }, + "CamelHttpResponseText": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "important": true, "description": "The HTTP response text from the external server.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_RESPONSE_TEXT" }, "CamelHttpQuery": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "URI parameters. Will override existing URI parameters set directly on the endpoint.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_QUERY" }, "CamelHttpProtocolVersion": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The version of the http protocol used.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_PROTOCOL_VERSION" }, "Host": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The target host.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_HEADER_HOST" }, @@ -90,7 +90,7 @@ "CamelHttpRawQuery": { "index": 10, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The http raw query.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_RAW_QUERY" }, "CamelHttpMethod": { "index": 11, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "org.apache.camel.component.http.HttpMethods", "enum": [ "GET", "PATCH", "POST", "PUT", "DELETE", "HEAD", "OPTIONS", "TRACE" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The http method to use.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_METHOD" }, "CamelHttpCharacterEncoding": { "index": 12, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The character encoding.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_CHARACTER_ENCODING" }, - "Content-Type": { "index": 13, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The HTTP content type. Is set on both the IN and OUT message to provide a content type, such as text\/html.", "constantName": "org.apache.camel.component.http.HttpConstants#CONTENT_TYPE" } + "Content-Type": { "index": 13, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "important": true, "description": "The HTTP content type. Is set on both the IN and OUT message to provide a content type, such as text\/html.", "constantName": "org.apache.camel.component.http.HttpConstants#CONTENT_TYPE" } }, "properties": { "httpUri": { "index": 0, "kind": "path", "displayName": "Http Uri", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.net.URI", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The url of the HTTP endpoint to call." }, diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/https.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/https.json index f0a38ecc2220..bf390263401c 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/https.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/https.json @@ -78,8 +78,8 @@ }, "headers": { "Content-Encoding": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The HTTP content encoding. Is set on both the IN and OUT message to provide a content encoding, such as gzip.", "constantName": "org.apache.camel.component.http.HttpConstants#CONTENT_ENCODING" }, - "CamelHttpResponseCode": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "int", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The HTTP response code from the external server. Is 200 for OK.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_RESPONSE_CODE" }, - "CamelHttpResponseText": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The HTTP response text from the external server.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_RESPONSE_TEXT" }, + "CamelHttpResponseCode": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "int", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "important": true, "description": "The HTTP response code from the external server. Is 200 for OK.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_RESPONSE_CODE" }, + "CamelHttpResponseText": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "important": true, "description": "The HTTP response text from the external server.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_RESPONSE_TEXT" }, "CamelHttpQuery": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "URI parameters. Will override existing URI parameters set directly on the endpoint.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_QUERY" }, "CamelHttpProtocolVersion": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The version of the http protocol used.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_PROTOCOL_VERSION" }, "Host": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The target host.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_HEADER_HOST" }, @@ -90,7 +90,7 @@ "CamelHttpRawQuery": { "index": 10, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The http raw query.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_RAW_QUERY" }, "CamelHttpMethod": { "index": 11, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "org.apache.camel.component.http.HttpMethods", "enum": [ "GET", "PATCH", "POST", "PUT", "DELETE", "HEAD", "OPTIONS", "TRACE" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The http method to use.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_METHOD" }, "CamelHttpCharacterEncoding": { "index": 12, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The character encoding.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_CHARACTER_ENCODING" }, - "Content-Type": { "index": 13, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The HTTP content type. Is set on both the IN and OUT message to provide a content type, such as text\/html.", "constantName": "org.apache.camel.component.http.HttpConstants#CONTENT_TYPE" } + "Content-Type": { "index": 13, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "important": true, "description": "The HTTP content type. Is set on both the IN and OUT message to provide a content type, such as text\/html.", "constantName": "org.apache.camel.component.http.HttpConstants#CONTENT_TYPE" } }, "properties": { "httpUri": { "index": 0, "kind": "path", "displayName": "Http Uri", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.net.URI", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The url of the HTTP endpoint to call." }, diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/main/important-headers.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/main/important-headers.json index ba594b21238e..3866d38798c4 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/main/important-headers.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/main/important-headers.json @@ -2,6 +2,9 @@ "CamelAggregatedSize", "CamelFileLength", "CamelFileName", + "CamelHttpResponseCode", + "CamelHttpResponseText", "CamelSplitIndex", - "CamelSplitSize" + "CamelSplitSize", + "Content-Type" ] diff --git a/components/camel-http/src/generated/resources/META-INF/org/apache/camel/component/http/http.json b/components/camel-http/src/generated/resources/META-INF/org/apache/camel/component/http/http.json index f73d6d437210..5d42ffe13e24 100644 --- a/components/camel-http/src/generated/resources/META-INF/org/apache/camel/component/http/http.json +++ b/components/camel-http/src/generated/resources/META-INF/org/apache/camel/component/http/http.json @@ -78,8 +78,8 @@ }, "headers": { "Content-Encoding": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The HTTP content encoding. Is set on both the IN and OUT message to provide a content encoding, such as gzip.", "constantName": "org.apache.camel.component.http.HttpConstants#CONTENT_ENCODING" }, - "CamelHttpResponseCode": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "int", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The HTTP response code from the external server. Is 200 for OK.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_RESPONSE_CODE" }, - "CamelHttpResponseText": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The HTTP response text from the external server.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_RESPONSE_TEXT" }, + "CamelHttpResponseCode": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "int", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "important": true, "description": "The HTTP response code from the external server. Is 200 for OK.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_RESPONSE_CODE" }, + "CamelHttpResponseText": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "important": true, "description": "The HTTP response text from the external server.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_RESPONSE_TEXT" }, "CamelHttpQuery": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "URI parameters. Will override existing URI parameters set directly on the endpoint.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_QUERY" }, "CamelHttpProtocolVersion": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The version of the http protocol used.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_PROTOCOL_VERSION" }, "Host": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The target host.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_HEADER_HOST" }, @@ -90,7 +90,7 @@ "CamelHttpRawQuery": { "index": 10, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The http raw query.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_RAW_QUERY" }, "CamelHttpMethod": { "index": 11, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "org.apache.camel.component.http.HttpMethods", "enum": [ "GET", "PATCH", "POST", "PUT", "DELETE", "HEAD", "OPTIONS", "TRACE" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The http method to use.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_METHOD" }, "CamelHttpCharacterEncoding": { "index": 12, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The character encoding.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_CHARACTER_ENCODING" }, - "Content-Type": { "index": 13, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The HTTP content type. Is set on both the IN and OUT message to provide a content type, such as text\/html.", "constantName": "org.apache.camel.component.http.HttpConstants#CONTENT_TYPE" } + "Content-Type": { "index": 13, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "important": true, "description": "The HTTP content type. Is set on both the IN and OUT message to provide a content type, such as text\/html.", "constantName": "org.apache.camel.component.http.HttpConstants#CONTENT_TYPE" } }, "properties": { "httpUri": { "index": 0, "kind": "path", "displayName": "Http Uri", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.net.URI", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The url of the HTTP endpoint to call." }, diff --git a/components/camel-http/src/generated/resources/META-INF/org/apache/camel/component/http/https.json b/components/camel-http/src/generated/resources/META-INF/org/apache/camel/component/http/https.json index f0a38ecc2220..bf390263401c 100644 --- a/components/camel-http/src/generated/resources/META-INF/org/apache/camel/component/http/https.json +++ b/components/camel-http/src/generated/resources/META-INF/org/apache/camel/component/http/https.json @@ -78,8 +78,8 @@ }, "headers": { "Content-Encoding": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The HTTP content encoding. Is set on both the IN and OUT message to provide a content encoding, such as gzip.", "constantName": "org.apache.camel.component.http.HttpConstants#CONTENT_ENCODING" }, - "CamelHttpResponseCode": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "int", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The HTTP response code from the external server. Is 200 for OK.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_RESPONSE_CODE" }, - "CamelHttpResponseText": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The HTTP response text from the external server.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_RESPONSE_TEXT" }, + "CamelHttpResponseCode": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "int", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "important": true, "description": "The HTTP response code from the external server. Is 200 for OK.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_RESPONSE_CODE" }, + "CamelHttpResponseText": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "important": true, "description": "The HTTP response text from the external server.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_RESPONSE_TEXT" }, "CamelHttpQuery": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "URI parameters. Will override existing URI parameters set directly on the endpoint.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_QUERY" }, "CamelHttpProtocolVersion": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The version of the http protocol used.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_PROTOCOL_VERSION" }, "Host": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The target host.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_HEADER_HOST" }, @@ -90,7 +90,7 @@ "CamelHttpRawQuery": { "index": 10, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The http raw query.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_RAW_QUERY" }, "CamelHttpMethod": { "index": 11, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "org.apache.camel.component.http.HttpMethods", "enum": [ "GET", "PATCH", "POST", "PUT", "DELETE", "HEAD", "OPTIONS", "TRACE" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The http method to use.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_METHOD" }, "CamelHttpCharacterEncoding": { "index": 12, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The character encoding.", "constantName": "org.apache.camel.component.http.HttpConstants#HTTP_CHARACTER_ENCODING" }, - "Content-Type": { "index": 13, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The HTTP content type. Is set on both the IN and OUT message to provide a content type, such as text\/html.", "constantName": "org.apache.camel.component.http.HttpConstants#CONTENT_TYPE" } + "Content-Type": { "index": 13, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "important": true, "description": "The HTTP content type. Is set on both the IN and OUT message to provide a content type, such as text\/html.", "constantName": "org.apache.camel.component.http.HttpConstants#CONTENT_TYPE" } }, "properties": { "httpUri": { "index": 0, "kind": "path", "displayName": "Http Uri", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.net.URI", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The url of the HTTP endpoint to call." }, diff --git a/components/camel-http/src/main/java/org/apache/camel/component/http/HttpConstants.java b/components/camel-http/src/main/java/org/apache/camel/component/http/HttpConstants.java index 9bfe6d433dc9..6f5b1896bd01 100644 --- a/components/camel-http/src/main/java/org/apache/camel/component/http/HttpConstants.java +++ b/components/camel-http/src/main/java/org/apache/camel/component/http/HttpConstants.java @@ -31,9 +31,10 @@ public final class HttpConstants { "provide a content encoding, such as `gzip`.", javaType = "String") public static final String CONTENT_ENCODING = Exchange.CONTENT_ENCODING; - @Metadata(description = "The HTTP response code from the external server. Is 200 for OK.", javaType = "int") + @Metadata(description = "The HTTP response code from the external server. Is 200 for OK.", javaType = "int", + important = true) public static final String HTTP_RESPONSE_CODE = Exchange.HTTP_RESPONSE_CODE; - @Metadata(description = "The HTTP response text from the external server.", javaType = "String") + @Metadata(description = "The HTTP response text from the external server.", javaType = "String", important = true) public static final String HTTP_RESPONSE_TEXT = Exchange.HTTP_RESPONSE_TEXT; @Metadata(label = "producer", description = "URI parameters. Will override existing URI parameters set directly on\n" + "the endpoint.", @@ -67,7 +68,7 @@ public final class HttpConstants { public static final String HTTP_CHARACTER_ENCODING = Exchange.HTTP_CHARACTER_ENCODING; @Metadata(description = "The HTTP content type. Is set on both the IN and OUT message to provide\n" + "a content type, such as `text/html`.", - javaType = "String") + javaType = "String", important = true) public static final String CONTENT_TYPE = Exchange.CONTENT_TYPE; private HttpConstants() { diff --git a/core/camel-util/src/main/java/org/apache/camel/util/ImportantHeaderUtils.java b/core/camel-util/src/main/java/org/apache/camel/util/ImportantHeaderUtils.java index e8957dda6c67..6ff840e0f3e1 100644 --- a/core/camel-util/src/main/java/org/apache/camel/util/ImportantHeaderUtils.java +++ b/core/camel-util/src/main/java/org/apache/camel/util/ImportantHeaderUtils.java @@ -30,8 +30,11 @@ public final class ImportantHeaderUtils { "CamelAggregatedSize", "CamelFileLength", "CamelFileName", + "CamelHttpResponseCode", + "CamelHttpResponseText", "CamelSplitIndex", - "CamelSplitSize" + "CamelSplitSize", + "Content-Type" // IMPORTANT-HEADER-KEYS: END )));
