mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-09 18:29:45 +02:00
Make XMPPConnection an interface
create AbstractXMPPConnection.
This commit is contained in:
parent
6dd180e9d3
commit
beecb8a675
33 changed files with 1264 additions and 1090 deletions
|
@ -16,6 +16,7 @@
|
|||
*/
|
||||
package org.jivesoftware.smack.tcp;
|
||||
|
||||
import org.jivesoftware.smack.AbstractXMPPConnection;
|
||||
import org.jivesoftware.smack.ConnectionConfiguration;
|
||||
import org.jivesoftware.smack.ConnectionCreationListener;
|
||||
import org.jivesoftware.smack.ConnectionListener;
|
||||
|
@ -76,7 +77,7 @@ import java.util.logging.Logger;
|
|||
* @see XMPPConnection
|
||||
* @author Matt Tucker
|
||||
*/
|
||||
public class XMPPTCPConnection extends XMPPConnection {
|
||||
public class XMPPTCPConnection extends AbstractXMPPConnection {
|
||||
|
||||
private static final Logger LOGGER = Logger.getLogger(XMPPTCPConnection.class.getName());
|
||||
|
||||
|
@ -890,11 +891,6 @@ public class XMPPTCPConnection extends XMPPConnection {
|
|||
return super.getSASLAuthentication();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ConnectionConfiguration getConfiguration() {
|
||||
return super.getConfiguration();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends a notification indicating that the connection was reconnected successfully.
|
||||
*/
|
||||
|
|
|
@ -20,7 +20,6 @@ import static org.junit.Assert.*;
|
|||
|
||||
import org.jivesoftware.smack.Roster;
|
||||
import org.jivesoftware.smack.SmackException;
|
||||
import org.jivesoftware.smack.XMPPConnection;
|
||||
import org.jivesoftware.smack.XMPPException;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
@ -32,7 +31,7 @@ import org.junit.Test;
|
|||
*/
|
||||
public class RosterOfflineTest {
|
||||
|
||||
XMPPConnection connection;
|
||||
XMPPTCPConnection connection;
|
||||
|
||||
Roster roster;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue