Class XmppTools
- java.lang.Object
-
- org.igniterealtime.smack.examples.XmppTools
-
-
Constructor Summary
Constructors Constructor Description XmppTools()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancreateAccount(String xmppDomain, String username, String password)static booleancreateAccount(DomainBareJid xmppDomain, Localpart username, String password)static voidmain(String[] args)static voidmodularConnectionTest(ModularXmppClientToServerConnection connection, String messageTo)static voidsendItsAlive(String to, XMPPConnection connection)static booleansupportsIbr(String xmppDomain)static booleansupportsIbr(XMPPConnection connection)static booleansupportsIbr(DomainBareJid xmppDomain)
-
-
-
Constructor Detail
-
XmppTools
public XmppTools()
-
-
Method Detail
-
main
public static void main(String[] args) throws SmackException, IOException, XMPPException, InterruptedException, KeyManagementException, NoSuchAlgorithmException
-
supportsIbr
public static boolean supportsIbr(String xmppDomain) throws SmackException, IOException, XMPPException, InterruptedException, KeyManagementException, NoSuchAlgorithmException
-
supportsIbr
public static boolean supportsIbr(DomainBareJid xmppDomain) throws SmackException, IOException, XMPPException, InterruptedException, KeyManagementException, NoSuchAlgorithmException
-
supportsIbr
public static boolean supportsIbr(XMPPConnection connection) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
-
createAccount
public static boolean createAccount(String xmppDomain, String username, String password) throws KeyManagementException, NoSuchAlgorithmException, SmackException, IOException, XMPPException, InterruptedException
-
createAccount
public static boolean createAccount(DomainBareJid xmppDomain, Localpart username, String password) throws KeyManagementException, NoSuchAlgorithmException, SmackException, IOException, XMPPException, InterruptedException
-
modularConnectionTest
public static void modularConnectionTest(ModularXmppClientToServerConnection connection, String messageTo) throws XMPPException, SmackException, IOException, InterruptedException
-
sendItsAlive
public static void sendItsAlive(String to, XMPPConnection connection) throws XmppStringprepException, SmackException.NotConnectedException, InterruptedException
-
-