com.partnersoft.staker.hub
Class BarsoomLib

java.lang.Object
  extended by com.partnersoft.staker.hub.BarsoomLib

public class BarsoomLib
extends java.lang.Object

Convenience methods for talking to a Partner Hub over the Barsoom XML web service.

Copyright 2008 Partner Software, Inc.


Method Summary
static boolean sendCommand(java.lang.String server, java.lang.String user, java.lang.String command)
          Sends the given simple command to the hub at the given address.
static boolean sendCommand(java.lang.String server, java.lang.String user, java.lang.String command, java.lang.String... parameters)
          Sends the given simple command to the hub at the given address.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sendCommand

public static boolean sendCommand(java.lang.String server,
                                  java.lang.String user,
                                  java.lang.String command)
                           throws java.io.IOException
Sends the given simple command to the hub at the given address. Returns true if the command succeeded.

Throws:
java.io.IOException

sendCommand

public static boolean sendCommand(java.lang.String server,
                                  java.lang.String user,
                                  java.lang.String command,
                                  java.lang.String... parameters)
                           throws java.io.IOException
Sends the given simple command to the hub at the given address. Returns true if the command succeeded.

Throws:
java.io.IOException