org.jivesoftware.messenger.net
Class ComponentSocketReader
java.lang.Object
org.jivesoftware.messenger.net.SocketReader
org.jivesoftware.messenger.net.ComponentSocketReader
- All Implemented Interfaces:
- Runnable
public class ComponentSocketReader
- extends SocketReader
A SocketReader specialized for component connections. This reader will be used when the open
stream contains a jabber:component:accept namespace.
- Author:
- Gaston Dombiak
Method Summary |
protected boolean |
processUnknowPacket(org.dom4j.Element doc)
Only packets of type Message, Presence and IQ can be processed by this class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentSocketReader
public ComponentSocketReader(PacketRouter router,
String serverName,
Socket socket,
SocketConnection connection)
processUnknowPacket
protected boolean processUnknowPacket(org.dom4j.Element doc)
- Only packets of type Message, Presence and IQ can be processed by this class. Any other
type of packet is unknown and thus rejected generating the connection to be closed.
- Parameters:
doc
- the unknown DOM element that was received
- Returns:
- always false.
Copyright © 1999-2004 Jive Software.