net.sf.freecol.common.networking
Interface MessageHandler
- All Known Implementing Classes:
- AIInGameInputHandler, InGameInputHandler, InGameInputHandler, InputHandler, InputHandler, NetworkHandler, PreGameInputHandler, PreGameInputHandler, UserConnectionHandler
public interface MessageHandler
Handles complete incoming messages.
Method Summary |
org.w3c.dom.Element |
handle(Connection connection,
org.w3c.dom.Element element)
Handles the main element of an XML message. |
handle
org.w3c.dom.Element handle(Connection connection,
org.w3c.dom.Element element)
throws FreeColException
- Handles the main element of an XML message.
- Parameters:
connection
- The connection the message came from.element
- The element to handle.
- Returns:
- The reply (if any) or null.
- Throws:
FreeColException