camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [1/2] git commit: camel-sap-netweaver component.
Date Tue, 04 Jun 2013 15:28:31 GMT
Updated Branches:
  refs/heads/master 7ef115ec1 -> 1f2e0d628


camel-sap-netweaver component.


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

Branch: refs/heads/master
Commit: a324df93835bab4e2b48b81c839133bf4c0b51c9
Parents: 7ef115e
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Tue Jun 4 17:21:34 2013 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Tue Jun 4 17:21:34 2013 +0200

----------------------------------------------------------------------
 .../component/sap/netweaver/NetWeaverEndpoint.java |    7 +++++++
 .../component/sap/netweaver/NetWeaverProducer.java |    6 ++++--
 2 files changed, 11 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/a324df93/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 0112e53..3358a4d 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
@@ -21,14 +21,21 @@ import org.apache.camel.Consumer;
 import org.apache.camel.Processor;
 import org.apache.camel.Producer;
 import org.apache.camel.impl.DefaultEndpoint;
+import org.apache.camel.spi.UriParam;
 
 public class NetWeaverEndpoint extends DefaultEndpoint {
 
+    @UriParam
     private boolean json = true;
+    @UriParam
     private boolean jsonAsMap = true;
+    @UriParam
     private boolean flatternMap = true;
+    @UriParam
     private String url;
+    @UriParam
     private String username;
+    @UriParam
     private String password;
 
     public NetWeaverEndpoint(String endpointUri, Component component) {

http://git-wip-us.apache.org/repos/asf/camel/blob/a324df93/components/camel-sap-netweaver/src/main/java/org/apache/camel/component/sap/netweaver/NetWeaverProducer.java
----------------------------------------------------------------------
diff --git a/components/camel-sap-netweaver/src/main/java/org/apache/camel/component/sap/netweaver/NetWeaverProducer.java
b/components/camel-sap-netweaver/src/main/java/org/apache/camel/component/sap/netweaver/NetWeaverProducer.java
index faa0f54..7484d26 100644
--- a/components/camel-sap-netweaver/src/main/java/org/apache/camel/component/sap/netweaver/NetWeaverProducer.java
+++ b/components/camel-sap-netweaver/src/main/java/org/apache/camel/component/sap/netweaver/NetWeaverProducer.java
@@ -23,8 +23,8 @@ import org.apache.camel.Exchange;
 import org.apache.camel.Producer;
 import org.apache.camel.impl.DefaultProducer;
 import org.apache.camel.util.ExchangeHelper;
-import org.apache.camel.util.ObjectHelper;
 import org.apache.camel.util.ServiceHelper;
+import org.apache.camel.util.URISupport;
 import org.codehaus.jackson.map.ObjectMapper;
 
 public class NetWeaverProducer extends DefaultProducer {
@@ -75,7 +75,9 @@ public class NetWeaverProducer extends DefaultProducer {
     @Override
     protected void doStart() throws Exception {
         String url = getEndpoint().getUrl() + "?authUsername=" + getEndpoint().getUsername()
+ "&authPassword=" + getEndpoint().getPassword() + "&authMethod=Basic";
-        log.info("Creating NetWeaverProducer using url: {}", url);
+        if (log.isInfoEnabled()) {
+            log.info("Creating NetWeaverProducer using url: {}", URISupport.sanitizeUri(url));
+        }
 
         http = getEndpoint().getCamelContext().getEndpoint(url).createProducer();
         ServiceHelper.startService(http);


Mime
View raw message