mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-16 12:12:06 +01:00
Improve XMPPConnection javadoc
It's an interface State that it does intentionally not declare any state changing methods (e.g. connect(), disconnect())
This commit is contained in:
parent
2853ec39b4
commit
a927d55bb1
1 changed files with 12 additions and 4 deletions
|
@ -28,7 +28,7 @@ import org.jivesoftware.smack.packet.PacketExtension;
|
||||||
import org.jivesoftware.smack.packet.PlainStreamElement;
|
import org.jivesoftware.smack.packet.PlainStreamElement;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The abstract XMPPConnection class provides an interface for connections to a XMPP server and
|
* The XMPPConnection interface provides an interface for connections to a XMPP server and
|
||||||
* implements shared methods which are used by the different types of connections (e.g.
|
* implements shared methods which are used by the different types of connections (e.g.
|
||||||
* {@link XMPPTCPConnection} or {@link XMPPBOSHConnection}). To create a connection to a XMPP server
|
* {@link XMPPTCPConnection} or {@link XMPPBOSHConnection}). To create a connection to a XMPP server
|
||||||
* a simple usage of this API might look like the following:
|
* a simple usage of this API might look like the following:
|
||||||
|
@ -52,10 +52,18 @@ import org.jivesoftware.smack.packet.PlainStreamElement;
|
||||||
* // Disconnect from the server
|
* // Disconnect from the server
|
||||||
* con.disconnect();
|
* con.disconnect();
|
||||||
* </pre>
|
* </pre>
|
||||||
|
* </p>
|
||||||
* <p>
|
* <p>
|
||||||
* Connections can be reused between connections. This means that an Connection may be connected,
|
* Note that the XMPPConnection interface does intentionally not declare any methods that manipulate
|
||||||
* disconnected and then connected again. Listeners of the Connection will be retained across
|
* the connection state, e.g. <code>connect()</code>, <code>disconnect()</code>. You should use the
|
||||||
|
* most specific connection type, e.g. <code>XMPPTCPConnection</code> as declared type and use the
|
||||||
|
* XMPPConnection interface when you don't need to manipulate the connection state.
|
||||||
|
* </p>
|
||||||
|
* <p>
|
||||||
|
* XMPPConnections can be reused between connections. This means that an Connection may be connected,
|
||||||
|
* disconnected and then connected again. Listeners of the XMPPConnection will be retained across
|
||||||
* connections.
|
* connections.
|
||||||
|
* </p>
|
||||||
*
|
*
|
||||||
* @author Matt Tucker
|
* @author Matt Tucker
|
||||||
* @author Guenther Niess
|
* @author Guenther Niess
|
||||||
|
|
Loading…
Reference in a new issue