This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch http-stream in repository https://gitbox.apache.org/repos/asf/camel.git
commit 31e2f9760a5f7aad629394cadfe1c155f7d5556d Author: Claus Ibsen <[email protected]> AuthorDate: Wed Aug 21 12:24:16 2024 +0200 CAMEL-20938: http producer with disableStreamCache=true should use the raw stream as-is --- .../catalog/components/atmosphere-websocket.json | 2 +- .../org/apache/camel/catalog/components/http.json | 2 +- .../org/apache/camel/catalog/components/https.json | 2 +- .../org/apache/camel/catalog/components/jetty.json | 2 +- .../apache/camel/catalog/components/servlet.json | 2 +- .../atmosphere/websocket/atmosphere-websocket.json | 2 +- .../camel/http/common/HttpCommonEndpoint.java | 9 +- .../org/apache/camel/component/http/http.json | 2 +- .../org/apache/camel/component/http/https.json | 2 +- .../org/apache/camel/component/jetty12/jetty.json | 2 +- .../apache/camel/component/servlet/servlet.json | 2 +- .../AtmosphereWebsocketEndpointBuilderFactory.java | 192 ++++++++++----------- .../endpoint/dsl/HttpEndpointBuilderFactory.java | 64 +++---- .../dsl/JettyHttp12EndpointBuilderFactory.java | 64 +++---- .../dsl/ServletEndpointBuilderFactory.java | 64 +++---- .../kotlin/components/AtmosphereWebsocketUriDsl.kt | 44 ++--- .../apache/camel/kotlin/components/HttpUriDsl.kt | 44 ++--- .../apache/camel/kotlin/components/JettyUriDsl.kt | 44 ++--- .../camel/kotlin/components/ServletUriDsl.kt | 44 ++--- 19 files changed, 294 insertions(+), 295 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/atmosphere-websocket.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/atmosphere-websocket.json index 3d651a88826..7418cbd7a6b 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/atmosphere-websocket.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/atmosphere-websocket.json @@ -46,7 +46,7 @@ "properties": { "servicePath": { "index": 0, "kind": "path", "displayName": "Service Path", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Name of websocket endpoint" }, "chunked": { "index": 1, "kind": "parameter", "displayName": "Chunked", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "If this option is false the Servlet will disable the HTTP streaming and set the content-length header on the response" }, - "disableStreamCache": { "index": 2, "kind": "parameter", "displayName": "Disable Stream Cache", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Determines whether or not the raw input stream from Servlet is cached or not (Camel will read the stream into a in memory\/overflow to file, Stream caching) cache. By default Camel will cache the [...] + "disableStreamCache": { "index": 2, "kind": "parameter", "displayName": "Disable Stream Cache", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Determines whether or not the raw input stream is cached or not. The Camel consumer (camel-servlet, camel-jetty etc.) will by default cache the input stream to support reading it multiple times to [...] "sendToAll": { "index": 3, "kind": "parameter", "displayName": "Send To All", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether to send to all (broadcast) or send to a single receiver." }, "transferException": { "index": 4, "kind": "parameter", "displayName": "Transfer Exception", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If enabled and an Exchange failed processing on the consumer side, and if the caused Exception was send back serialized in the response as a application\/x-java-serialized-object content type. On the [...] "useStreaming": { "index": 5, "kind": "parameter", "displayName": "Use Streaming", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "To enable streaming to send data as multiple text fragments." }, 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 9b5dd2b8c72..4e5182edbb7 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 @@ -85,7 +85,7 @@ }, "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." }, - "disableStreamCache": { "index": 1, "kind": "parameter", "displayName": "Disable Stream Cache", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Determines whether or not the raw input stream from Servlet is cached or not (Camel will read the stream into a in memory\/overflow to file, Stream caching) cache. By default Camel will cache the [...] + "disableStreamCache": { "index": 1, "kind": "parameter", "displayName": "Disable Stream Cache", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Determines whether or not the raw input stream is cached or not. The Camel consumer (camel-servlet, camel-jetty etc.) will by default cache the input stream to support reading it multiple times to [...] "headerFilterStrategy": { "index": 2, "kind": "parameter", "displayName": "Header Filter Strategy", "group": "common (advanced)", "label": "common,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.spi.HeaderFilterStrategy", "deprecated": false, "autowired": false, "secret": false, "description": "To use a custom HeaderFilterStrategy to filter header to and from Camel message." }, "bridgeEndpoint": { "index": 3, "kind": "parameter", "displayName": "Bridge Endpoint", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If the option is true, HttpProducer will ignore the Exchange.HTTP_URI header, and use the endpoint's URI for request. You may also set the option throwExceptionOnFailure to be false to let the HttpProd [...] "connectionClose": { "index": 4, "kind": "parameter", "displayName": "Connection Close", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Specifies whether a Connection Close header must be added to HTTP Request. By default connectionClose is false." }, 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 51879cd6e15..ec0629e58e0 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 @@ -85,7 +85,7 @@ }, "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." }, - "disableStreamCache": { "index": 1, "kind": "parameter", "displayName": "Disable Stream Cache", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Determines whether or not the raw input stream from Servlet is cached or not (Camel will read the stream into a in memory\/overflow to file, Stream caching) cache. By default Camel will cache the [...] + "disableStreamCache": { "index": 1, "kind": "parameter", "displayName": "Disable Stream Cache", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Determines whether or not the raw input stream is cached or not. The Camel consumer (camel-servlet, camel-jetty etc.) will by default cache the input stream to support reading it multiple times to [...] "headerFilterStrategy": { "index": 2, "kind": "parameter", "displayName": "Header Filter Strategy", "group": "common (advanced)", "label": "common,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.spi.HeaderFilterStrategy", "deprecated": false, "autowired": false, "secret": false, "description": "To use a custom HeaderFilterStrategy to filter header to and from Camel message." }, "bridgeEndpoint": { "index": 3, "kind": "parameter", "displayName": "Bridge Endpoint", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If the option is true, HttpProducer will ignore the Exchange.HTTP_URI header, and use the endpoint's URI for request. You may also set the option throwExceptionOnFailure to be false to let the HttpProd [...] "connectionClose": { "index": 4, "kind": "parameter", "displayName": "Connection Close", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Specifies whether a Connection Close header must be added to HTTP Request. By default connectionClose is false." }, diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jetty.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jetty.json index dd13397fbf5..b04fc02525e 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jetty.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jetty.json @@ -70,7 +70,7 @@ "headerFilterStrategy": { "index": 1, "kind": "parameter", "displayName": "Header Filter Strategy", "group": "common (advanced)", "label": "common,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.spi.HeaderFilterStrategy", "deprecated": false, "autowired": false, "secret": false, "description": "To use a custom HeaderFilterStrategy to filter header to and from Camel message." }, "httpBinding": { "index": 2, "kind": "parameter", "displayName": "Http Binding", "group": "common (advanced)", "label": "common,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.http.common.HttpBinding", "deprecated": false, "autowired": false, "secret": false, "description": "To use a custom HttpBinding to control the mapping between Camel message and HttpClient." }, "chunked": { "index": 3, "kind": "parameter", "displayName": "Chunked", "group": "consumer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "If this option is false the Servlet will disable the HTTP streaming and set the content-length header on the response" }, - "disableStreamCache": { "index": 4, "kind": "parameter", "displayName": "Disable Stream Cache", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Determines whether or not the raw input stream from Servlet is cached or not (Camel will read the stream into a in memory\/overflow to file, Stream caching) cache. By default Camel will cache the [...] + "disableStreamCache": { "index": 4, "kind": "parameter", "displayName": "Disable Stream Cache", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Determines whether or not the raw input stream is cached or not. The Camel consumer (camel-servlet, camel-jetty etc.) will by default cache the input stream to support reading it multiple times to [...] "transferException": { "index": 5, "kind": "parameter", "displayName": "Transfer Exception", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If enabled and an Exchange failed processing on the consumer side, and if the caused Exception was send back serialized in the response as a application\/x-java-serialized-object content type. On the [...] "async": { "index": 6, "kind": "parameter", "displayName": "Async", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Configure the consumer to work in async mode" }, "continuationTimeout": { "index": 7, "kind": "parameter", "displayName": "Continuation Timeout", "group": "consumer", "label": "consumer", "required": false, "type": "integer", "javaType": "java.lang.Long", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "30000", "description": "Allows to set a timeout in millis when using Jetty as consumer (server). By default Jetty uses 30000. You can use a value of = 0 to never expire. If a timeout occurs then the request [...] diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/servlet.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/servlet.json index ab31c9512f6..dc3255f728a 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/servlet.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/servlet.json @@ -38,7 +38,7 @@ }, "properties": { "contextPath": { "index": 0, "kind": "path", "displayName": "Context Path", "group": "consumer", "label": "consumer", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The context-path to use" }, - "disableStreamCache": { "index": 1, "kind": "parameter", "displayName": "Disable Stream Cache", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Determines whether or not the raw input stream from Servlet is cached or not (Camel will read the stream into a in memory\/overflow to file, Stream caching) cache. By default Camel will cache the [...] + "disableStreamCache": { "index": 1, "kind": "parameter", "displayName": "Disable Stream Cache", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Determines whether or not the raw input stream is cached or not. The Camel consumer (camel-servlet, camel-jetty etc.) will by default cache the input stream to support reading it multiple times to [...] "headerFilterStrategy": { "index": 2, "kind": "parameter", "displayName": "Header Filter Strategy", "group": "common (advanced)", "label": "common,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.spi.HeaderFilterStrategy", "deprecated": false, "autowired": false, "secret": false, "description": "To use a custom HeaderFilterStrategy to filter header to and from Camel message." }, "httpBinding": { "index": 3, "kind": "parameter", "displayName": "Http Binding", "group": "common (advanced)", "label": "common,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.http.common.HttpBinding", "deprecated": false, "autowired": false, "secret": false, "description": "To use a custom HttpBinding to control the mapping between Camel message and HttpClient." }, "chunked": { "index": 4, "kind": "parameter", "displayName": "Chunked", "group": "consumer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "If this option is false the Servlet will disable the HTTP streaming and set the content-length header on the response" }, diff --git a/components/camel-atmosphere-websocket/src/generated/resources/META-INF/org/apache/camel/component/atmosphere/websocket/atmosphere-websocket.json b/components/camel-atmosphere-websocket/src/generated/resources/META-INF/org/apache/camel/component/atmosphere/websocket/atmosphere-websocket.json index 3d651a88826..7418cbd7a6b 100644 --- a/components/camel-atmosphere-websocket/src/generated/resources/META-INF/org/apache/camel/component/atmosphere/websocket/atmosphere-websocket.json +++ b/components/camel-atmosphere-websocket/src/generated/resources/META-INF/org/apache/camel/component/atmosphere/websocket/atmosphere-websocket.json @@ -46,7 +46,7 @@ "properties": { "servicePath": { "index": 0, "kind": "path", "displayName": "Service Path", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Name of websocket endpoint" }, "chunked": { "index": 1, "kind": "parameter", "displayName": "Chunked", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "If this option is false the Servlet will disable the HTTP streaming and set the content-length header on the response" }, - "disableStreamCache": { "index": 2, "kind": "parameter", "displayName": "Disable Stream Cache", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Determines whether or not the raw input stream from Servlet is cached or not (Camel will read the stream into a in memory\/overflow to file, Stream caching) cache. By default Camel will cache the [...] + "disableStreamCache": { "index": 2, "kind": "parameter", "displayName": "Disable Stream Cache", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Determines whether or not the raw input stream is cached or not. The Camel consumer (camel-servlet, camel-jetty etc.) will by default cache the input stream to support reading it multiple times to [...] "sendToAll": { "index": 3, "kind": "parameter", "displayName": "Send To All", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether to send to all (broadcast) or send to a single receiver." }, "transferException": { "index": 4, "kind": "parameter", "displayName": "Transfer Exception", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If enabled and an Exchange failed processing on the consumer side, and if the caused Exception was send back serialized in the response as a application\/x-java-serialized-object content type. On the [...] "useStreaming": { "index": 5, "kind": "parameter", "displayName": "Use Streaming", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "To enable streaming to send data as multiple text fragments." }, diff --git a/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpCommonEndpoint.java b/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpCommonEndpoint.java index cddef8cb34d..7ad028318c3 100644 --- a/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpCommonEndpoint.java +++ b/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpCommonEndpoint.java @@ -67,17 +67,16 @@ public abstract class HttpCommonEndpoint extends DefaultEndpoint description = "If this option is false the Servlet will disable the HTTP streaming and set the content-length header on the response") boolean chunked = true; @UriParam(label = "common", - description = "Determines whether or not the raw input stream from Servlet is cached or not" - + " (Camel will read the stream into a in memory/overflow to file, Stream caching) cache." - + " By default Camel will cache the Servlet input stream to support reading it multiple times to ensure it Camel" + description = "Determines whether or not the raw input stream is cached or not." + + " The Camel consumer (camel-servlet, camel-jetty etc.) will by default cache the input stream to support reading it multiple times to ensure it Camel" + " can retrieve all data from the stream. However you can set this option to true when you for example need" + " to access the raw stream, such as streaming it directly to a file or other persistent store." + " DefaultHttpBinding will copy the request input stream into a stream cache and put it into message body" + " if this option is false to support reading the stream multiple times." + " If you use Servlet to bridge/proxy an endpoint then consider enabling this option to improve performance," + " in case you do not need to read the message payload multiple times." - + " The http producer will by default cache the response body stream. If setting this option to true," - + " then the producers will not cache the response body stream but use the response stream as-is as the message body.") + + " The producer (camel-http) will by default cache the response body stream. If setting this option to true," + + " then the producers will not cache the response body stream but use the response stream as-is (the stream can only be read once) as the message body.") boolean disableStreamCache; @UriParam(label = "common", description = "If enabled and an Exchange failed processing on the consumer side, and if the caused Exception was send back serialized" 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 9b5dd2b8c72..4e5182edbb7 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 @@ -85,7 +85,7 @@ }, "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." }, - "disableStreamCache": { "index": 1, "kind": "parameter", "displayName": "Disable Stream Cache", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Determines whether or not the raw input stream from Servlet is cached or not (Camel will read the stream into a in memory\/overflow to file, Stream caching) cache. By default Camel will cache the [...] + "disableStreamCache": { "index": 1, "kind": "parameter", "displayName": "Disable Stream Cache", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Determines whether or not the raw input stream is cached or not. The Camel consumer (camel-servlet, camel-jetty etc.) will by default cache the input stream to support reading it multiple times to [...] "headerFilterStrategy": { "index": 2, "kind": "parameter", "displayName": "Header Filter Strategy", "group": "common (advanced)", "label": "common,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.spi.HeaderFilterStrategy", "deprecated": false, "autowired": false, "secret": false, "description": "To use a custom HeaderFilterStrategy to filter header to and from Camel message." }, "bridgeEndpoint": { "index": 3, "kind": "parameter", "displayName": "Bridge Endpoint", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If the option is true, HttpProducer will ignore the Exchange.HTTP_URI header, and use the endpoint's URI for request. You may also set the option throwExceptionOnFailure to be false to let the HttpProd [...] "connectionClose": { "index": 4, "kind": "parameter", "displayName": "Connection Close", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Specifies whether a Connection Close header must be added to HTTP Request. By default connectionClose is false." }, 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 51879cd6e15..ec0629e58e0 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 @@ -85,7 +85,7 @@ }, "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." }, - "disableStreamCache": { "index": 1, "kind": "parameter", "displayName": "Disable Stream Cache", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Determines whether or not the raw input stream from Servlet is cached or not (Camel will read the stream into a in memory\/overflow to file, Stream caching) cache. By default Camel will cache the [...] + "disableStreamCache": { "index": 1, "kind": "parameter", "displayName": "Disable Stream Cache", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Determines whether or not the raw input stream is cached or not. The Camel consumer (camel-servlet, camel-jetty etc.) will by default cache the input stream to support reading it multiple times to [...] "headerFilterStrategy": { "index": 2, "kind": "parameter", "displayName": "Header Filter Strategy", "group": "common (advanced)", "label": "common,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.spi.HeaderFilterStrategy", "deprecated": false, "autowired": false, "secret": false, "description": "To use a custom HeaderFilterStrategy to filter header to and from Camel message." }, "bridgeEndpoint": { "index": 3, "kind": "parameter", "displayName": "Bridge Endpoint", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If the option is true, HttpProducer will ignore the Exchange.HTTP_URI header, and use the endpoint's URI for request. You may also set the option throwExceptionOnFailure to be false to let the HttpProd [...] "connectionClose": { "index": 4, "kind": "parameter", "displayName": "Connection Close", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Specifies whether a Connection Close header must be added to HTTP Request. By default connectionClose is false." }, diff --git a/components/camel-jetty/src/generated/resources/META-INF/org/apache/camel/component/jetty12/jetty.json b/components/camel-jetty/src/generated/resources/META-INF/org/apache/camel/component/jetty12/jetty.json index dd13397fbf5..b04fc02525e 100644 --- a/components/camel-jetty/src/generated/resources/META-INF/org/apache/camel/component/jetty12/jetty.json +++ b/components/camel-jetty/src/generated/resources/META-INF/org/apache/camel/component/jetty12/jetty.json @@ -70,7 +70,7 @@ "headerFilterStrategy": { "index": 1, "kind": "parameter", "displayName": "Header Filter Strategy", "group": "common (advanced)", "label": "common,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.spi.HeaderFilterStrategy", "deprecated": false, "autowired": false, "secret": false, "description": "To use a custom HeaderFilterStrategy to filter header to and from Camel message." }, "httpBinding": { "index": 2, "kind": "parameter", "displayName": "Http Binding", "group": "common (advanced)", "label": "common,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.http.common.HttpBinding", "deprecated": false, "autowired": false, "secret": false, "description": "To use a custom HttpBinding to control the mapping between Camel message and HttpClient." }, "chunked": { "index": 3, "kind": "parameter", "displayName": "Chunked", "group": "consumer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "If this option is false the Servlet will disable the HTTP streaming and set the content-length header on the response" }, - "disableStreamCache": { "index": 4, "kind": "parameter", "displayName": "Disable Stream Cache", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Determines whether or not the raw input stream from Servlet is cached or not (Camel will read the stream into a in memory\/overflow to file, Stream caching) cache. By default Camel will cache the [...] + "disableStreamCache": { "index": 4, "kind": "parameter", "displayName": "Disable Stream Cache", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Determines whether or not the raw input stream is cached or not. The Camel consumer (camel-servlet, camel-jetty etc.) will by default cache the input stream to support reading it multiple times to [...] "transferException": { "index": 5, "kind": "parameter", "displayName": "Transfer Exception", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If enabled and an Exchange failed processing on the consumer side, and if the caused Exception was send back serialized in the response as a application\/x-java-serialized-object content type. On the [...] "async": { "index": 6, "kind": "parameter", "displayName": "Async", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Configure the consumer to work in async mode" }, "continuationTimeout": { "index": 7, "kind": "parameter", "displayName": "Continuation Timeout", "group": "consumer", "label": "consumer", "required": false, "type": "integer", "javaType": "java.lang.Long", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "30000", "description": "Allows to set a timeout in millis when using Jetty as consumer (server). By default Jetty uses 30000. You can use a value of = 0 to never expire. If a timeout occurs then the request [...] diff --git a/components/camel-servlet/src/generated/resources/META-INF/org/apache/camel/component/servlet/servlet.json b/components/camel-servlet/src/generated/resources/META-INF/org/apache/camel/component/servlet/servlet.json index ab31c9512f6..dc3255f728a 100644 --- a/components/camel-servlet/src/generated/resources/META-INF/org/apache/camel/component/servlet/servlet.json +++ b/components/camel-servlet/src/generated/resources/META-INF/org/apache/camel/component/servlet/servlet.json @@ -38,7 +38,7 @@ }, "properties": { "contextPath": { "index": 0, "kind": "path", "displayName": "Context Path", "group": "consumer", "label": "consumer", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The context-path to use" }, - "disableStreamCache": { "index": 1, "kind": "parameter", "displayName": "Disable Stream Cache", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Determines whether or not the raw input stream from Servlet is cached or not (Camel will read the stream into a in memory\/overflow to file, Stream caching) cache. By default Camel will cache the [...] + "disableStreamCache": { "index": 1, "kind": "parameter", "displayName": "Disable Stream Cache", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Determines whether or not the raw input stream is cached or not. The Camel consumer (camel-servlet, camel-jetty etc.) will by default cache the input stream to support reading it multiple times to [...] "headerFilterStrategy": { "index": 2, "kind": "parameter", "displayName": "Header Filter Strategy", "group": "common (advanced)", "label": "common,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.spi.HeaderFilterStrategy", "deprecated": false, "autowired": false, "secret": false, "description": "To use a custom HeaderFilterStrategy to filter header to and from Camel message." }, "httpBinding": { "index": 3, "kind": "parameter", "displayName": "Http Binding", "group": "common (advanced)", "label": "common,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.http.common.HttpBinding", "deprecated": false, "autowired": false, "secret": false, "description": "To use a custom HttpBinding to control the mapping between Camel message and HttpClient." }, "chunked": { "index": 4, "kind": "parameter", "displayName": "Chunked", "group": "consumer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "If this option is false the Servlet will disable the HTTP streaming and set the content-length header on the response" }, diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AtmosphereWebsocketEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AtmosphereWebsocketEndpointBuilderFactory.java index 3a69ba313a0..8ee72b517e7 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AtmosphereWebsocketEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/AtmosphereWebsocketEndpointBuilderFactory.java @@ -76,22 +76,22 @@ public interface AtmosphereWebsocketEndpointBuilderFactory { return this; } /** - * Determines whether or not the raw input stream from Servlet is cached - * or not (Camel will read the stream into a in memory/overflow to file, - * Stream caching) cache. By default Camel will cache the Servlet input - * stream to support reading it multiple times to ensure it Camel can - * retrieve all data from the stream. However you can set this option to - * true when you for example need to access the raw stream, such as - * streaming it directly to a file or other persistent store. - * DefaultHttpBinding will copy the request input stream into a stream - * cache and put it into message body if this option is false to support - * reading the stream multiple times. If you use Servlet to bridge/proxy - * an endpoint then consider enabling this option to improve - * performance, in case you do not need to read the message payload - * multiple times. The http producer will by default cache the response - * body stream. If setting this option to true, then the producers will - * not cache the response body stream but use the response stream as-is - * as the message body. + * Determines whether or not the raw input stream is cached or not. The + * Camel consumer (camel-servlet, camel-jetty etc.) will by default + * cache the input stream to support reading it multiple times to ensure + * it Camel can retrieve all data from the stream. However you can set + * this option to true when you for example need to access the raw + * stream, such as streaming it directly to a file or other persistent + * store. DefaultHttpBinding will copy the request input stream into a + * stream cache and put it into message body if this option is false to + * support reading the stream multiple times. If you use Servlet to + * bridge/proxy an endpoint then consider enabling this option to + * improve performance, in case you do not need to read the message + * payload multiple times. The producer (camel-http) will by default + * cache the response body stream. If setting this option to true, then + * the producers will not cache the response body stream but use the + * response stream as-is (the stream can only be read once) as the + * message body. * * The option is a: <code>boolean</code> type. * @@ -106,22 +106,22 @@ public interface AtmosphereWebsocketEndpointBuilderFactory { return this; } /** - * Determines whether or not the raw input stream from Servlet is cached - * or not (Camel will read the stream into a in memory/overflow to file, - * Stream caching) cache. By default Camel will cache the Servlet input - * stream to support reading it multiple times to ensure it Camel can - * retrieve all data from the stream. However you can set this option to - * true when you for example need to access the raw stream, such as - * streaming it directly to a file or other persistent store. - * DefaultHttpBinding will copy the request input stream into a stream - * cache and put it into message body if this option is false to support - * reading the stream multiple times. If you use Servlet to bridge/proxy - * an endpoint then consider enabling this option to improve - * performance, in case you do not need to read the message payload - * multiple times. The http producer will by default cache the response - * body stream. If setting this option to true, then the producers will - * not cache the response body stream but use the response stream as-is - * as the message body. + * Determines whether or not the raw input stream is cached or not. The + * Camel consumer (camel-servlet, camel-jetty etc.) will by default + * cache the input stream to support reading it multiple times to ensure + * it Camel can retrieve all data from the stream. However you can set + * this option to true when you for example need to access the raw + * stream, such as streaming it directly to a file or other persistent + * store. DefaultHttpBinding will copy the request input stream into a + * stream cache and put it into message body if this option is false to + * support reading the stream multiple times. If you use Servlet to + * bridge/proxy an endpoint then consider enabling this option to + * improve performance, in case you do not need to read the message + * payload multiple times. The producer (camel-http) will by default + * cache the response body stream. If setting this option to true, then + * the producers will not cache the response body stream but use the + * response stream as-is (the stream can only be read once) as the + * message body. * * The option will be converted to a <code>boolean</code> type. * @@ -922,22 +922,22 @@ public interface AtmosphereWebsocketEndpointBuilderFactory { return this; } /** - * Determines whether or not the raw input stream from Servlet is cached - * or not (Camel will read the stream into a in memory/overflow to file, - * Stream caching) cache. By default Camel will cache the Servlet input - * stream to support reading it multiple times to ensure it Camel can - * retrieve all data from the stream. However you can set this option to - * true when you for example need to access the raw stream, such as - * streaming it directly to a file or other persistent store. - * DefaultHttpBinding will copy the request input stream into a stream - * cache and put it into message body if this option is false to support - * reading the stream multiple times. If you use Servlet to bridge/proxy - * an endpoint then consider enabling this option to improve - * performance, in case you do not need to read the message payload - * multiple times. The http producer will by default cache the response - * body stream. If setting this option to true, then the producers will - * not cache the response body stream but use the response stream as-is - * as the message body. + * Determines whether or not the raw input stream is cached or not. The + * Camel consumer (camel-servlet, camel-jetty etc.) will by default + * cache the input stream to support reading it multiple times to ensure + * it Camel can retrieve all data from the stream. However you can set + * this option to true when you for example need to access the raw + * stream, such as streaming it directly to a file or other persistent + * store. DefaultHttpBinding will copy the request input stream into a + * stream cache and put it into message body if this option is false to + * support reading the stream multiple times. If you use Servlet to + * bridge/proxy an endpoint then consider enabling this option to + * improve performance, in case you do not need to read the message + * payload multiple times. The producer (camel-http) will by default + * cache the response body stream. If setting this option to true, then + * the producers will not cache the response body stream but use the + * response stream as-is (the stream can only be read once) as the + * message body. * * The option is a: <code>boolean</code> type. * @@ -952,22 +952,22 @@ public interface AtmosphereWebsocketEndpointBuilderFactory { return this; } /** - * Determines whether or not the raw input stream from Servlet is cached - * or not (Camel will read the stream into a in memory/overflow to file, - * Stream caching) cache. By default Camel will cache the Servlet input - * stream to support reading it multiple times to ensure it Camel can - * retrieve all data from the stream. However you can set this option to - * true when you for example need to access the raw stream, such as - * streaming it directly to a file or other persistent store. - * DefaultHttpBinding will copy the request input stream into a stream - * cache and put it into message body if this option is false to support - * reading the stream multiple times. If you use Servlet to bridge/proxy - * an endpoint then consider enabling this option to improve - * performance, in case you do not need to read the message payload - * multiple times. The http producer will by default cache the response - * body stream. If setting this option to true, then the producers will - * not cache the response body stream but use the response stream as-is - * as the message body. + * Determines whether or not the raw input stream is cached or not. The + * Camel consumer (camel-servlet, camel-jetty etc.) will by default + * cache the input stream to support reading it multiple times to ensure + * it Camel can retrieve all data from the stream. However you can set + * this option to true when you for example need to access the raw + * stream, such as streaming it directly to a file or other persistent + * store. DefaultHttpBinding will copy the request input stream into a + * stream cache and put it into message body if this option is false to + * support reading the stream multiple times. If you use Servlet to + * bridge/proxy an endpoint then consider enabling this option to + * improve performance, in case you do not need to read the message + * payload multiple times. The producer (camel-http) will by default + * cache the response body stream. If setting this option to true, then + * the producers will not cache the response body stream but use the + * response stream as-is (the stream can only be read once) as the + * message body. * * The option will be converted to a <code>boolean</code> type. * @@ -1289,22 +1289,22 @@ public interface AtmosphereWebsocketEndpointBuilderFactory { return this; } /** - * Determines whether or not the raw input stream from Servlet is cached - * or not (Camel will read the stream into a in memory/overflow to file, - * Stream caching) cache. By default Camel will cache the Servlet input - * stream to support reading it multiple times to ensure it Camel can - * retrieve all data from the stream. However you can set this option to - * true when you for example need to access the raw stream, such as - * streaming it directly to a file or other persistent store. - * DefaultHttpBinding will copy the request input stream into a stream - * cache and put it into message body if this option is false to support - * reading the stream multiple times. If you use Servlet to bridge/proxy - * an endpoint then consider enabling this option to improve - * performance, in case you do not need to read the message payload - * multiple times. The http producer will by default cache the response - * body stream. If setting this option to true, then the producers will - * not cache the response body stream but use the response stream as-is - * as the message body. + * Determines whether or not the raw input stream is cached or not. The + * Camel consumer (camel-servlet, camel-jetty etc.) will by default + * cache the input stream to support reading it multiple times to ensure + * it Camel can retrieve all data from the stream. However you can set + * this option to true when you for example need to access the raw + * stream, such as streaming it directly to a file or other persistent + * store. DefaultHttpBinding will copy the request input stream into a + * stream cache and put it into message body if this option is false to + * support reading the stream multiple times. If you use Servlet to + * bridge/proxy an endpoint then consider enabling this option to + * improve performance, in case you do not need to read the message + * payload multiple times. The producer (camel-http) will by default + * cache the response body stream. If setting this option to true, then + * the producers will not cache the response body stream but use the + * response stream as-is (the stream can only be read once) as the + * message body. * * The option is a: <code>boolean</code> type. * @@ -1319,22 +1319,22 @@ public interface AtmosphereWebsocketEndpointBuilderFactory { return this; } /** - * Determines whether or not the raw input stream from Servlet is cached - * or not (Camel will read the stream into a in memory/overflow to file, - * Stream caching) cache. By default Camel will cache the Servlet input - * stream to support reading it multiple times to ensure it Camel can - * retrieve all data from the stream. However you can set this option to - * true when you for example need to access the raw stream, such as - * streaming it directly to a file or other persistent store. - * DefaultHttpBinding will copy the request input stream into a stream - * cache and put it into message body if this option is false to support - * reading the stream multiple times. If you use Servlet to bridge/proxy - * an endpoint then consider enabling this option to improve - * performance, in case you do not need to read the message payload - * multiple times. The http producer will by default cache the response - * body stream. If setting this option to true, then the producers will - * not cache the response body stream but use the response stream as-is - * as the message body. + * Determines whether or not the raw input stream is cached or not. The + * Camel consumer (camel-servlet, camel-jetty etc.) will by default + * cache the input stream to support reading it multiple times to ensure + * it Camel can retrieve all data from the stream. However you can set + * this option to true when you for example need to access the raw + * stream, such as streaming it directly to a file or other persistent + * store. DefaultHttpBinding will copy the request input stream into a + * stream cache and put it into message body if this option is false to + * support reading the stream multiple times. If you use Servlet to + * bridge/proxy an endpoint then consider enabling this option to + * improve performance, in case you do not need to read the message + * payload multiple times. The producer (camel-http) will by default + * cache the response body stream. If setting this option to true, then + * the producers will not cache the response body stream but use the + * response stream as-is (the stream can only be read once) as the + * message body. * * The option will be converted to a <code>boolean</code> type. * diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/HttpEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/HttpEndpointBuilderFactory.java index ce7798d485e..deccba69442 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/HttpEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/HttpEndpointBuilderFactory.java @@ -45,22 +45,22 @@ public interface HttpEndpointBuilderFactory { } /** - * Determines whether or not the raw input stream from Servlet is cached - * or not (Camel will read the stream into a in memory/overflow to file, - * Stream caching) cache. By default Camel will cache the Servlet input - * stream to support reading it multiple times to ensure it Camel can - * retrieve all data from the stream. However you can set this option to - * true when you for example need to access the raw stream, such as - * streaming it directly to a file or other persistent store. - * DefaultHttpBinding will copy the request input stream into a stream - * cache and put it into message body if this option is false to support - * reading the stream multiple times. If you use Servlet to bridge/proxy - * an endpoint then consider enabling this option to improve - * performance, in case you do not need to read the message payload - * multiple times. The http producer will by default cache the response - * body stream. If setting this option to true, then the producers will - * not cache the response body stream but use the response stream as-is - * as the message body. + * Determines whether or not the raw input stream is cached or not. The + * Camel consumer (camel-servlet, camel-jetty etc.) will by default + * cache the input stream to support reading it multiple times to ensure + * it Camel can retrieve all data from the stream. However you can set + * this option to true when you for example need to access the raw + * stream, such as streaming it directly to a file or other persistent + * store. DefaultHttpBinding will copy the request input stream into a + * stream cache and put it into message body if this option is false to + * support reading the stream multiple times. If you use Servlet to + * bridge/proxy an endpoint then consider enabling this option to + * improve performance, in case you do not need to read the message + * payload multiple times. The producer (camel-http) will by default + * cache the response body stream. If setting this option to true, then + * the producers will not cache the response body stream but use the + * response stream as-is (the stream can only be read once) as the + * message body. * * The option is a: <code>boolean</code> type. * @@ -75,22 +75,22 @@ public interface HttpEndpointBuilderFactory { return this; } /** - * Determines whether or not the raw input stream from Servlet is cached - * or not (Camel will read the stream into a in memory/overflow to file, - * Stream caching) cache. By default Camel will cache the Servlet input - * stream to support reading it multiple times to ensure it Camel can - * retrieve all data from the stream. However you can set this option to - * true when you for example need to access the raw stream, such as - * streaming it directly to a file or other persistent store. - * DefaultHttpBinding will copy the request input stream into a stream - * cache and put it into message body if this option is false to support - * reading the stream multiple times. If you use Servlet to bridge/proxy - * an endpoint then consider enabling this option to improve - * performance, in case you do not need to read the message payload - * multiple times. The http producer will by default cache the response - * body stream. If setting this option to true, then the producers will - * not cache the response body stream but use the response stream as-is - * as the message body. + * Determines whether or not the raw input stream is cached or not. The + * Camel consumer (camel-servlet, camel-jetty etc.) will by default + * cache the input stream to support reading it multiple times to ensure + * it Camel can retrieve all data from the stream. However you can set + * this option to true when you for example need to access the raw + * stream, such as streaming it directly to a file or other persistent + * store. DefaultHttpBinding will copy the request input stream into a + * stream cache and put it into message body if this option is false to + * support reading the stream multiple times. If you use Servlet to + * bridge/proxy an endpoint then consider enabling this option to + * improve performance, in case you do not need to read the message + * payload multiple times. The producer (camel-http) will by default + * cache the response body stream. If setting this option to true, then + * the producers will not cache the response body stream but use the + * response stream as-is (the stream can only be read once) as the + * message body. * * The option will be converted to a <code>boolean</code> type. * diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JettyHttp12EndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JettyHttp12EndpointBuilderFactory.java index de8364df2c0..ff4f101eca2 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JettyHttp12EndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JettyHttp12EndpointBuilderFactory.java @@ -77,22 +77,22 @@ public interface JettyHttp12EndpointBuilderFactory { return this; } /** - * Determines whether or not the raw input stream from Servlet is cached - * or not (Camel will read the stream into a in memory/overflow to file, - * Stream caching) cache. By default Camel will cache the Servlet input - * stream to support reading it multiple times to ensure it Camel can - * retrieve all data from the stream. However you can set this option to - * true when you for example need to access the raw stream, such as - * streaming it directly to a file or other persistent store. - * DefaultHttpBinding will copy the request input stream into a stream - * cache and put it into message body if this option is false to support - * reading the stream multiple times. If you use Servlet to bridge/proxy - * an endpoint then consider enabling this option to improve - * performance, in case you do not need to read the message payload - * multiple times. The http producer will by default cache the response - * body stream. If setting this option to true, then the producers will - * not cache the response body stream but use the response stream as-is - * as the message body. + * Determines whether or not the raw input stream is cached or not. The + * Camel consumer (camel-servlet, camel-jetty etc.) will by default + * cache the input stream to support reading it multiple times to ensure + * it Camel can retrieve all data from the stream. However you can set + * this option to true when you for example need to access the raw + * stream, such as streaming it directly to a file or other persistent + * store. DefaultHttpBinding will copy the request input stream into a + * stream cache and put it into message body if this option is false to + * support reading the stream multiple times. If you use Servlet to + * bridge/proxy an endpoint then consider enabling this option to + * improve performance, in case you do not need to read the message + * payload multiple times. The producer (camel-http) will by default + * cache the response body stream. If setting this option to true, then + * the producers will not cache the response body stream but use the + * response stream as-is (the stream can only be read once) as the + * message body. * * The option is a: <code>boolean</code> type. * @@ -107,22 +107,22 @@ public interface JettyHttp12EndpointBuilderFactory { return this; } /** - * Determines whether or not the raw input stream from Servlet is cached - * or not (Camel will read the stream into a in memory/overflow to file, - * Stream caching) cache. By default Camel will cache the Servlet input - * stream to support reading it multiple times to ensure it Camel can - * retrieve all data from the stream. However you can set this option to - * true when you for example need to access the raw stream, such as - * streaming it directly to a file or other persistent store. - * DefaultHttpBinding will copy the request input stream into a stream - * cache and put it into message body if this option is false to support - * reading the stream multiple times. If you use Servlet to bridge/proxy - * an endpoint then consider enabling this option to improve - * performance, in case you do not need to read the message payload - * multiple times. The http producer will by default cache the response - * body stream. If setting this option to true, then the producers will - * not cache the response body stream but use the response stream as-is - * as the message body. + * Determines whether or not the raw input stream is cached or not. The + * Camel consumer (camel-servlet, camel-jetty etc.) will by default + * cache the input stream to support reading it multiple times to ensure + * it Camel can retrieve all data from the stream. However you can set + * this option to true when you for example need to access the raw + * stream, such as streaming it directly to a file or other persistent + * store. DefaultHttpBinding will copy the request input stream into a + * stream cache and put it into message body if this option is false to + * support reading the stream multiple times. If you use Servlet to + * bridge/proxy an endpoint then consider enabling this option to + * improve performance, in case you do not need to read the message + * payload multiple times. The producer (camel-http) will by default + * cache the response body stream. If setting this option to true, then + * the producers will not cache the response body stream but use the + * response stream as-is (the stream can only be read once) as the + * message body. * * The option will be converted to a <code>boolean</code> type. * diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ServletEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ServletEndpointBuilderFactory.java index 640153900a1..0c1ff9761f6 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ServletEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/ServletEndpointBuilderFactory.java @@ -45,22 +45,22 @@ public interface ServletEndpointBuilderFactory { } /** - * Determines whether or not the raw input stream from Servlet is cached - * or not (Camel will read the stream into a in memory/overflow to file, - * Stream caching) cache. By default Camel will cache the Servlet input - * stream to support reading it multiple times to ensure it Camel can - * retrieve all data from the stream. However you can set this option to - * true when you for example need to access the raw stream, such as - * streaming it directly to a file or other persistent store. - * DefaultHttpBinding will copy the request input stream into a stream - * cache and put it into message body if this option is false to support - * reading the stream multiple times. If you use Servlet to bridge/proxy - * an endpoint then consider enabling this option to improve - * performance, in case you do not need to read the message payload - * multiple times. The http producer will by default cache the response - * body stream. If setting this option to true, then the producers will - * not cache the response body stream but use the response stream as-is - * as the message body. + * Determines whether or not the raw input stream is cached or not. The + * Camel consumer (camel-servlet, camel-jetty etc.) will by default + * cache the input stream to support reading it multiple times to ensure + * it Camel can retrieve all data from the stream. However you can set + * this option to true when you for example need to access the raw + * stream, such as streaming it directly to a file or other persistent + * store. DefaultHttpBinding will copy the request input stream into a + * stream cache and put it into message body if this option is false to + * support reading the stream multiple times. If you use Servlet to + * bridge/proxy an endpoint then consider enabling this option to + * improve performance, in case you do not need to read the message + * payload multiple times. The producer (camel-http) will by default + * cache the response body stream. If setting this option to true, then + * the producers will not cache the response body stream but use the + * response stream as-is (the stream can only be read once) as the + * message body. * * The option is a: <code>boolean</code> type. * @@ -75,22 +75,22 @@ public interface ServletEndpointBuilderFactory { return this; } /** - * Determines whether or not the raw input stream from Servlet is cached - * or not (Camel will read the stream into a in memory/overflow to file, - * Stream caching) cache. By default Camel will cache the Servlet input - * stream to support reading it multiple times to ensure it Camel can - * retrieve all data from the stream. However you can set this option to - * true when you for example need to access the raw stream, such as - * streaming it directly to a file or other persistent store. - * DefaultHttpBinding will copy the request input stream into a stream - * cache and put it into message body if this option is false to support - * reading the stream multiple times. If you use Servlet to bridge/proxy - * an endpoint then consider enabling this option to improve - * performance, in case you do not need to read the message payload - * multiple times. The http producer will by default cache the response - * body stream. If setting this option to true, then the producers will - * not cache the response body stream but use the response stream as-is - * as the message body. + * Determines whether or not the raw input stream is cached or not. The + * Camel consumer (camel-servlet, camel-jetty etc.) will by default + * cache the input stream to support reading it multiple times to ensure + * it Camel can retrieve all data from the stream. However you can set + * this option to true when you for example need to access the raw + * stream, such as streaming it directly to a file or other persistent + * store. DefaultHttpBinding will copy the request input stream into a + * stream cache and put it into message body if this option is false to + * support reading the stream multiple times. If you use Servlet to + * bridge/proxy an endpoint then consider enabling this option to + * improve performance, in case you do not need to read the message + * payload multiple times. The producer (camel-http) will by default + * cache the response body stream. If setting this option to true, then + * the producers will not cache the response body stream but use the + * response stream as-is (the stream can only be read once) as the + * message body. * * The option will be converted to a <code>boolean</code> type. * diff --git a/dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/AtmosphereWebsocketUriDsl.kt b/dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/AtmosphereWebsocketUriDsl.kt index 249bb879784..9ca14185678 100644 --- a/dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/AtmosphereWebsocketUriDsl.kt +++ b/dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/AtmosphereWebsocketUriDsl.kt @@ -68,34 +68,34 @@ public class AtmosphereWebsocketUriDsl( } /** - * Determines whether or not the raw input stream from Servlet is cached or not (Camel will read - * the stream into a in memory/overflow to file, Stream caching) cache. By default Camel will cache - * the Servlet input stream to support reading it multiple times to ensure it Camel can retrieve all - * data from the stream. However you can set this option to true when you for example need to access - * the raw stream, such as streaming it directly to a file or other persistent store. - * DefaultHttpBinding will copy the request input stream into a stream cache and put it into message - * body if this option is false to support reading the stream multiple times. If you use Servlet to - * bridge/proxy an endpoint then consider enabling this option to improve performance, in case you do - * not need to read the message payload multiple times. The http producer will by default cache the - * response body stream. If setting this option to true, then the producers will not cache the - * response body stream but use the response stream as-is as the message body. + * Determines whether or not the raw input stream is cached or not. The Camel consumer + * (camel-servlet, camel-jetty etc.) will by default cache the input stream to support reading it + * multiple times to ensure it Camel can retrieve all data from the stream. However you can set this + * option to true when you for example need to access the raw stream, such as streaming it directly + * to a file or other persistent store. DefaultHttpBinding will copy the request input stream into a + * stream cache and put it into message body if this option is false to support reading the stream + * multiple times. If you use Servlet to bridge/proxy an endpoint then consider enabling this option + * to improve performance, in case you do not need to read the message payload multiple times. The + * producer (camel-http) will by default cache the response body stream. If setting this option to + * true, then the producers will not cache the response body stream but use the response stream as-is + * (the stream can only be read once) as the message body. */ public fun disableStreamCache(disableStreamCache: String) { it.property("disableStreamCache", disableStreamCache) } /** - * Determines whether or not the raw input stream from Servlet is cached or not (Camel will read - * the stream into a in memory/overflow to file, Stream caching) cache. By default Camel will cache - * the Servlet input stream to support reading it multiple times to ensure it Camel can retrieve all - * data from the stream. However you can set this option to true when you for example need to access - * the raw stream, such as streaming it directly to a file or other persistent store. - * DefaultHttpBinding will copy the request input stream into a stream cache and put it into message - * body if this option is false to support reading the stream multiple times. If you use Servlet to - * bridge/proxy an endpoint then consider enabling this option to improve performance, in case you do - * not need to read the message payload multiple times. The http producer will by default cache the - * response body stream. If setting this option to true, then the producers will not cache the - * response body stream but use the response stream as-is as the message body. + * Determines whether or not the raw input stream is cached or not. The Camel consumer + * (camel-servlet, camel-jetty etc.) will by default cache the input stream to support reading it + * multiple times to ensure it Camel can retrieve all data from the stream. However you can set this + * option to true when you for example need to access the raw stream, such as streaming it directly + * to a file or other persistent store. DefaultHttpBinding will copy the request input stream into a + * stream cache and put it into message body if this option is false to support reading the stream + * multiple times. If you use Servlet to bridge/proxy an endpoint then consider enabling this option + * to improve performance, in case you do not need to read the message payload multiple times. The + * producer (camel-http) will by default cache the response body stream. If setting this option to + * true, then the producers will not cache the response body stream but use the response stream as-is + * (the stream can only be read once) as the message body. */ public fun disableStreamCache(disableStreamCache: Boolean) { it.property("disableStreamCache", disableStreamCache.toString()) diff --git a/dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/HttpUriDsl.kt b/dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/HttpUriDsl.kt index a1283611219..17616904b2f 100644 --- a/dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/HttpUriDsl.kt +++ b/dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/HttpUriDsl.kt @@ -52,34 +52,34 @@ public class HttpUriDsl( } /** - * Determines whether or not the raw input stream from Servlet is cached or not (Camel will read - * the stream into a in memory/overflow to file, Stream caching) cache. By default Camel will cache - * the Servlet input stream to support reading it multiple times to ensure it Camel can retrieve all - * data from the stream. However you can set this option to true when you for example need to access - * the raw stream, such as streaming it directly to a file or other persistent store. - * DefaultHttpBinding will copy the request input stream into a stream cache and put it into message - * body if this option is false to support reading the stream multiple times. If you use Servlet to - * bridge/proxy an endpoint then consider enabling this option to improve performance, in case you do - * not need to read the message payload multiple times. The http producer will by default cache the - * response body stream. If setting this option to true, then the producers will not cache the - * response body stream but use the response stream as-is as the message body. + * Determines whether or not the raw input stream is cached or not. The Camel consumer + * (camel-servlet, camel-jetty etc.) will by default cache the input stream to support reading it + * multiple times to ensure it Camel can retrieve all data from the stream. However you can set this + * option to true when you for example need to access the raw stream, such as streaming it directly + * to a file or other persistent store. DefaultHttpBinding will copy the request input stream into a + * stream cache and put it into message body if this option is false to support reading the stream + * multiple times. If you use Servlet to bridge/proxy an endpoint then consider enabling this option + * to improve performance, in case you do not need to read the message payload multiple times. The + * producer (camel-http) will by default cache the response body stream. If setting this option to + * true, then the producers will not cache the response body stream but use the response stream as-is + * (the stream can only be read once) as the message body. */ public fun disableStreamCache(disableStreamCache: String) { it.property("disableStreamCache", disableStreamCache) } /** - * Determines whether or not the raw input stream from Servlet is cached or not (Camel will read - * the stream into a in memory/overflow to file, Stream caching) cache. By default Camel will cache - * the Servlet input stream to support reading it multiple times to ensure it Camel can retrieve all - * data from the stream. However you can set this option to true when you for example need to access - * the raw stream, such as streaming it directly to a file or other persistent store. - * DefaultHttpBinding will copy the request input stream into a stream cache and put it into message - * body if this option is false to support reading the stream multiple times. If you use Servlet to - * bridge/proxy an endpoint then consider enabling this option to improve performance, in case you do - * not need to read the message payload multiple times. The http producer will by default cache the - * response body stream. If setting this option to true, then the producers will not cache the - * response body stream but use the response stream as-is as the message body. + * Determines whether or not the raw input stream is cached or not. The Camel consumer + * (camel-servlet, camel-jetty etc.) will by default cache the input stream to support reading it + * multiple times to ensure it Camel can retrieve all data from the stream. However you can set this + * option to true when you for example need to access the raw stream, such as streaming it directly + * to a file or other persistent store. DefaultHttpBinding will copy the request input stream into a + * stream cache and put it into message body if this option is false to support reading the stream + * multiple times. If you use Servlet to bridge/proxy an endpoint then consider enabling this option + * to improve performance, in case you do not need to read the message payload multiple times. The + * producer (camel-http) will by default cache the response body stream. If setting this option to + * true, then the producers will not cache the response body stream but use the response stream as-is + * (the stream can only be read once) as the message body. */ public fun disableStreamCache(disableStreamCache: Boolean) { it.property("disableStreamCache", disableStreamCache.toString()) diff --git a/dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/JettyUriDsl.kt b/dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/JettyUriDsl.kt index f8c621a97b1..36a197852ba 100644 --- a/dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/JettyUriDsl.kt +++ b/dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/JettyUriDsl.kt @@ -82,34 +82,34 @@ public class JettyUriDsl( } /** - * Determines whether or not the raw input stream from Servlet is cached or not (Camel will read - * the stream into a in memory/overflow to file, Stream caching) cache. By default Camel will cache - * the Servlet input stream to support reading it multiple times to ensure it Camel can retrieve all - * data from the stream. However you can set this option to true when you for example need to access - * the raw stream, such as streaming it directly to a file or other persistent store. - * DefaultHttpBinding will copy the request input stream into a stream cache and put it into message - * body if this option is false to support reading the stream multiple times. If you use Servlet to - * bridge/proxy an endpoint then consider enabling this option to improve performance, in case you do - * not need to read the message payload multiple times. The http producer will by default cache the - * response body stream. If setting this option to true, then the producers will not cache the - * response body stream but use the response stream as-is as the message body. + * Determines whether or not the raw input stream is cached or not. The Camel consumer + * (camel-servlet, camel-jetty etc.) will by default cache the input stream to support reading it + * multiple times to ensure it Camel can retrieve all data from the stream. However you can set this + * option to true when you for example need to access the raw stream, such as streaming it directly + * to a file or other persistent store. DefaultHttpBinding will copy the request input stream into a + * stream cache and put it into message body if this option is false to support reading the stream + * multiple times. If you use Servlet to bridge/proxy an endpoint then consider enabling this option + * to improve performance, in case you do not need to read the message payload multiple times. The + * producer (camel-http) will by default cache the response body stream. If setting this option to + * true, then the producers will not cache the response body stream but use the response stream as-is + * (the stream can only be read once) as the message body. */ public fun disableStreamCache(disableStreamCache: String) { it.property("disableStreamCache", disableStreamCache) } /** - * Determines whether or not the raw input stream from Servlet is cached or not (Camel will read - * the stream into a in memory/overflow to file, Stream caching) cache. By default Camel will cache - * the Servlet input stream to support reading it multiple times to ensure it Camel can retrieve all - * data from the stream. However you can set this option to true when you for example need to access - * the raw stream, such as streaming it directly to a file or other persistent store. - * DefaultHttpBinding will copy the request input stream into a stream cache and put it into message - * body if this option is false to support reading the stream multiple times. If you use Servlet to - * bridge/proxy an endpoint then consider enabling this option to improve performance, in case you do - * not need to read the message payload multiple times. The http producer will by default cache the - * response body stream. If setting this option to true, then the producers will not cache the - * response body stream but use the response stream as-is as the message body. + * Determines whether or not the raw input stream is cached or not. The Camel consumer + * (camel-servlet, camel-jetty etc.) will by default cache the input stream to support reading it + * multiple times to ensure it Camel can retrieve all data from the stream. However you can set this + * option to true when you for example need to access the raw stream, such as streaming it directly + * to a file or other persistent store. DefaultHttpBinding will copy the request input stream into a + * stream cache and put it into message body if this option is false to support reading the stream + * multiple times. If you use Servlet to bridge/proxy an endpoint then consider enabling this option + * to improve performance, in case you do not need to read the message payload multiple times. The + * producer (camel-http) will by default cache the response body stream. If setting this option to + * true, then the producers will not cache the response body stream but use the response stream as-is + * (the stream can only be read once) as the message body. */ public fun disableStreamCache(disableStreamCache: Boolean) { it.property("disableStreamCache", disableStreamCache.toString()) diff --git a/dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/ServletUriDsl.kt b/dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/ServletUriDsl.kt index 94822fd81dc..a2f2d3a5fe7 100644 --- a/dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/ServletUriDsl.kt +++ b/dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/ServletUriDsl.kt @@ -52,34 +52,34 @@ public class ServletUriDsl( } /** - * Determines whether or not the raw input stream from Servlet is cached or not (Camel will read - * the stream into a in memory/overflow to file, Stream caching) cache. By default Camel will cache - * the Servlet input stream to support reading it multiple times to ensure it Camel can retrieve all - * data from the stream. However you can set this option to true when you for example need to access - * the raw stream, such as streaming it directly to a file or other persistent store. - * DefaultHttpBinding will copy the request input stream into a stream cache and put it into message - * body if this option is false to support reading the stream multiple times. If you use Servlet to - * bridge/proxy an endpoint then consider enabling this option to improve performance, in case you do - * not need to read the message payload multiple times. The http producer will by default cache the - * response body stream. If setting this option to true, then the producers will not cache the - * response body stream but use the response stream as-is as the message body. + * Determines whether or not the raw input stream is cached or not. The Camel consumer + * (camel-servlet, camel-jetty etc.) will by default cache the input stream to support reading it + * multiple times to ensure it Camel can retrieve all data from the stream. However you can set this + * option to true when you for example need to access the raw stream, such as streaming it directly + * to a file or other persistent store. DefaultHttpBinding will copy the request input stream into a + * stream cache and put it into message body if this option is false to support reading the stream + * multiple times. If you use Servlet to bridge/proxy an endpoint then consider enabling this option + * to improve performance, in case you do not need to read the message payload multiple times. The + * producer (camel-http) will by default cache the response body stream. If setting this option to + * true, then the producers will not cache the response body stream but use the response stream as-is + * (the stream can only be read once) as the message body. */ public fun disableStreamCache(disableStreamCache: String) { it.property("disableStreamCache", disableStreamCache) } /** - * Determines whether or not the raw input stream from Servlet is cached or not (Camel will read - * the stream into a in memory/overflow to file, Stream caching) cache. By default Camel will cache - * the Servlet input stream to support reading it multiple times to ensure it Camel can retrieve all - * data from the stream. However you can set this option to true when you for example need to access - * the raw stream, such as streaming it directly to a file or other persistent store. - * DefaultHttpBinding will copy the request input stream into a stream cache and put it into message - * body if this option is false to support reading the stream multiple times. If you use Servlet to - * bridge/proxy an endpoint then consider enabling this option to improve performance, in case you do - * not need to read the message payload multiple times. The http producer will by default cache the - * response body stream. If setting this option to true, then the producers will not cache the - * response body stream but use the response stream as-is as the message body. + * Determines whether or not the raw input stream is cached or not. The Camel consumer + * (camel-servlet, camel-jetty etc.) will by default cache the input stream to support reading it + * multiple times to ensure it Camel can retrieve all data from the stream. However you can set this + * option to true when you for example need to access the raw stream, such as streaming it directly + * to a file or other persistent store. DefaultHttpBinding will copy the request input stream into a + * stream cache and put it into message body if this option is false to support reading the stream + * multiple times. If you use Servlet to bridge/proxy an endpoint then consider enabling this option + * to improve performance, in case you do not need to read the message payload multiple times. The + * producer (camel-http) will by default cache the response body stream. If setting this option to + * true, then the producers will not cache the response body stream but use the response stream as-is + * (the stream can only be read once) as the message body. */ public fun disableStreamCache(disableStreamCache: Boolean) { it.property("disableStreamCache", disableStreamCache.toString())
