mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-12-12 05:51:08 +01:00
Refactoring: All connection classes begin with XMPP now
This commit renames classes as follows: * TCPConnection --> XMPPTCPConnection * BOSHConnection --> XMPPBOSHConnection There are two reasons for this rename. First, it is there to indicate that the classes actually _are_ XMPP connections, using different transport mechanisms. Second, it makes auto-completion in IDEs easier, the developer can type XMPP<complete> and choose the right backend.
This commit is contained in:
parent
c86d6e3b61
commit
ab70cfec24
31 changed files with 120 additions and 120 deletions
|
|
@ -55,13 +55,13 @@ import org.jivesoftware.smack.packet.Presence;
|
|||
/**
|
||||
* The abstract XMPPConnection class provides an interface for connections to a
|
||||
* XMPP server and implements shared methods which are used by the
|
||||
* different types of connections (e.g. TCPConnection or BoshConnection).
|
||||
* different types of connections (e.g. XMPPTCPConnection or XMPPBOSHConnection).
|
||||
*
|
||||
* To create a connection to a XMPP server a simple usage of this API might
|
||||
* look like the following:
|
||||
* <pre>
|
||||
* // Create a connection to the igniterealtime.org XMPP server.
|
||||
* XMPPConnection con = new TCPConnection("igniterealtime.org");
|
||||
* XMPPConnection con = new XMPPTCPConnection("igniterealtime.org");
|
||||
* // Connect to the server
|
||||
* con.connect();
|
||||
* // Most servers require you to login before performing other tasks.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue