mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 09:09:38 +02:00
Rename PacketListener to StanzaListener
and add the PacketListener as deprecated interface.
This commit is contained in:
parent
d4a6d8e653
commit
75ec271c6c
40 changed files with 305 additions and 279 deletions
|
@ -22,7 +22,7 @@ import java.util.List;
|
|||
import java.util.logging.Logger;
|
||||
|
||||
import org.jivesoftware.smack.ConnectionCreationListener;
|
||||
import org.jivesoftware.smack.PacketListener;
|
||||
import org.jivesoftware.smack.StanzaListener;
|
||||
import org.jivesoftware.smack.SmackException;
|
||||
import org.jivesoftware.smack.XMPPConnection;
|
||||
import org.jivesoftware.smack.XMPPConnectionRegistry;
|
||||
|
@ -462,7 +462,7 @@ public class JingleManager implements JingleSessionListener {
|
|||
jingleSessionRequestListeners = new ArrayList<JingleSessionRequestListener>();
|
||||
|
||||
// Start a packet listener for session initiation requests
|
||||
connection.addAsyncPacketListener(new PacketListener() {
|
||||
connection.addAsyncStanzaListener(new StanzaListener() {
|
||||
public void processPacket(Stanza packet) {
|
||||
triggerSessionRequested((Jingle) packet);
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ import java.util.logging.Logger;
|
|||
|
||||
import org.jivesoftware.smack.AbstractConnectionClosedListener;
|
||||
import org.jivesoftware.smack.ConnectionListener;
|
||||
import org.jivesoftware.smack.PacketListener;
|
||||
import org.jivesoftware.smack.StanzaListener;
|
||||
import org.jivesoftware.smack.SmackException;
|
||||
import org.jivesoftware.smack.SmackException.NotConnectedException;
|
||||
import org.jivesoftware.smack.XMPPConnection;
|
||||
|
@ -77,7 +77,7 @@ public class JingleSession extends JingleNegotiator implements MediaReceivedList
|
|||
|
||||
ConnectionListener connectionListener;
|
||||
|
||||
PacketListener packetListener;
|
||||
StanzaListener packetListener;
|
||||
|
||||
StanzaFilter packetFilter;
|
||||
|
||||
|
@ -651,7 +651,7 @@ public class JingleSession extends JingleNegotiator implements MediaReceivedList
|
|||
*/
|
||||
protected void removeAsyncPacketListener() {
|
||||
if (packetListener != null) {
|
||||
getConnection().removeAsyncPacketListener(packetListener);
|
||||
getConnection().removeAsyncStanzaListener(packetListener);
|
||||
|
||||
LOGGER.fine("JINGLE SESSION: REMOVE PACKET LISTENER");
|
||||
}
|
||||
|
@ -666,7 +666,7 @@ public class JingleSession extends JingleNegotiator implements MediaReceivedList
|
|||
|
||||
LOGGER.fine("UpdatePacketListener");
|
||||
|
||||
packetListener = new PacketListener() {
|
||||
packetListener = new StanzaListener() {
|
||||
public void processPacket(Stanza packet) {
|
||||
try {
|
||||
receivePacketAndRespond((IQ) packet);
|
||||
|
@ -723,7 +723,7 @@ public class JingleSession extends JingleNegotiator implements MediaReceivedList
|
|||
}
|
||||
};
|
||||
|
||||
getConnection().addAsyncPacketListener(packetListener, packetFilter);
|
||||
getConnection().addAsyncStanzaListener(packetListener, packetFilter);
|
||||
}
|
||||
|
||||
// Listeners
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue