1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-09 17:19:39 +02:00

Move is(Connected|Authenticated) and getUser()

into AbstractXMPPConnection.

Also remove wasAuthenticated field from XMPPBOSHConnection, it is
already in AbstractXMPPConnection.
This commit is contained in:
Florian Schmaus 2014-11-01 12:29:41 +01:00
parent 6fec813ec0
commit 5647cac39c
4 changed files with 20 additions and 63 deletions

View file

@ -143,7 +143,6 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
private Socket socket;
private String connectionID = null;
private boolean connected = false;
/**
*
@ -342,14 +341,6 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
return connectionID;
}
@Override
public String getUser() {
if (!isAuthenticated()) {
return null;
}
return user;
}
/**
* Install a parsing exception callback, which will be invoked once an exception is encountered while parsing a
* stanza
@ -478,11 +469,6 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
afterSuccessfulLogin(true, false);
}
@Override
public boolean isConnected() {
return connected;
}
@Override
public boolean isSecureConnection() {
return usingTLS;
@ -492,11 +478,6 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
return socketClosed;
}
@Override
public boolean isAuthenticated() {
return authenticated;
}
/**
* Shuts the current connection down. After this method returns, the connection must be ready
* for re-use by connect.