mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-25 05:22:06 +01:00
Merge pull request #618 from stokito/account_registration
[core] Make AccountManager.getRegistrationInfo() public
This commit is contained in:
commit
af77e561c5
1 changed files with 3 additions and 1 deletions
|
@ -354,15 +354,17 @@ public final class AccountManager extends Manager {
|
|||
/**
|
||||
* Gets the account registration info from the server.
|
||||
*
|
||||
* @return Registration information
|
||||
* @throws XMPPErrorException if there was an XMPP error returned.
|
||||
* @throws NoResponseException if there was no response from the remote entity.
|
||||
* @throws NotConnectedException if the XMPP connection is not connected.
|
||||
* @throws InterruptedException if the calling thread was interrupted.
|
||||
*/
|
||||
private synchronized void getRegistrationInfo() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
|
||||
public synchronized Registration getRegistrationInfo() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
|
||||
Registration reg = new Registration();
|
||||
reg.setTo(connection().getXMPPServiceDomain());
|
||||
info = createStanzaCollectorAndSend(reg).nextResultOrThrow();
|
||||
return info;
|
||||
}
|
||||
|
||||
private StanzaCollector createStanzaCollectorAndSend(IQ req) throws NotConnectedException, InterruptedException {
|
||||
|
|
Loading…
Reference in a new issue