camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [6/6] camel git commit: CAMEL-9472: Add multi value to component docs
Date Mon, 04 Jan 2016 17:38:16 GMT
CAMEL-9472: Add multi value to component docs


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

Branch: refs/heads/camel-2.16.x
Commit: 3f70c32e445bcdf3cb5a344380629c835f7dfd45
Parents: b8d6da7
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Mon Jan 4 18:36:52 2016 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Mon Jan 4 18:38:00 2016 +0100

----------------------------------------------------------------------
 .../apache/camel/component/ahc/AhcEndpoint.java | 22 ++++++++++++++++----
 1 file changed, 18 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/3f70c32e/components/camel-ahc/src/main/java/org/apache/camel/component/ahc/AhcEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-ahc/src/main/java/org/apache/camel/component/ahc/AhcEndpoint.java
b/components/camel-ahc/src/main/java/org/apache/camel/component/ahc/AhcEndpoint.java
index eb42d0a..4448936 100644
--- a/components/camel-ahc/src/main/java/org/apache/camel/component/ahc/AhcEndpoint.java
+++ b/components/camel-ahc/src/main/java/org/apache/camel/component/ahc/AhcEndpoint.java
@@ -17,6 +17,7 @@
 package org.apache.camel.component.ahc;
 
 import java.net.URI;
+import java.util.Map;
 import javax.net.ssl.SSLContext;
 
 import com.ning.http.client.AsyncHttpClient;
@@ -41,21 +42,23 @@ public class AhcEndpoint extends DefaultEndpoint implements HeaderFilterStrategy
     @UriPath @Metadata(required = "true")
     private URI httpUri;
     @UriParam
-    private AsyncHttpClientConfig clientConfig;
-    @UriParam
     private boolean bridgeEndpoint;
     @UriParam(defaultValue = "true")
     private boolean throwExceptionOnFailure = true;
     @UriParam
     private boolean transferException;
-    @UriParam
-    private SSLContextParameters sslContextParameters;
     @UriParam(defaultValue = "" + 4 * 1024)
     private int bufferSize = 4 * 1024;
     @UriParam
     private HeaderFilterStrategy headerFilterStrategy = new HttpHeaderFilterStrategy();
     @UriParam
     private AhcBinding binding;
+    @UriParam(label = "security")
+    private SSLContextParameters sslContextParameters;
+    @UriParam(label = "advanced")
+    private AsyncHttpClientConfig clientConfig;
+    @UriParam(label = "advanced", prefix = "clientConfig.", multiValue = true)
+    private Map<String, Object> clientConfigOptions;
 
     public AhcEndpoint(String endpointUri, AhcComponent component, URI httpUri) {
         super(endpointUri, component);
@@ -212,6 +215,17 @@ public class AhcEndpoint extends DefaultEndpoint implements HeaderFilterStrategy
         this.bufferSize = bufferSize;
     }
 
+    public Map<String, Object> getClientConfigOptions() {
+        return clientConfigOptions;
+    }
+
+    /**
+     * To configure the AsyncHttpClientConfig using the key/values from the Map.
+     */
+    public void setClientConfigOptions(Map<String, Object> clientConfigOptions) {
+        this.clientConfigOptions = clientConfigOptions;
+    }
+
     @Override
     protected void doStart() throws Exception {
         super.doStart();


Mime
View raw message