mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 17:19:39 +02:00
Deprecate setServiceName in favor of setXmppDomain
This commit is contained in:
parent
4d7279d036
commit
bad52fad21
9 changed files with 22 additions and 10 deletions
|
@ -337,7 +337,7 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
|
|||
* @throws XmppStringprepException
|
||||
*/
|
||||
public XMPPTCPConnection(CharSequence username, String password, String serviceName) throws XmppStringprepException {
|
||||
this(XMPPTCPConnectionConfiguration.builder().setUsernameAndPassword(username, password).setServiceName(
|
||||
this(XMPPTCPConnectionConfiguration.builder().setUsernameAndPassword(username, password).setXmppDomain(
|
||||
JidCreate.domainBareFrom(serviceName)).build());
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ import org.jivesoftware.smack.ConnectionConfiguration;
|
|||
* <pre>
|
||||
* {@code
|
||||
* XMPPTCPConnectionConfiguration conf = XMPPConnectionConfiguration.builder()
|
||||
* .setServiceName("example.org").setUsernameAndPassword("user", "password")
|
||||
* .setXmppDomain("example.org").setUsernameAndPassword("user", "password")
|
||||
* .setCompressionEnabled(false).build();
|
||||
* XMPPTCPConnection connection = new XMPPTCPConnection(conf);
|
||||
* }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue