[camel-spring-boot] branch master updated (ef965b3 -> 63e6913)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[camel-spring-boot] branch master updated (ef965b3 -> 63e6913)

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

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


    from ef965b3  Regen
     new 0ee63bc  CAMEL-14565: Add docs for missing option
     new 63e6913  CAMEL-14565: Add docs for missing option

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../springboot/catalog/components/yammer.json      |  2 ++
 .../src/main/docs/undertow-starter.adoc            | 11 ++++----
 .../springboot/UndertowComponentConfiguration.java | 15 +++++++++++
 .../src/main/docs/yammer-starter.adoc              |  7 +++--
 .../springboot/YammerComponentConfiguration.java   | 31 +++++++++++++---------
 5 files changed, 44 insertions(+), 22 deletions(-)

Reply | Threaded
Open this post in threaded view
|

[camel-spring-boot] 01/02: CAMEL-14565: Add docs for missing option

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

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

commit 0ee63bccf30356c7b7a3a2b5cac516001c9e5951
Author: Claus Ibsen <[hidden email]>
AuthorDate: Sat Feb 15 14:40:49 2020 +0100

    CAMEL-14565: Add docs for missing option
---
 .../src/main/docs/undertow-starter.adoc                   | 11 +++++------
 .../springboot/UndertowComponentConfiguration.java        | 15 +++++++++++++++
 2 files changed, 20 insertions(+), 6 deletions(-)

diff --git a/components-starter/camel-undertow-starter/src/main/docs/undertow-starter.adoc b/components-starter/camel-undertow-starter/src/main/docs/undertow-starter.adoc
index d4ce27c..8f3effc 100644
--- a/components-starter/camel-undertow-starter/src/main/docs/undertow-starter.adoc
+++ b/components-starter/camel-undertow-starter/src/main/docs/undertow-starter.adoc
@@ -27,16 +27,15 @@ The component supports 13 options, which are listed below.
 | *camel.component.undertow.basic-property-binding* | Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | Boolean
 | *camel.component.undertow.bridge-error-handler* | 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 message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | Boolean
 | *camel.component.undertow.enabled* | Whether to enable auto configuration of the undertow component. This is enabled by default. |  | Boolean
-| *camel.component.undertow.host-options.buffer-size* |  |  | Integer
-| *camel.component.undertow.host-options.direct-buffers* |  |  | Boolean
-| *camel.component.undertow.host-options.http2-enabled* |  |  | Boolean
-| *camel.component.undertow.host-options.io-threads* |  |  | Integer
-| *camel.component.undertow.host-options.worker-threads* |  |  | Integer
+| *camel.component.undertow.host-options.buffer-size* | The buffer size of the Undertow host. |  | Integer
+| *camel.component.undertow.host-options.direct-buffers* | Set if the Undertow host should use direct buffers. |  | Boolean
+| *camel.component.undertow.host-options.http2-enabled* | Set if the Undertow host should use http2 protocol. |  | Boolean
+| *camel.component.undertow.host-options.io-threads* | The number of io threads to use in a Undertow host. |  | Integer
+| *camel.component.undertow.host-options.worker-threads* | The number of worker threads to use in a Undertow host. |  | Integer
 | *camel.component.undertow.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.undertow.mute-exception* | If enabled and an Exchange failed processing on the consumer side the response's body won't contain the exception's stack trace. | false | Boolean
 | *camel.component.undertow.ssl-context-parameters* | To configure security using SSLContextParameters. The option is a org.apache.camel.support.jsse.SSLContextParameters type. |  | String
 | *camel.component.undertow.undertow-http-binding* | To use a custom HttpBinding to control the mapping between Camel message and HttpClient. The option is a org.apache.camel.component.undertow.UndertowHttpBinding type. |  | String
 | *camel.component.undertow.use-global-ssl-context-parameters* | Enable usage of global SSL context parameters. | false | Boolean
 |===
-
 // spring-boot-auto-configure options: END
