src.server
Class InputHandler

java.lang.Object
  extended bysrc.server.InputHandler

public class InputHandler
extends java.lang.Object

Handles all input to the server that comes from users. Note that this class does not handle input that is generated by translators directly (i.e. translator reg requests). Implements singelton pattern.

Version:
2005-apr-21

Method Summary
static InputHandler getInstance()
          Used to get the object in singelton patterns.
 void handlePackage(XMLRPCPackage rpcPackage)
          Handles an incoming package in XMLRPC form.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static InputHandler getInstance()
Used to get the object in singelton patterns.

Returns:
The one instance of the class.

handlePackage

public void handlePackage(XMLRPCPackage rpcPackage)
Handles an incoming package in XMLRPC form. The package contents is parsed and then sent on to either Processor or ErrorHandler depending on if the query is well formed.

Parameters:
rpcPackage - The input to handle.