de.dfki.lt.hog
Interface XmlRpcServerInterface

All Known Implementing Classes:
Adaptor, MoCoManServer, SampleTaggerAdaptor

public interface XmlRpcServerInterface

Provides basic operations for XML-RPC communication as a server. These operations are basically methods from WebServer class of the XML-RPC package by apache. To have a class responding to remote calls a so called handler must be set. This is done by the addHandler method. Other methods return objects like the WebServer itself.


Method Summary
 void addHandler(java.lang.String aHandlerName, java.lang.Object aHandler)
          Adds a handler object to a WebServer.
 java.lang.Object getHandler(java.lang.String aHandlerName)
          Returns the object associated with given handler name.
 org.apache.xmlrpc.WebServer getServer()
          Returns the WebServer of an implementing class.
 int getServerPort()
          Returns the port on which the server is listening for remote calls.
 

Method Detail

addHandler

void addHandler(java.lang.String aHandlerName,
                java.lang.Object aHandler)
Adds a handler object to a WebServer. This object then processes incoming calls associated with the given handler name.

Parameters:
aHandlerName - a String to which an handling object is mapped
aHandler - remote calls handling object

getServer

org.apache.xmlrpc.WebServer getServer()
Returns the WebServer of an implementing class.

Returns:
a WebServer object

getServerPort

int getServerPort()
Returns the port on which the server is listening for remote calls.

Returns:
port as int value

getHandler

java.lang.Object getHandler(java.lang.String aHandlerName)
Returns the object associated with given handler name.

Parameters:
aHandlerName - a name of a handling class
Returns:
a handler object