/** * Creates a new ConnectionConfiguration for the specified service name. A DNS SRV lookup will be * performed to find out the actual host address and port to use for the connection. * * @param serviceName the name of the service provided by an XMPP server. */ public ConnectionConfiguration(String serviceName) { init(serviceName, ProxyInfo.forDefaultProxy()); }
/** * Creates a new ConnectionConfiguration for a connection that will connect to the desired host * and port. * * @param host the host where the XMPP server is running. * @param port the port where the XMPP is listening. */ public ConnectionConfiguration(String host, int port) { initHostAddresses(host, port); init(host, ProxyInfo.forDefaultProxy()); }
/** * Creates a new ConnectionConfiguration for a connection that will connect to the desired host * and port with desired proxy. * * @param host the host where the XMPP server is running. * @param port the port where the XMPP is listening. * @param proxy the proxy through which XMPP is to be connected */ public ConnectionConfiguration(String host, int port, ProxyInfo proxy) { initHostAddresses(host, port); init(host, proxy); }
/** * Creates a new ConnectionConfiguration for the specified service name with specified proxy. A * DNS SRV lookup will be performed to find out the actual host address and port to use for the * connection. * * @param serviceName the name of the service provided by an XMPP server. * @param proxy the proxy through which XMPP is to be connected */ public ConnectionConfiguration(String serviceName, ProxyInfo proxy) { init(serviceName, proxy); }