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.git
The following commit(s) were added to refs/heads/master by this push:
new 1a08d6c CAMEL-15170: Regen
1a08d6c is described below
commit 1a08d6c26a779f5bd6e91ff988d6c6a6fffcaf2c
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Jun 19 09:48:00 2020 +0200
CAMEL-15170: Regen
---
.../component/jt400/Jt400EndpointConfigurer.java | 5 ++
.../org/apache/camel/component/jt400/jt400.json | 4 +-
.../component/ComponentsBuilderFactory.java | 4 +-
.../dsl/Jt400ComponentBuilderFactory.java | 7 +--
.../src/generated/resources/metadata.json | 2 +-
.../builder/endpoint/StaticEndpointBuilders.java | 16 ++----
.../endpoint/dsl/Jt400EndpointBuilderFactory.java | 60 +++++++++++++++++-----
7 files changed, 65 insertions(+), 33 deletions(-)
diff --git
a/components/camel-jt400/src/generated/java/org/apache/camel/component/jt400/Jt400EndpointConfigurer.java
b/components/camel-jt400/src/generated/java/org/apache/camel/component/jt400/Jt400EndpointConfigurer.java
index d1fe36d..001c03d 100644
---
a/components/camel-jt400/src/generated/java/org/apache/camel/component/jt400/Jt400EndpointConfigurer.java
+++
b/components/camel-jt400/src/generated/java/org/apache/camel/component/jt400/Jt400EndpointConfigurer.java
@@ -44,6 +44,8 @@ public class Jt400EndpointConfigurer extends
PropertyConfigurerSupport implement
case "keyed":
target.getConfiguration().setKeyed(property(camelContext, boolean.class,
value)); return true;
case "lazystartproducer":
case "lazyStartProducer":
target.setLazyStartProducer(property(camelContext, boolean.class, value));
return true;
+ case "messageaction":
+ case "messageAction":
target.getConfiguration().setMessageAction(property(camelContext,
org.apache.camel.component.jt400.Jt400Configuration.MessageAction.class,
value)); return true;
case "outputfieldsidxarray":
case "outputFieldsIdxArray":
target.getConfiguration().setOutputFieldsIdxArray(property(camelContext,
java.lang.Integer[].class, value)); return true;
case "outputfieldslengtharray":
@@ -99,6 +101,7 @@ public class Jt400EndpointConfigurer extends
PropertyConfigurerSupport implement
answer.put("initialDelay", long.class);
answer.put("keyed", boolean.class);
answer.put("lazyStartProducer", boolean.class);
+ answer.put("messageAction",
org.apache.camel.component.jt400.Jt400Configuration.MessageAction.class);
answer.put("outputFieldsIdxArray", java.lang.Integer[].class);
answer.put("outputFieldsLengthArray", java.lang.Integer[].class);
answer.put("pollStrategy",
org.apache.camel.spi.PollingConsumerPollStrategy.class);
@@ -149,6 +152,8 @@ public class Jt400EndpointConfigurer extends
PropertyConfigurerSupport implement
case "keyed": return target.getConfiguration().isKeyed();
case "lazystartproducer":
case "lazyStartProducer": return target.isLazyStartProducer();
+ case "messageaction":
+ case "messageAction": return
target.getConfiguration().getMessageAction();
case "outputfieldsidxarray":
case "outputFieldsIdxArray": return
target.getConfiguration().getOutputFieldsIdxArray();
case "outputfieldslengtharray":
diff --git
a/components/camel-jt400/src/generated/resources/org/apache/camel/component/jt400/jt400.json
b/components/camel-jt400/src/generated/resources/org/apache/camel/component/jt400/jt400.json
index 9479ecc..6209a1d 100644
---
a/components/camel-jt400/src/generated/resources/org/apache/camel/component/jt400/jt400.json
+++
b/components/camel-jt400/src/generated/resources/org/apache/camel/component/jt400/jt400.json
@@ -3,7 +3,7 @@
"kind": "component",
"name": "jt400",
"title": "JT400",
- "description": "Exchanges messages with an AS\/400 system using data
queues or program call.",
+ "description": "Exchanges messages with an AS\/400 system using data
queues, message queues, or program call.",
"deprecated": false,
"firstVersion": "1.5.0",
"label": "messaging",
@@ -31,13 +31,13 @@
"password": { "kind": "path", "displayName": "Password", "group":
"security", "label": "security", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"secret": true, "configurationClass":
"org.apache.camel.component.jt400.Jt400Configuration", "configurationField":
"configuration", "description": "Returns the password of the AS\/400 user." },
"systemName": { "kind": "path", "displayName": "System Name", "group":
"security", "label": "security", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"secret": false, "configurationClass":
"org.apache.camel.component.jt400.Jt400Configuration", "configurationField":
"configuration", "description": "Returns the name of the AS\/400 system." },
"objectPath": { "kind": "path", "displayName": "Object Path", "group":
"common", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "deprecationNote": "", "secret":
false, "configurationClass":
"org.apache.camel.component.jt400.Jt400Configuration", "configurationField":
"configuration", "description": "Returns the fully qualified integrated file
system path name of the target object of this endpoint." },
- "type": { "kind": "path", "displayName": "Type", "group": "common",
"label": "", "required": true, "type": "object", "javaType":
"org.apache.camel.component.jt400.Jt400Type", "enum": [ "DTAQ", "PGM", "SRVPGM"
], "deprecated": false, "deprecationNote": "", "secret": false,
"configurationClass": "org.apache.camel.component.jt400.Jt400Configuration",
"configurationField": "configuration", "description": "Whether to work with
data queues or remote program call" },
"ccsid": { "kind": "parameter", "displayName": "Ccsid", "group": "common",
"label": "", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "secret": false, "configurationClass":
"org.apache.camel.component.jt400.Jt400Configuration", "configurationField":
"configuration", "description": "Sets the CCSID to use for the connection with
the AS\/400 system." },
"format": { "kind": "parameter", "displayName": "Format", "group":
"common", "label": "", "required": false, "type": "object", "javaType":
"org.apache.camel.component.jt400.Jt400Configuration.Format", "enum": [ "text",
"binary" ], "deprecated": false, "secret": false, "defaultValue": "text",
"configurationClass": "org.apache.camel.component.jt400.Jt400Configuration",
"configurationField": "configuration", "description": "Sets the data format for
sending messages." },
"guiAvailable": { "kind": "parameter", "displayName": "Gui Available",
"group": "common", "label": "", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "secret": false, "defaultValue":
false, "configurationClass":
"org.apache.camel.component.jt400.Jt400Configuration", "configurationField":
"configuration", "description": "Sets whether AS\/400 prompting is enabled in
the environment running Camel." },
"keyed": { "kind": "parameter", "displayName": "Keyed", "group": "common",
"label": "", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "secret": false, "defaultValue": false,
"configurationClass": "org.apache.camel.component.jt400.Jt400Configuration",
"configurationField": "configuration", "description": "Whether to use keyed or
non-keyed data queues." },
"searchKey": { "kind": "parameter", "displayName": "Search Key", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "secret": false, "configurationClass":
"org.apache.camel.component.jt400.Jt400Configuration", "configurationField":
"configuration", "description": "Search key for keyed data queues." },
"bridgeErrorHandler": { "kind": "parameter", "displayName": "Bridge Error
Handler", "group": "consumer", "label": "consumer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": 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 message and handled b [...]
+ "messageAction": { "kind": "parameter", "displayName": "Message Action",
"group": "consumer", "label": "consumer", "required": false, "type": "object",
"javaType":
"org.apache.camel.component.jt400.Jt400Configuration.MessageAction", "enum": [
"OLD", "REMOVE", "SAME" ], "deprecated": false, "secret": false,
"defaultValue": "OLD", "configurationClass":
"org.apache.camel.component.jt400.Jt400Configuration", "configurationField":
"configuration", "description": "Action to be taken on mes [...]
"readTimeout": { "kind": "parameter", "displayName": "Read Timeout",
"group": "consumer", "label": "consumer", "required": false, "type": "integer",
"javaType": "int", "deprecated": false, "secret": false, "defaultValue":
"30000", "configurationClass":
"org.apache.camel.component.jt400.Jt400Configuration", "configurationField":
"configuration", "description": "Timeout in millis the consumer will wait while
trying to read a new message of the data queue." },
"searchType": { "kind": "parameter", "displayName": "Search Type",
"group": "consumer", "label": "consumer", "required": false, "type": "object",
"javaType": "org.apache.camel.component.jt400.Jt400Configuration.SearchType",
"enum": [ "EQ", "NE", "LT", "LE", "GT", "GE" ], "deprecated": false, "secret":
false, "defaultValue": "EQ", "configurationClass":
"org.apache.camel.component.jt400.Jt400Configuration", "configurationField":
"configuration", "description": "Search type such as EQ f [...]
"sendEmptyMessageWhenIdle": { "kind": "parameter", "displayName": "Send
Empty Message When Idle", "group": "consumer", "label": "consumer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret":
false, "defaultValue": false, "description": "If the polling consumer did not
poll any files, you can enable this option to send an empty message (no body)
instead." },
diff --git
a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
index 3467d7d..4f600ae 100644
---
a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
+++
b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
@@ -2225,8 +2225,8 @@ public interface ComponentsBuilderFactory {
}
/**
* JT400 (camel-jt400)
- * Exchanges messages with an AS/400 system using data queues or program
- * call.
+ * Exchanges messages with an AS/400 system using data queues, message
+ * queues, or program call.
*
* Category: messaging
* Since: 1.5
diff --git
a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Jt400ComponentBuilderFactory.java
b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Jt400ComponentBuilderFactory.java
index 218d03a..8bcb038 100644
---
a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Jt400ComponentBuilderFactory.java
+++
b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Jt400ComponentBuilderFactory.java
@@ -23,7 +23,8 @@ import org.apache.camel.builder.component.ComponentBuilder;
import org.apache.camel.component.jt400.Jt400Component;
/**
- * Exchanges messages with an AS/400 system using data queues or program call.
+ * Exchanges messages with an AS/400 system using data queues, message queues,
+ * or program call.
*
* Generated by camel-package-maven-plugin - do not edit this file!
*/
@@ -32,8 +33,8 @@ public interface Jt400ComponentBuilderFactory {
/**
* JT400 (camel-jt400)
- * Exchanges messages with an AS/400 system using data queues or program
- * call.
+ * Exchanges messages with an AS/400 system using data queues, message
+ * queues, or program call.
*
* Category: messaging
* Since: 1.5
diff --git a/core/camel-componentdsl/src/generated/resources/metadata.json
b/core/camel-componentdsl/src/generated/resources/metadata.json
index f8e69ba..7cefad9 100644
--- a/core/camel-componentdsl/src/generated/resources/metadata.json
+++ b/core/camel-componentdsl/src/generated/resources/metadata.json
@@ -4145,7 +4145,7 @@
"kind": "component",
"name": "jt400",
"title": "JT400",
- "description": "Exchanges messages with an AS\/400 system using data
queues or program call.",
+ "description": "Exchanges messages with an AS\/400 system using data
queues, message queues, or program call.",
"deprecated": false,
"firstVersion": "1.5.0",
"label": "messaging",
diff --git
a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index 0e31f9a..e2f56c3 100644
---
a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++
b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -8482,8 +8482,8 @@ public class StaticEndpointBuilders {
}
/**
* JT400 (camel-jt400)
- * Exchanges messages with an AS/400 system using data queues or program
- * call.
+ * Exchanges messages with an AS/400 system using data queues, message
+ * queues, or program call.
*
* Category: messaging
* Since: 1.5
@@ -8504,10 +8504,6 @@ public class StaticEndpointBuilders {
* Returns the fully qualified integrated file system path name of the
* target object of this endpoint.
*
- * Path parameter: type (required)
- * Whether to work with data queues or remote program call
- * The value can be one of: DTAQ, PGM, SRVPGM
- *
* @param path userID:password/systemName/objectPath.type
*/
static
org.apache.camel.builder.endpoint.dsl.Jt400EndpointBuilderFactory.Jt400EndpointBuilder
jt400(
@@ -8516,8 +8512,8 @@ public class StaticEndpointBuilders {
}
/**
* JT400 (camel-jt400)
- * Exchanges messages with an AS/400 system using data queues or program
- * call.
+ * Exchanges messages with an AS/400 system using data queues, message
+ * queues, or program call.
*
* Category: messaging
* Since: 1.5
@@ -8538,10 +8534,6 @@ public class StaticEndpointBuilders {
* Returns the fully qualified integrated file system path name of the
* target object of this endpoint.
*
- * Path parameter: type (required)
- * Whether to work with data queues or remote program call
- * The value can be one of: DTAQ, PGM, SRVPGM
- *
* @param componentName to use a custom component name for the endpoint
* instead of the default name
* @param path userID:password/systemName/objectPath.type
diff --git
a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/Jt400EndpointBuilderFactory.java
b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/Jt400EndpointBuilderFactory.java
index fae6f2a..b3e6562 100644
---
a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/Jt400EndpointBuilderFactory.java
+++
b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/Jt400EndpointBuilderFactory.java
@@ -29,7 +29,8 @@ import org.apache.camel.spi.ExceptionHandler;
import org.apache.camel.spi.PollingConsumerPollStrategy;
/**
- * Exchanges messages with an AS/400 system using data queues or program call.
+ * Exchanges messages with an AS/400 system using data queues, message queues,
+ * or program call.
*
* Generated by camel build tools - do NOT edit this file!
*/
@@ -194,6 +195,37 @@ public interface Jt400EndpointBuilderFactory {
return this;
}
/**
+ * Action to be taken on messages when read from a message queue.
+ * Messages can be marked as old (OLD), removed from the queue
(REMOVE),
+ * or neither (SAME).
+ *
+ * The option is a:
+ *
<code>org.apache.camel.component.jt400.Jt400Configuration$MessageAction</code>
type.
+ *
+ * Default: OLD
+ * Group: consumer
+ */
+ default Jt400EndpointConsumerBuilder messageAction(
+ MessageAction messageAction) {
+ doSetProperty("messageAction", messageAction);
+ return this;
+ }
+ /**
+ * Action to be taken on messages when read from a message queue.
+ * Messages can be marked as old (OLD), removed from the queue
(REMOVE),
+ * or neither (SAME).
+ *
+ * The option will be converted to a
+ *
<code>org.apache.camel.component.jt400.Jt400Configuration$MessageAction</code>
type.
+ *
+ * Default: OLD
+ * Group: consumer
+ */
+ default Jt400EndpointConsumerBuilder messageAction(String
messageAction) {
+ doSetProperty("messageAction", messageAction);
+ return this;
+ }
+ /**
* Timeout in millis the consumer will wait while trying to read a new
* message of the data queue.
*
@@ -1365,6 +1397,16 @@ public interface Jt400EndpointBuilderFactory {
/**
* Proxy enum for
+ *
<code>org.apache.camel.component.jt400.Jt400Configuration$MessageAction</code>
enum.
+ */
+ enum MessageAction {
+ OLD,
+ REMOVE,
+ SAME;
+ }
+
+ /**
+ * Proxy enum for
*
<code>org.apache.camel.component.jt400.Jt400Configuration$SearchType</code>
enum.
*/
enum SearchType {
@@ -1379,8 +1421,8 @@ public interface Jt400EndpointBuilderFactory {
public interface Jt400Builders {
/**
* JT400 (camel-jt400)
- * Exchanges messages with an AS/400 system using data queues or
program
- * call.
+ * Exchanges messages with an AS/400 system using data queues, message
+ * queues, or program call.
*
* Category: messaging
* Since: 1.5
@@ -1401,10 +1443,6 @@ public interface Jt400EndpointBuilderFactory {
* Returns the fully qualified integrated file system path name of the
* target object of this endpoint.
*
- * Path parameter: type (required)
- * Whether to work with data queues or remote program call
- * The value can be one of: DTAQ, PGM, SRVPGM
- *
* @param path userID:password/systemName/objectPath.type
*/
default Jt400EndpointBuilder jt400(String path) {
@@ -1412,8 +1450,8 @@ public interface Jt400EndpointBuilderFactory {
}
/**
* JT400 (camel-jt400)
- * Exchanges messages with an AS/400 system using data queues or
program
- * call.
+ * Exchanges messages with an AS/400 system using data queues, message
+ * queues, or program call.
*
* Category: messaging
* Since: 1.5
@@ -1434,10 +1472,6 @@ public interface Jt400EndpointBuilderFactory {
* Returns the fully qualified integrated file system path name of the
* target object of this endpoint.
*
- * Path parameter: type (required)
- * Whether to work with data queues or remote program call
- * The value can be one of: DTAQ, PGM, SRVPGM
- *
* @param componentName to use a custom component name for the endpoint
* instead of the default name
* @param path userID:password/systemName/objectPath.type