This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git


The following commit(s) were added to refs/heads/master by this push:
     new ddb9281  [create-pull-request] automated change
ddb9281 is described below

commit ddb9281f7a417395f5f17e0125d3135894783ca5
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Feb 16 00:47:29 2021 +0000

    [create-pull-request] automated change
---
 .../apache/camel/springboot/catalog/components.properties |  2 +-
 .../camel/springboot/catalog/components/resteasy.json     |  1 +
 .../src/main/docs/resteasy-starter.adoc                   |  3 ++-
 .../springboot/ResteasyComponentConfiguration.java        | 15 +++++++++++++++
 docs/modules/ROOT/pages/resteasy-starter.adoc             |  3 ++-
 5 files changed, 21 insertions(+), 3 deletions(-)

diff --git 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components.properties
 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components.properties
index 9593ab9..6196f91 100644
--- 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components.properties
+++ 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components.properties
@@ -360,4 +360,4 @@ xslt-saxon
 yammer
 zendesk
 zookeeper
-zookeeper-master
+zookeeper-master
\ No newline at end of file
diff --git 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/resteasy.json
 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/resteasy.json
index 964d7f1..730d83c 100644
--- 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/resteasy.json
+++ 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/resteasy.json
@@ -27,6 +27,7 @@
     "bridgeErrorHandler": { "kind": "property", "displayName": "Bridge Error 
Handler", "group": "consumer", "label": "consumer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "Allows for bridging the 
consumer to the Camel routing Error Handler, which mean any exceptions occurred 
while the consumer is trying to pickup incoming messages, or the likes, will 
now be processed as a me [...]
     "proxyConsumersClasses": { "kind": "property", "displayName": "Proxy 
Consumers Classes", "group": "consumer", "label": "consumer", "required": 
false, "type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "description": "Proxy classes for consumer 
endpoints. Multiple classes can be separated by comma." },
     "lazyStartProducer": { "kind": "property", "displayName": "Lazy Start 
Producer", "group": "producer", "label": "producer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "Whether the producer 
should be started lazy (on the first message). By starting lazy you can use 
this to allow CamelContext and routes to startup in situations where a producer 
may otherwise fail during star [...]
+    "responsePayloadStreamingThreshold": { "kind": "property", "displayName": 
"Response Payload Streaming Threshold", "group": "producer", "label": 
"producer", "required": false, "type": "integer", "javaType": "int", 
"deprecated": false, "autowired": false, "secret": false, "defaultValue": 8192, 
"description": "This threshold in bytes controls whether the response payload 
should be stored in memory as a byte array or be streaming based. Set this to 
-1 to always use streaming mode." },
     "allowJavaSerializedObject": { "kind": "property", "displayName": "Allow 
Java Serialized Object", "group": "advanced", "label": "advanced", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, "description": 
"Whether to allow java serialization when a request uses 
context-type=application\/x-java-serialized-object. This is by default turned 
off. If you enable this then be aware that Java will des [...]
     "autowiredEnabled": { "kind": "property", "displayName": "Autowired 
Enabled", "group": "advanced", "label": "advanced", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": true, "description": "Whether autowiring is 
enabled. This is used for automatic autowiring options (the option must be 
marked as autowired) by looking up in the registry to find if there is a single 
instance of matching type, which t [...]
     "headerFilterStrategy": { "kind": "property", "displayName": "Header 
Filter Strategy", "group": "filter", "label": "filter", "required": false, 
"type": "object", "javaType": "org.apache.camel.spi.HeaderFilterStrategy", 
"deprecated": false, "autowired": false, "secret": false, "description": "To 
use a custom org.apache.camel.spi.HeaderFilterStrategy to filter header to and 
from Camel message." }
diff --git 
a/components-starter/camel-resteasy-starter/src/main/docs/resteasy-starter.adoc 
b/components-starter/camel-resteasy-starter/src/main/docs/resteasy-starter.adoc
index 6d4a2cd..125e55e 100644
--- 
a/components-starter/camel-resteasy-starter/src/main/docs/resteasy-starter.adoc
+++ 
b/components-starter/camel-resteasy-starter/src/main/docs/resteasy-starter.adoc
@@ -17,7 +17,7 @@ When using resteasy with Spring Boot make sure to use the 
following Maven depend
 ----
 
 
-The component supports 7 options, which are listed below.
+The component supports 8 options, which are listed below.
 
 
 
@@ -31,5 +31,6 @@ The component supports 7 options, which are listed below.
 | *camel.component.resteasy.header-filter-strategy* | To use a custom 
org.apache.camel.spi.HeaderFilterStrategy to filter header to and from Camel 
message. The option is a org.apache.camel.spi.HeaderFilterStrategy type. |  | 
HeaderFilterStrategy
 | *camel.component.resteasy.lazy-start-producer* | Whether the producer should 
be started lazy (on the first message). By starting lazy you can use this to 
allow CamelContext and routes to startup in situations where a producer may 
otherwise fail during starting and cause the route to fail being started. By 
deferring this startup to be lazy then the startup failure can be handled 
during routing messages via Camel's routing error handlers. Beware that when 
the first message is processed t [...]
 | *camel.component.resteasy.proxy-consumers-classes* | Proxy classes for 
consumer endpoints. Multiple classes can be separated by comma. |  | String
+| *camel.component.resteasy.response-payload-streaming-threshold* | This 
threshold in bytes controls whether the response payload should be stored in 
memory as a byte array or be streaming based. Set this to -1 to always use 
streaming mode. | 8192 | Integer
 |===
 // spring-boot-auto-configure options: END
diff --git 
a/components-starter/camel-resteasy-starter/src/main/java/org/apache/camel/component/resteasy/springboot/ResteasyComponentConfiguration.java
 
b/components-starter/camel-resteasy-starter/src/main/java/org/apache/camel/component/resteasy/springboot/ResteasyComponentConfiguration.java
index ace8c16..715c240 100644
--- 
a/components-starter/camel-resteasy-starter/src/main/java/org/apache/camel/component/resteasy/springboot/ResteasyComponentConfiguration.java
+++ 
b/components-starter/camel-resteasy-starter/src/main/java/org/apache/camel/component/resteasy/springboot/ResteasyComponentConfiguration.java
@@ -63,6 +63,12 @@ public class ResteasyComponentConfiguration
      */
     private Boolean lazyStartProducer = false;
     /**
+     * This threshold in bytes controls whether the response payload should be
+     * stored in memory as a byte array or be streaming based. Set this to -1 
to
+     * always use streaming mode.
+     */
+    private Integer responsePayloadStreamingThreshold = 8192;
+    /**
      * Whether to allow java serialization when a request uses
      * context-type=application/x-java-serialized-object. This is by default
      * turned off. If you enable this then be aware that Java will deserialize
@@ -110,6 +116,15 @@ public class ResteasyComponentConfiguration
         this.lazyStartProducer = lazyStartProducer;
     }
 
+    public Integer getResponsePayloadStreamingThreshold() {
+        return responsePayloadStreamingThreshold;
+    }
+
+    public void setResponsePayloadStreamingThreshold(
+            Integer responsePayloadStreamingThreshold) {
+        this.responsePayloadStreamingThreshold = 
responsePayloadStreamingThreshold;
+    }
+
     public Boolean getAllowJavaSerializedObject() {
         return allowJavaSerializedObject;
     }
diff --git a/docs/modules/ROOT/pages/resteasy-starter.adoc 
b/docs/modules/ROOT/pages/resteasy-starter.adoc
index 6d4a2cd..125e55e 100644
--- a/docs/modules/ROOT/pages/resteasy-starter.adoc
+++ b/docs/modules/ROOT/pages/resteasy-starter.adoc
@@ -17,7 +17,7 @@ When using resteasy with Spring Boot make sure to use the 
following Maven depend
 ----
 
 
-The component supports 7 options, which are listed below.
+The component supports 8 options, which are listed below.
 
 
 
@@ -31,5 +31,6 @@ The component supports 7 options, which are listed below.
 | *camel.component.resteasy.header-filter-strategy* | To use a custom 
org.apache.camel.spi.HeaderFilterStrategy to filter header to and from Camel 
message. The option is a org.apache.camel.spi.HeaderFilterStrategy type. |  | 
HeaderFilterStrategy
 | *camel.component.resteasy.lazy-start-producer* | Whether the producer should 
be started lazy (on the first message). By starting lazy you can use this to 
allow CamelContext and routes to startup in situations where a producer may 
otherwise fail during starting and cause the route to fail being started. By 
deferring this startup to be lazy then the startup failure can be handled 
during routing messages via Camel's routing error handlers. Beware that when 
the first message is processed t [...]
 | *camel.component.resteasy.proxy-consumers-classes* | Proxy classes for 
consumer endpoints. Multiple classes can be separated by comma. |  | String
+| *camel.component.resteasy.response-payload-streaming-threshold* | This 
threshold in bytes controls whether the response payload should be stored in 
memory as a byte array or be streaming based. Set this to -1 to always use 
streaming mode. | 8192 | Integer
 |===
 // spring-boot-auto-configure options: END

Reply via email to