mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 09:09:38 +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:
parent
6fec813ec0
commit
5647cac39c
4 changed files with 20 additions and 63 deletions
|
@ -86,10 +86,7 @@ public class XMPPBOSHConnection extends AbstractXMPPConnection {
|
|||
private final BOSHConfiguration config;
|
||||
|
||||
// Some flags which provides some info about the current state.
|
||||
private boolean connected = false;
|
||||
private boolean authenticated = false;
|
||||
private boolean isFirstInitialization = true;
|
||||
private boolean wasAuthenticated = false;
|
||||
private boolean done = false;
|
||||
|
||||
// The readerPipe and consumer thread are used for the debugger.
|
||||
|
@ -217,18 +214,6 @@ public class XMPPBOSHConnection extends AbstractXMPPConnection {
|
|||
}
|
||||
}
|
||||
|
||||
public String getUser() {
|
||||
return user;
|
||||
}
|
||||
|
||||
public boolean isAuthenticated() {
|
||||
return authenticated;
|
||||
}
|
||||
|
||||
public boolean isConnected() {
|
||||
return connected;
|
||||
}
|
||||
|
||||
public boolean isSecureConnection() {
|
||||
// TODO: Implement SSL usage
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue