You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/11/23 08:21:09 UTC

[camel] branch main updated: CAMEL-18628: REST DSL: Add option to disable REST endpoints.

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

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new c01ab899882 CAMEL-18628: REST DSL: Add option to disable REST endpoints.
c01ab899882 is described below

commit c01ab899882bb2309ed08b8ccf9bcfd9190107eb
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Nov 23 09:20:57 2022 +0100

    CAMEL-18628: REST DSL: Add option to disable REST endpoints.
---
 .../src/main/java/org/apache/camel/model/rest/RestDefinition.java       | 2 +-
 .../src/main/java/org/apache/camel/model/rest/VerbDefinition.java       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/camel-core-model/src/main/java/org/apache/camel/model/rest/RestDefinition.java b/core/camel-core-model/src/main/java/org/apache/camel/model/rest/RestDefinition.java
index 57c7acad82f..e1220a1157f 100644
--- a/core/camel-core-model/src/main/java/org/apache/camel/model/rest/RestDefinition.java
+++ b/core/camel-core-model/src/main/java/org/apache/camel/model/rest/RestDefinition.java
@@ -62,7 +62,7 @@ public class RestDefinition extends OptionalIdentifiedDefinition<RestDefinition>
     private String produces;
     @XmlAttribute
     @Metadata(label = "advanced", javaType = "java.lang.Boolean")
-    protected String disabled;
+    private String disabled;
     @XmlAttribute
     @Metadata(defaultValue = "off", enums = "off,auto,json,xml,json_xml")
     private String bindingMode;
diff --git a/core/camel-core-model/src/main/java/org/apache/camel/model/rest/VerbDefinition.java b/core/camel-core-model/src/main/java/org/apache/camel/model/rest/VerbDefinition.java
index b6fcdb5c427..6a5afdbcfb7 100644
--- a/core/camel-core-model/src/main/java/org/apache/camel/model/rest/VerbDefinition.java
+++ b/core/camel-core-model/src/main/java/org/apache/camel/model/rest/VerbDefinition.java
@@ -55,7 +55,7 @@ public abstract class VerbDefinition extends OptionalIdentifiedDefinition<VerbDe
     private String produces;
     @XmlAttribute
     @Metadata(label = "advanced", javaType = "java.lang.Boolean")
-    protected String disabled;
+    private String disabled;
     @XmlAttribute
     @Metadata(label = "advanced")
     private String type;