mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-23 02:58:00 +01:00
Added default constructor for unit testing.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2507 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
4376cf5639
commit
0f43eb7a48
1 changed files with 14 additions and 3 deletions
|
@ -144,10 +144,12 @@ public class XMPPConnection {
|
|||
}
|
||||
|
||||
/**
|
||||
* Creates a new connection to the specified XMPP server on the given port using the specified SocketFactory.
|
||||
* Creates a new connection to the specified XMPP server on the given port using the
|
||||
* specified SocketFactory.<p>
|
||||
*
|
||||
* <p>A custom SocketFactory allows fine-grained control of the actual connection to the XMPP server. A typical
|
||||
* use for a custom SocketFactory is when connecting through a SOCKS proxy.
|
||||
* A custom SocketFactory allows fine-grained control of the actual connection to the
|
||||
* XMPP server. A typical use for a custom SocketFactory is when connecting through a
|
||||
* SOCKS proxy.
|
||||
*
|
||||
* @param host the name of the XMPP server to connect to; e.g. <tt>jivesoftware.com</tt>.
|
||||
* @param port the port on the server that should be used; e.g. <tt>5222</tt>.
|
||||
|
@ -179,6 +181,15 @@ public class XMPPConnection {
|
|||
init();
|
||||
}
|
||||
|
||||
/**
|
||||
* Package-private default constructor. This constructor is only intended
|
||||
* for unit testing. Normal classes extending XMPPConnection should override
|
||||
* one of the other constructors.
|
||||
*/
|
||||
XMPPConnection() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the connection ID for this connection, which is the value set by the server
|
||||
* when opening a XMPP stream. If the server does not set a connection ID, this value
|
||||
|
|
Loading…
Reference in a new issue