edu.wpi.prc.client
Class XMLRPCClient

java.lang.Object
  extended by edu.wpi.prc.client.XMLRPCClient

public class XMLRPCClient
extends java.lang.Object

The XMLRPCClient allows a project administrator to send RPCs to any XML-RPC server from the command line.

Author:
James Baldassari

Field Summary
private static int EXIT_ERROR
           
private static int EXIT_SUCCESS
           
private static org.apache.xmlrpc.XmlRpcClient xmlrpcClient
           
 
Constructor Summary
XMLRPCClient()
           
 
Method Summary
static void main(java.lang.String[] args)
          Parses command-line arguments and sends XML-RPCs to the server.
private static void printUsageAndExit()
          Prints the usage, and exits the program.
private static boolean sendRPC(java.lang.String cmd, java.util.Vector params)
          Executes the given XML-RPC command with the given parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXIT_SUCCESS

private static final int EXIT_SUCCESS
See Also:
Constant Field Values

EXIT_ERROR

private static final int EXIT_ERROR
See Also:
Constant Field Values

xmlrpcClient

private static org.apache.xmlrpc.XmlRpcClient xmlrpcClient
Constructor Detail

XMLRPCClient

public XMLRPCClient()
Method Detail

main

public static void main(java.lang.String[] args)
Parses command-line arguments and sends XML-RPCs to the server.

Parameters:
args - The command-line arguments.

sendRPC

private static boolean sendRPC(java.lang.String cmd,
                               java.util.Vector params)
Executes the given XML-RPC command with the given parameters.

Parameters:
cmd - The command to send.
params - The parameters to pass.
Returns:
True if the command was sent successfully, false otherwise.

printUsageAndExit

private static void printUsageAndExit()
Prints the usage, and exits the program.