Commit d259ad9a authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Removed #packetReceived since that logic was moved to the SocketReader hierarchy. JM-6


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1371 b35dd754-fafc-0310-a699-88a17e54d16e
parent 6d1ed2ce
...@@ -378,10 +378,6 @@ public class ClientSession extends Session { ...@@ -378,10 +378,6 @@ public class ClientSession extends Session {
} }
} }
public void packetReceived(Packet packet) {
packet.setFrom(getAddress());
}
public String toString() { public String toString() {
return super.toString() + " presence: " + presence; return super.toString() + " presence: " + presence;
} }
......
...@@ -234,8 +234,4 @@ public class ComponentSession extends Session { ...@@ -234,8 +234,4 @@ public class ComponentSession extends Session {
public void shutdown() { public void shutdown() {
} }
} }
public void packetReceived(Packet packet) {
//Do nothing
}
} }
\ No newline at end of file
...@@ -13,7 +13,6 @@ package org.jivesoftware.messenger; ...@@ -13,7 +13,6 @@ package org.jivesoftware.messenger;
import org.jivesoftware.messenger.auth.AuthToken; import org.jivesoftware.messenger.auth.AuthToken;
import org.xmpp.packet.JID; import org.xmpp.packet.JID;
import org.xmpp.packet.Packet;
import java.util.Date; import java.util.Date;
...@@ -210,14 +209,6 @@ public abstract class Session implements RoutableChannelHandler { ...@@ -210,14 +209,6 @@ public abstract class Session implements RoutableChannelHandler {
return serverPacketCount; return serverPacketCount;
} }
/**
* Notification message that a packet has been received from this session. Client sessions
* will probably want to set the FROM attribute to avoid spoofing.
*
* @param packet the received packet by this session.
*/
public abstract void packetReceived(Packet packet);
public String toString() { public String toString() {
return super.toString() + " status: " + status + " address: " + address + " id: " + streamID; return super.toString() + " status: " + status + " address: " + address + " id: " + streamID;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment