1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-23 06:42:05 +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:
Matt Tucker 2005-07-18 21:28:25 +00:00 committed by matt
parent 4376cf5639
commit 0f43eb7a48

View file

@ -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