From 0537629ee9b3223f21621099366c3d8a3fd4a416 Mon Sep 17 00:00:00 2001 From: Alex Wenckus Date: Tue, 14 Nov 2006 21:58:03 +0000 Subject: [PATCH] Spellcheck. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@6106 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/PacketReader.java | 2 +- source/org/jivesoftware/smack/PrivacyListManager.java | 2 +- source/org/jivesoftware/smack/ReconnectionManager.java | 2 +- source/org/jivesoftware/smack/Roster.java | 2 +- source/org/jivesoftware/smack/XMPPConnection.java | 8 ++++++++ .../org/jivesoftware/smack/debugger/ConsoleDebugger.java | 2 +- .../org/jivesoftware/smackx/ServiceDiscoveryManager.java | 2 +- .../jivesoftware/smackx/debugger/EnhancedDebugger.java | 2 +- .../jivesoftware/smackx/muc/RoomListenerMultiplexor.java | 2 +- test/org/jivesoftware/smack/ReconnectionTest.java | 2 +- 10 files changed, 17 insertions(+), 9 deletions(-) diff --git a/source/org/jivesoftware/smack/PacketReader.java b/source/org/jivesoftware/smack/PacketReader.java index 26e5c4db2..3bb912f9f 100644 --- a/source/org/jivesoftware/smack/PacketReader.java +++ b/source/org/jivesoftware/smack/PacketReader.java @@ -235,7 +235,7 @@ class PacketReader { // Make a copy since it's possible that a listener will be removed from the list listenersCopy = new ArrayList(connectionListeners); for (ConnectionListener listener : listenersCopy) { - listener.reconectionSuccessful(); + listener.reconnectionSuccessful(); } } diff --git a/source/org/jivesoftware/smack/PrivacyListManager.java b/source/org/jivesoftware/smack/PrivacyListManager.java index 7f20d4a85..f0c5678e9 100644 --- a/source/org/jivesoftware/smack/PrivacyListManager.java +++ b/source/org/jivesoftware/smack/PrivacyListManager.java @@ -87,7 +87,7 @@ public class PrivacyListManager { // ignore } - public void reconectionSuccessful() { + public void reconnectionSuccessful() { // ignore } }); diff --git a/source/org/jivesoftware/smack/ReconnectionManager.java b/source/org/jivesoftware/smack/ReconnectionManager.java index a83cfcf78..62a7ad43a 100644 --- a/source/org/jivesoftware/smack/ReconnectionManager.java +++ b/source/org/jivesoftware/smack/ReconnectionManager.java @@ -234,7 +234,7 @@ public class ReconnectionManager implements ConnectionListener { /** * The connection has successfull gotten connected. */ - public void reconectionSuccessful() { + public void reconnectionSuccessful() { // ignore } diff --git a/source/org/jivesoftware/smack/Roster.java b/source/org/jivesoftware/smack/Roster.java index 8b1362cbb..f0df3247b 100644 --- a/source/org/jivesoftware/smack/Roster.java +++ b/source/org/jivesoftware/smack/Roster.java @@ -802,7 +802,7 @@ public class Roster implements ConnectionListener { // Ignore } - public void reconectionSuccessful() { + public void reconnectionSuccessful() { // Ignore } } \ No newline at end of file diff --git a/source/org/jivesoftware/smack/XMPPConnection.java b/source/org/jivesoftware/smack/XMPPConnection.java index 9d77d9cf1..946caf4b4 100644 --- a/source/org/jivesoftware/smack/XMPPConnection.java +++ b/source/org/jivesoftware/smack/XMPPConnection.java @@ -783,6 +783,14 @@ public class XMPPConnection { return packetReader.createPacketCollector(packetFilter); } + public PacketCollector createPacketCollector(PacketFilter packetFilter, boolean debugMode) { + if(debugMode) { + return new DebuggingPacketCollector(packetReader, packetFilter); + } else { + return packetReader.createPacketCollector(packetFilter); + } + } + /** * Adds a connection listener to this connection that will be notified when * the connection closes or fails. The connection needs to already be connected diff --git a/source/org/jivesoftware/smack/debugger/ConsoleDebugger.java b/source/org/jivesoftware/smack/debugger/ConsoleDebugger.java index e4db9fe78..0ff5c3be5 100644 --- a/source/org/jivesoftware/smack/debugger/ConsoleDebugger.java +++ b/source/org/jivesoftware/smack/debugger/ConsoleDebugger.java @@ -116,7 +116,7 @@ public class ConsoleDebugger implements SmackDebugger { ")"); e.printStackTrace(); } - public void reconectionSuccessful() { + public void reconnectionSuccessful() { System.out.println( dateFormatter.format(new Date()) + " Connection reconnected (" + connection.hashCode() + diff --git a/source/org/jivesoftware/smackx/ServiceDiscoveryManager.java b/source/org/jivesoftware/smackx/ServiceDiscoveryManager.java index 218d43b2e..15be606a0 100644 --- a/source/org/jivesoftware/smackx/ServiceDiscoveryManager.java +++ b/source/org/jivesoftware/smackx/ServiceDiscoveryManager.java @@ -161,7 +161,7 @@ public class ServiceDiscoveryManager { // ignore } - public void reconectionSuccessful() { + public void reconnectionSuccessful() { // ignore } }); diff --git a/source/org/jivesoftware/smackx/debugger/EnhancedDebugger.java b/source/org/jivesoftware/smackx/debugger/EnhancedDebugger.java index 3f02a6761..2da5a1d19 100644 --- a/source/org/jivesoftware/smackx/debugger/EnhancedDebugger.java +++ b/source/org/jivesoftware/smackx/debugger/EnhancedDebugger.java @@ -226,7 +226,7 @@ public class EnhancedDebugger implements SmackDebugger { }); } - public void reconectionSuccessful() { + public void reconnectionSuccessful() { SwingUtilities.invokeLater(new Runnable() { public void run() { statusField.setValue("Reconnection stablished"); diff --git a/source/org/jivesoftware/smackx/muc/RoomListenerMultiplexor.java b/source/org/jivesoftware/smackx/muc/RoomListenerMultiplexor.java index bfe38d095..0c9a6e0c3 100644 --- a/source/org/jivesoftware/smackx/muc/RoomListenerMultiplexor.java +++ b/source/org/jivesoftware/smackx/muc/RoomListenerMultiplexor.java @@ -113,7 +113,7 @@ class RoomListenerMultiplexor implements ConnectionListener { // ignore } - public void reconectionSuccessful() { + public void reconnectionSuccessful() { // ignore } diff --git a/test/org/jivesoftware/smack/ReconnectionTest.java b/test/org/jivesoftware/smack/ReconnectionTest.java index 62c394bf3..885989db2 100644 --- a/test/org/jivesoftware/smack/ReconnectionTest.java +++ b/test/org/jivesoftware/smack/ReconnectionTest.java @@ -209,7 +209,7 @@ public class ReconnectionTest extends SmackTestCase { } - public void reconectionSuccessful() { + public void reconnectionSuccessful() { reconnected = true; }