diff --git a/README.md b/README.md index 2996b2c9e..2d4959e33 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Key Advantages : - Extremely simple to use, yet powerful API. Sending a text message to a user can be accomplished in only a few lines of code: ```java - XMPPConnection connection = new XMPPTCPConnection("jabber.org"); + AbstractXMPPConnection connection = new XMPPTCPConnection("jabber.org"); connection.connect(); connection.login("mtucker", "password"); Chat chat = ChatManager.getInstanceFor(connection) diff --git a/documentation/connections.html b/documentation/connections.html index 081e70f1a..a5f694c4f 100644 --- a/documentation/connections.html +++ b/documentation/connections.html @@ -20,8 +20,8 @@
The org.jivesoftware.smack.XMPPConnection class manages your connection to an XMPP - server. The default implementation is the org.jivesoftware.smack.XMPPConnection - class. Two constructors are mainly used. The first, XMPPConnection(String) takes + server. A default implementation is the org.jivesoftware.smack.XMPPTCPConnection + class. Two constructors are mainly used. The first, XMPPTCPConnection(String) takes the server name you'd like to connect to as an argument. All default connection settings will be used:
- XMPPConnection.DEBUG_ENABLED = true;
+ SmackConfiguration.DEBUG_ENABLED = true;
@@ -39,7 +39,7 @@ add the following line to your application before opening new connections:
-XMPPConnection.DEBUG_ENABLED = false; +SmackConfiguration.DEBUG_ENABLED = false;
diff --git a/documentation/extensions/messageevents.html b/documentation/extensions/messageevents.html index d91492b3f..fd64fc2fe 100644 --- a/documentation/extensions/messageevents.html +++ b/documentation/extensions/messageevents.html @@ -99,9 +99,9 @@ for notifications and will send the message to the other user. The other user wi to a MessageEventManager that will listen and react to the event notification requested by the other user.
// Connect to the server and log in the users - conn1 = new XMPPConnection(host); + conn1 = new XMPPTCPConnection(host); conn1.login(server_user1, pass1); - conn2 = new XMPPConnection(host); + conn2 = new XMPPTCPConnection(host); conn2.login(server_user2, pass2); // User2 creates a MessageEventManager @@ -195,7 +195,7 @@ to a MessageEventManager that will listen and react to the event notifica the requests for notifications and sends the message.// Connect to the server and log in - conn1 = new XMPPConnection(host); + conn1 = new XMPPTCPConnection(host); conn1.login(server_user1, pass1); // Create a MessageEventManager @@ -241,4 +241,4 @@ the requests for notifications and sends the message.