de.fhkl.zw.mkup.rattrap
Class XMLClient

java.lang.Object
  extended by de.fhkl.zw.mkup.rattrap.XMLClient

public class XMLClient
extends java.lang.Object

This class provides a connection to the xmlrpc server. It uses a singleton pattern.

Author:
Martin Schultz

Method Summary
 void connect(java.lang.String host, java.lang.String path, java.lang.String port)
          This method establishes a connection to the server.
 java.util.Vector getAll()
          Uses the XML-RPC connection to get the stored data from the server.
static XMLClient getRPCInstance()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

connect

public void connect(java.lang.String host,
                    java.lang.String path,
                    java.lang.String port)
This method establishes a connection to the server.

Parameters:
host: - Connection host;
path: - Connection path;
port: - Connection port;

getAll

public java.util.Vector getAll()
Uses the XML-RPC connection to get the stored data from the server.

Returns:
The vector which is recieved from the XML-RPC Server.

getRPCInstance

public static XMLClient getRPCInstance()
Returns:
A instance of the client.