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 72bfd85  CAMEL-15170: Fixed uri syntax
72bfd85 is described below

commit 72bfd85bd34f9d0890254a7c8616e282ae23a6b7
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Jun 19 11:28:57 2020 +0200

    CAMEL-15170: Fixed uri syntax
---
 .../resources/org/apache/camel/component/jt400/jt400.json         | 1 +
 components/camel-jt400/src/main/docs/jt400-component.adoc         | 3 ++-
 .../java/org/apache/camel/component/jt400/Jt400Configuration.java | 1 +
 .../org/apache/camel/builder/endpoint/StaticEndpointBuilders.java | 8 ++++++++
 .../camel/builder/endpoint/dsl/Jt400EndpointBuilderFactory.java   | 8 ++++++++
 5 files changed, 20 insertions(+), 1 deletion(-)

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 6209a1d..b1edb66 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
@@ -31,6 +31,7 @@
     "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", "MSGQ" ], "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." },
diff --git a/components/camel-jt400/src/main/docs/jt400-component.adoc 
b/components/camel-jt400/src/main/docs/jt400-component.adoc
index ae2c0c5..e803b02 100644
--- a/components/camel-jt400/src/main/docs/jt400-component.adoc
+++ b/components/camel-jt400/src/main/docs/jt400-component.adoc
@@ -80,7 +80,7 @@ jt400:userID:password/systemName/objectPath.type
 
 with the following path and query parameters:
 
-=== Path Parameters (4 parameters):
+=== Path Parameters (5 parameters):
 
 
 [width="100%",cols="2,5,^1,2",options="header"]
@@ -90,6 +90,7 @@ with the following path and query parameters:
 | *password* | *Required* Returns the password of the AS/400 user. |  | String
 | *systemName* | *Required* Returns the name of the AS/400 system. |  | String
 | *objectPath* | *Required* Returns the fully qualified integrated file system 
path name of the target object of this endpoint. |  | String
+| *type* | *Required* Whether to work with data queues or remote program call. 
The value can be one of: DTAQ, PGM, SRVPGM, MSGQ |  | Jt400Type
 |===
 
 
diff --git 
a/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400Configuration.java
 
b/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400Configuration.java
index 0bbaafd..fac2e51 100644
--- 
a/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400Configuration.java
+++ 
b/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400Configuration.java
@@ -116,6 +116,7 @@ public class Jt400Configuration {
     @UriPath @Metadata(required = true)
     private String objectPath;
 
+    @UriPath @Metadata(required = true)
     private Jt400Type type;
 
     @UriParam
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 e2f56c3..a8370d4 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
@@ -8504,6 +8504,10 @@ 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, MSGQ
+     * 
      * @param path userID:password/systemName/objectPath.type
      */
     static 
org.apache.camel.builder.endpoint.dsl.Jt400EndpointBuilderFactory.Jt400EndpointBuilder
 jt400(
@@ -8534,6 +8538,10 @@ 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, MSGQ
+     * 
      * @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 b3e6562..57743b1 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
@@ -1443,6 +1443,10 @@ 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, MSGQ
+         * 
          * @param path userID:password/systemName/objectPath.type
          */
         default Jt400EndpointBuilder jt400(String path) {
@@ -1472,6 +1476,10 @@ 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, MSGQ
+         * 
          * @param componentName to use a custom component name for the endpoint
          * instead of the default name
          * @param path userID:password/systemName/objectPath.type

Reply via email to