camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [3/3] camel git commit: Component docs
Date Mon, 27 Apr 2015 08:13:14 GMT
Component docs


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

Branch: refs/heads/master
Commit: 4f0feb7a20d0473a26a925ae51f6d4411c7d8b84
Parents: 58f6776
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Mon Apr 27 10:16:40 2015 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Mon Apr 27 10:16:40 2015 +0200

----------------------------------------------------------------------
 .../camel/component/mvel/MvelEndpoint.java      |  3 +++
 .../sap/netweaver/NetWeaverEndpoint.java        | 22 ++++++++++++++++++--
 2 files changed, 23 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/4f0feb7a/components/camel-mvel/src/main/java/org/apache/camel/component/mvel/MvelEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-mvel/src/main/java/org/apache/camel/component/mvel/MvelEndpoint.java
b/components/camel-mvel/src/main/java/org/apache/camel/component/mvel/MvelEndpoint.java
index 095c2df..d581862 100644
--- a/components/camel-mvel/src/main/java/org/apache/camel/component/mvel/MvelEndpoint.java
+++ b/components/camel-mvel/src/main/java/org/apache/camel/component/mvel/MvelEndpoint.java
@@ -65,6 +65,9 @@ public class MvelEndpoint extends ResourceEndpoint {
         return encoding;
     }
 
+    /**
+     * Character encoding of the resource content.
+     */
     public void setEncoding(String encoding) {
         this.encoding = encoding;
     }

http://git-wip-us.apache.org/repos/asf/camel/blob/4f0feb7a/components/camel-sap-netweaver/src/main/java/org/apache/camel/component/sap/netweaver/NetWeaverEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-sap-netweaver/src/main/java/org/apache/camel/component/sap/netweaver/NetWeaverEndpoint.java
b/components/camel-sap-netweaver/src/main/java/org/apache/camel/component/sap/netweaver/NetWeaverEndpoint.java
index c7a5d19..0f16085 100644
--- a/components/camel-sap-netweaver/src/main/java/org/apache/camel/component/sap/netweaver/NetWeaverEndpoint.java
+++ b/components/camel-sap-netweaver/src/main/java/org/apache/camel/component/sap/netweaver/NetWeaverEndpoint.java
@@ -37,9 +37,9 @@ public class NetWeaverEndpoint extends DefaultEndpoint {
     private boolean jsonAsMap = true;
     @UriParam(defaultValue = "true")
     private boolean flatternMap = true;
-    @UriParam
+    @UriParam @Metadata(required = "true")
     private String username;
-    @UriParam
+    @UriParam @Metadata(required = "true")
     private String password;
 
     public NetWeaverEndpoint(String endpointUri, Component component) {
@@ -65,6 +65,9 @@ public class NetWeaverEndpoint extends DefaultEndpoint {
         return url;
     }
 
+    /**
+     * Url to the SAP net-weaver gateway server.
+     */
     public void setUrl(String url) {
         this.url = url;
     }
@@ -73,6 +76,9 @@ public class NetWeaverEndpoint extends DefaultEndpoint {
         return username;
     }
 
+    /**
+     * Username for account.
+     */
     public void setUsername(String username) {
         this.username = username;
     }
@@ -81,6 +87,9 @@ public class NetWeaverEndpoint extends DefaultEndpoint {
         return password;
     }
 
+    /**
+     * Password for account.
+     */
     public void setPassword(String password) {
         this.password = password;
     }
@@ -89,6 +98,9 @@ public class NetWeaverEndpoint extends DefaultEndpoint {
         return json;
     }
 
+    /**
+     * Whether to return data in JSON format. If this option is false, then XML is returned
in Atom format.
+     */
     public void setJson(boolean json) {
         this.json = json;
     }
@@ -97,6 +109,9 @@ public class NetWeaverEndpoint extends DefaultEndpoint {
         return jsonAsMap;
     }
 
+    /**
+     * To transform the JSON from a String to a Map in the message body.
+     */
     public void setJsonAsMap(boolean jsonAsMap) {
         this.jsonAsMap = jsonAsMap;
     }
@@ -105,6 +120,9 @@ public class NetWeaverEndpoint extends DefaultEndpoint {
         return flatternMap;
     }
 
+    /**
+     * If the JSON Map contains only a single entry, then flattern by storing that single
entry value as the message body.
+     */
     public void setFlatternMap(boolean flatternMap) {
         this.flatternMap = flatternMap;
     }


Mime
View raw message