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 2015/05/08 07:00:36 UTC
camel git commit: CAMEL-8753: camel-twitter allow to configure http
proxy on component level. Remove not in use options. Component docs.
Repository: camel
Updated Branches:
refs/heads/master e42434dac -> c09207f59
CAMEL-8753: camel-twitter allow to configure http proxy on component level. Remove not in use options. Component docs.
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/c09207f5
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/c09207f5
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/c09207f5
Branch: refs/heads/master
Commit: c09207f590cdbd0c92fa41647a1b8122de3f2f1f
Parents: e42434d
Author: Claus Ibsen <da...@apache.org>
Authored: Fri May 8 07:04:32 2015 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Fri May 8 07:04:32 2015 +0200
----------------------------------------------------------------------
.../org/apache/camel/component/twitter/TwitterComponent.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/c09207f5/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterComponent.java b/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterComponent.java
index dc32675..4403e85 100644
--- a/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterComponent.java
+++ b/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterComponent.java
@@ -52,7 +52,9 @@ public class TwitterComponent extends UriEndpointComponent {
properties.setHttpProxyHost(httpProxyHost);
properties.setHttpProxyUser(httpProxyUser);
properties.setHttpProxyPassword(httpProxyPassword);
- properties.setHttpProxyPort(httpProxyPort);
+ if (httpProxyPort != null) {
+ properties.setHttpProxyPort(httpProxyPort);
+ }
// and then override from parameters
setProperties(properties, parameters);