diff --git a/components-starter/camel-undertow-starter/src/main/java/org/apache/camel/component/undertow/springboot/UndertowComponentConfiguration.java b/components-starter/camel-undertow-starter/src/main/java/org/apache/camel/component/undertow/springboot/UndertowComponentConfiguration.java
index dbfd25c..b5b291c 100644
--- a/components-starter/camel-undertow-starter/src/main/java/org/apache/camel/component/undertow/springboot/UndertowComponentConfiguration.java
+++ b/components-starter/camel-undertow-starter/src/main/java/org/apache/camel/component/undertow/springboot/UndertowComponentConfiguration.java
@@ -155,10 +155,25 @@ public class UndertowComponentConfiguration
 
     public static class UndertowHostOptionsNestedConfiguration {
         public static final Class CAMEL_NESTED_CLASS = org.apache.camel.component.undertow.UndertowHostOptions.class;
+        /**
+         * The buffer size of the Undertow host.
+         */
         private Integer bufferSize;
+        /**
+         * Set if the Undertow host should use direct buffers.
+         */
         private Boolean directBuffers;
+        /**
+         * Set if the Undertow host should use http2 protocol.
+         */
         private Boolean http2Enabled;
+        /**
+         * The number of io threads to use in a Undertow host.
+         */
         private Integer ioThreads;
+        /**
+         * The number of worker threads to use in a Undertow host.
+         */
         private Integer workerThreads;
 
         public Integer getBufferSize() {

Reply | Threaded
Open this post in threaded view
|

[camel-spring-boot] 02/02: CAMEL-14565: Add docs for missing option

davsclaus-2
In reply to this post by davsclaus-2
This is an automated email from the ASF dual-hosted git repository.

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

commit 63e69137eac49fa236d19455eb2a1ac1b003d7a6
Author: Claus Ibsen <[hidden email]>
AuthorDate: Sat Feb 15 15:03:38 2020 +0100

    CAMEL-14565: Add docs for missing option
---
 .../springboot/catalog/components/yammer.json      |  2 ++
 .../src/main/docs/yammer-starter.adoc              |  7 +++--
 .../springboot/YammerComponentConfiguration.java   | 31 +++++++++++++---------
 3 files changed, 24 insertions(+), 16 deletions(-)

diff --git a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/yammer.json b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/yammer.json
index bd35901..1600ca7 100644
--- a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/yammer.json
+++ b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/yammer.json
@@ -23,6 +23,7 @@
     "lazyStartProducer": { "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": 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 starting and cause the r [...]
     "basicPropertyBinding": { "kind": "property", "displayName": "Basic Property Binding", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities" },
     "config": { "kind": "property", "displayName": "Config", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.yammer.YammerConfiguration", "deprecated": false, "secret": false, "description": "To use a shared yammer configuration" },
+    "requestor": { "kind": "property", "displayName": "Requestor", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.yammer.ApiRequestor", "deprecated": false, "secret": false, "description": "To use a specific requester to communicate with Yammer." },
     "accessToken": { "kind": "property", "displayName": "Access Token", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": true, "description": "The access token" },
     "consumerKey": { "kind": "property", "displayName": "Consumer Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": true, "description": "The consumer key" },
     "consumerSecret": { "kind": "property", "displayName": "Consumer Secret", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": true, "description": "The consumer secret" }
@@ -43,6 +44,7 @@
     "pollStrategy": { "kind": "parameter", "displayName": "Poll Strategy", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.spi.PollingConsumerPollStrategy", "deprecated": false, "secret": false, "description": "A pluggable org.apache.camel.PollingConsumerPollingStrategy allowing you to provide your custom implementation to control error handling usually occurred during the poll operation before an Exchange h [...]
     "lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": 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 starting and cause the  [...]
     "basicPropertyBinding": { "kind": "parameter", "displayName": "Basic Property Binding", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities" },
+    "requestor": { "kind": "parameter", "displayName": "Requestor", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.yammer.ApiRequestor", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.yammer.YammerConfiguration", "configurationField": "config", "description": "To use a specific requester to communicate with Yammer." },
     "synchronous": { "kind": "parameter", "displayName": "Synchronous", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "false", "description": "Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported)." },
     "backoffErrorThreshold": { "kind": "parameter", "displayName": "Backoff Error Threshold", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "secret": false, "description": "The number of subsequent error polls (failed due some error) that should happen before the backoffMultipler should kick-in." },
     "backoffIdleThreshold": { "kind": "parameter", "displayName": "Backoff Idle Threshold", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "secret": false, "description": "The number of subsequent idle polls that should happen before the backoffMultipler should kick-in." },
diff --git a/components-starter/camel-yammer-starter/src/main/docs/yammer-starter.adoc b/components-starter/camel-yammer-starter/src/main/docs/yammer-starter.adoc
index 04febd1..a070ec2 100644
--- a/components-starter/camel-yammer-starter/src/main/docs/yammer-starter.adoc
+++ b/components-starter/camel-yammer-starter/src/main/docs/yammer-starter.adoc
@@ -31,12 +31,11 @@ The component supports 20 options, which are listed below.
 | *camel.component.yammer.config.consumer-key* | The consumer key |  | String
 | *camel.component.yammer.config.consumer-secret* | The consumer secret |  | String
 | *camel.component.yammer.config.delay* | Delay between polling in millis | 5000 | Long
-| *camel.component.yammer.config.function* | The function to use |  | String
-| *camel.component.yammer.config.function-type* |  |  | YammerFunctionType
+| *camel.component.yammer.config.function* | The function to use |  | YammerFunctionType
 | *camel.component.yammer.config.limit* | Return only the specified number of messages. Works for threaded=true and threaded=extended. | -1 | Integer
 | *camel.component.yammer.config.newer-than* | Returns messages newer than the message ID specified as a numeric string. This should be used when polling for new messages. If you're looking at messages, and the most recent message returned is 3516, you can make a request with the parameter newerThan=3516 to ensure that you do not get duplicate copies of messages already on your page. | -1 | Long
 | *camel.component.yammer.config.older-than* | Returns messages older than the message ID specified as a numeric string. This is useful for paginating messages. For example, if you're currently viewing 20 messages and the oldest is number 2912, you could append olderThan=2912 to your request to get the 20 messages prior to those you're seeing. | -1 | Long
-| *camel.component.yammer.config.requestor* |  |  | ApiRequestor
+| *camel.component.yammer.config.requestor* | To use a specific requester to communicate with Yammer. |  | ApiRequestor
 | *camel.component.yammer.config.threaded* | threaded=true will only return the first message in each thread. This parameter is intended for apps which display message threads collapsed. threaded=extended will return the thread starter messages in order of most recently active as well as the two most recent messages, as they are viewed in the default view on the Yammer web interface. |  | String
 | *camel.component.yammer.config.use-json* | Set to true if you want to use raw JSON rather than converting to POJOs. | false | Boolean
 | *camel.component.yammer.config.user-id* | The user id |  | String
@@ -44,6 +43,6 @@ The component supports 20 options, which are listed below.
 | *camel.component.yammer.consumer-secret* | The consumer secret |  | String
 | *camel.component.yammer.enabled* | Whether to enable auto configuration of the yammer component. This is enabled by default. |  | Boolean
 | *camel.component.yammer.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 the [...]
+| *camel.component.yammer.requestor* | To use a specific requester to communicate with Yammer. The option is a org.apache.camel.component.yammer.ApiRequestor type. |  | String
 |===
-
 // spring-boot-auto-configure options: END
diff --git a/components-starter/camel-yammer-starter/src/main/java/org/apache/camel/component/yammer/springboot/YammerComponentConfiguration.java b/components-starter/camel-yammer-starter/src/main/java/org/apache/camel/component/yammer/springboot/YammerComponentConfiguration.java
index d138e7b..2989da1 100644
--- a/components-starter/camel-yammer-starter/src/main/java/org/apache/camel/component/yammer/springboot/YammerComponentConfiguration.java
+++ b/components-starter/camel-yammer-starter/src/main/java/org/apache/camel/component/yammer/springboot/YammerComponentConfiguration.java
@@ -69,6 +69,11 @@ public class YammerComponentConfiguration
      */
     private YammerConfigurationNestedConfiguration config;
     /**
+     * To use a specific requester to communicate with Yammer. The option is a
+     * org.apache.camel.component.yammer.ApiRequestor type.
+     */
+    private String requestor;
+    /**
      * The access token
      */
     private String accessToken;
@@ -113,6 +118,14 @@ public class YammerComponentConfiguration
         this.config = config;
     }
 
+    public String getRequestor() {
+        return requestor;
+    }
+
+    public void setRequestor(String requestor) {
+        this.requestor = requestor;
+    }
+
     public String getAccessToken() {
         return accessToken;
     }
@@ -158,8 +171,7 @@ public class YammerComponentConfiguration
         /**
          * The function to use
          */
-        private String function;
-        private YammerFunctionType functionType;
+        private YammerFunctionType function;
         /**
          * Return only the specified number of messages. Works for threaded=true
          * and threaded=extended.
@@ -182,6 +194,9 @@ public class YammerComponentConfiguration
          * messages prior to those you're seeing.
          */
         private Long olderThan = -1L;
+        /**
+         * To use a specific requester to communicate with Yammer.
+         */
         private ApiRequestor requestor;
         /**
          * threaded=true will only return the first message in each thread. This
@@ -234,22 +249,14 @@ public class YammerComponentConfiguration
             this.delay = delay;
         }
 
-        public String getFunction() {
+        public YammerFunctionType getFunction() {
             return function;
         }
 
-        public void setFunction(String function) {
+        public void setFunction(YammerFunctionType function) {
             this.function = function;
         }
 
-        public YammerFunctionType getFunctionType() {
-            return functionType;
-        }
-
-        public void setFunctionType(YammerFunctionType functionType) {
-            this.functionType = functionType;
-        }
-
         public Integer getLimit() {
             return limit;
         }