1
0
Fork 0
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:
Florian Schmaus 2015-06-08 14:39:05 +02:00
parent 4d7279d036
commit bad52fad21
9 changed files with 22 additions and 10 deletions

View file

@ -32,7 +32,7 @@ Connect and Disconnect
XMPPTCPConnectionConfiguration.Builder configBuilder = XMPPTCPConnectionConfiguration.builder();
configBuilder.setUsernameAndPassword("username", "password");
configBuilder.setResource("SomeResource");
configBuilder.setServiceName("jabber.org");
configBuilder.setXmppDomain("jabber.org");
AbstractXMPPConnection connection = new XMPPTCPConnection(configBuilder.build());
// Connect to the server

View file

@ -53,7 +53,7 @@ conn1.connect();
// Create a connection to the jabber.org server on a specific port.
XMPPTCPConnectionConfiguration config = XMPPTCPConnectionConfiguration.builder()
.setUsernameAndPassword("username", "password")
.setServiceName("jabber.org")
.setXmppDomain("jabber.org")
.setHost("earl.jabber.org")
.setPort("8222")
.build();