From 4eb322608ee15c7c04aa9fb591098c3ce9fd5a44 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Mon, 27 Apr 2015 17:51:18 +0200 Subject: [PATCH] Add ConnectionConfiguration.setProxyInfo(ProxyInfo) Fixes SMACK-661. --- .../jivesoftware/smack/ConnectionConfiguration.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/smack-core/src/main/java/org/jivesoftware/smack/ConnectionConfiguration.java b/smack-core/src/main/java/org/jivesoftware/smack/ConnectionConfiguration.java index 125c691ed..94157271f 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/ConnectionConfiguration.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/ConnectionConfiguration.java @@ -614,6 +614,17 @@ public abstract class ConnectionConfiguration { return getThis(); } + /** + * Set the information about the Proxy used for the connection. + * + * @param proxyInfo the Proxy information. + * @return a reference to this builder. + */ + public B setProxyInfo(ProxyInfo proxyInfo) { + this.proxy = proxyInfo; + return getThis(); + } + /** * Allow null or the empty String as username. *