camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [04/23] camel git commit: CAMEL-10164: swagger component for making rest calls with swagger schema validation and facade to actual HTTP client in use
Date Fri, 26 Aug 2016 16:02:32 GMT
CAMEL-10164: swagger component for making rest calls with swagger schema validation and facade
to actual HTTP client in use


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/9e80df0d
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/9e80df0d
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/9e80df0d

Branch: refs/heads/master
Commit: 9e80df0de9247a7186a7acadb4c680b79a3376cc
Parents: d167bf2
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Thu Aug 25 10:41:21 2016 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Fri Aug 26 16:53:31 2016 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/camel/component/rest/RestComponent.java | 2 +-
 .../main/java/org/apache/camel/component/rest/RestEndpoint.java  | 4 ++--
 .../main/java/org/apache/camel/component/rest/RestProducer.java  | 4 ++++
 3 files changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/9e80df0d/camel-core/src/main/java/org/apache/camel/component/rest/RestComponent.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/component/rest/RestComponent.java b/camel-core/src/main/java/org/apache/camel/component/rest/RestComponent.java
index ff5093b..3553a5b 100644
--- a/camel-core/src/main/java/org/apache/camel/component/rest/RestComponent.java
+++ b/camel-core/src/main/java/org/apache/camel/component/rest/RestComponent.java
@@ -25,7 +25,7 @@ import org.apache.camel.util.ObjectHelper;
 import org.apache.camel.util.URISupport;
 
 /**
- * REST-DSL component.
+ * Rest component.
  */
 public class RestComponent extends UriEndpointComponent {
 

http://git-wip-us.apache.org/repos/asf/camel/blob/9e80df0d/camel-core/src/main/java/org/apache/camel/component/rest/RestEndpoint.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/component/rest/RestEndpoint.java b/camel-core/src/main/java/org/apache/camel/component/rest/RestEndpoint.java
index f023355..911b8cb 100644
--- a/camel-core/src/main/java/org/apache/camel/component/rest/RestEndpoint.java
+++ b/camel-core/src/main/java/org/apache/camel/component/rest/RestEndpoint.java
@@ -37,9 +37,9 @@ import org.apache.camel.util.HostUtils;
 import org.apache.camel.util.ObjectHelper;
 
 /**
- * The rest component is used for hosting REST services which has been defined using the
rest-dsl in Camel.
+ * The rest component is used for either hosting REST services (consumer) or calling external
REST services (producer).
  */
-@UriEndpoint(scheme = "rest", title = "REST", syntax = "rest:method:path:uriTemplate", consumerOnly
= true, label = "core,rest", lenientProperties = true)
+@UriEndpoint(scheme = "rest", title = "REST", syntax = "rest:method:path:uriTemplate", label
= "core,rest", lenientProperties = true)
 public class RestEndpoint extends DefaultEndpoint {
 
     @UriPath(label = "common", enums = "get,post,put,delete,patch,head,trace,connect,options")
@Metadata(required = "true")

http://git-wip-us.apache.org/repos/asf/camel/blob/9e80df0d/camel-core/src/main/java/org/apache/camel/component/rest/RestProducer.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/component/rest/RestProducer.java b/camel-core/src/main/java/org/apache/camel/component/rest/RestProducer.java
index 8efacd3..6b11645 100644
--- a/camel-core/src/main/java/org/apache/camel/component/rest/RestProducer.java
+++ b/camel-core/src/main/java/org/apache/camel/component/rest/RestProducer.java
@@ -30,8 +30,12 @@ import org.apache.camel.util.FileUtil;
 import org.apache.camel.util.ServiceHelper;
 import org.apache.camel.util.URISupport;
 
+/**
+ * Rest producer for calling remote REST services.
+ */
 public class RestProducer extends DefaultAsyncProducer {
 
+    // the producer of the Camel component that is used as the HTTP client to call the REST
service
     private AsyncProcessor producer;
 
     public RestProducer(Endpoint endpoint, Producer producer) {


Mime
View raw message