Esempio n. 1
0
 /**
  * Creates a new xml-rpc client with specified options.
  *
  * @param secret A string containing the ONE user:password tuple. Can be null
  * @param endpoint Where the rpc server is listening, must be something like
  *     "http://localhost:2633/RPC2". Can be null
  * @throws ClientConfigurationException if the configuration options are invalid
  */
 public Client(String secret, String endpoint) throws ClientConfigurationException {
   setOneAuth(secret);
   setOneEndPoint(endpoint);
 }
Esempio n. 2
0
 /**
  * Creates a new xml-rpc client with default options: the auth. file will be assumed to be at
  * $ONE_AUTH, and the endpoint will be set to $ONE_XMLRPC. <br>
  * It is the equivalent of Client(null, null).
  *
  * @throws ClientConfigurationException if the default configuration options are invalid.
  */
 public Client() throws ClientConfigurationException {
   setOneAuth(null);
   setOneEndPoint(null);
 }