net.sf.freecol.client.control
Class InputHandler

java.lang.Object
  extended by net.sf.freecol.client.control.InputHandler
All Implemented Interfaces:
MessageHandler
Direct Known Subclasses:
InGameInputHandler, PreGameInputHandler

public abstract class InputHandler
extends java.lang.Object
implements MessageHandler

Provides common methods for input handlers.


Constructor Summary
InputHandler(FreeColClient freeColClient)
          The constructor to use.
 
Method Summary
abstract  org.w3c.dom.Element handle(Connection connection, org.w3c.dom.Element element)
          Deals with incoming messages that have just been received.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputHandler

public InputHandler(FreeColClient freeColClient)
The constructor to use.

Parameters:
freeColClient - The main freecol client object.
Method Detail

handle

public abstract org.w3c.dom.Element handle(Connection connection,
                                           org.w3c.dom.Element element)
Deals with incoming messages that have just been received.

Specified by:
handle in interface MessageHandler
Parameters:
connection - The Connection the message was received on.
element - The root element of the message.
Returns:
The reply.