com.cloudbees.sdk.api
Class BeesAPIClient

java.lang.Object
  extended by com.cloudbees.api.BeesClientBase
      extended by com.cloudbees.sdk.api.BeesAPIClient

public class BeesAPIClient
extends com.cloudbees.api.BeesClientBase


Nested Class Summary
static class BeesAPIClient.UsageError
           
 
Field Summary
 
Fields inherited from class com.cloudbees.api.BeesClientBase
format
 
Constructor Summary
BeesAPIClient(com.cloudbees.api.BeesClientConfiguration beesClientConfiguration)
           
BeesAPIClient(String serverApiUrl, String apiKey, String secret, String format, String version)
           
 
Method Summary
 AccountKeysResponse accountKeys(String domain, String user, String password)
           
 AccountListResponse accountList()
           
 String call(String action, Map<String,String> params)
           
protected  com.thoughtworks.xstream.XStream getXStream()
           
 void mainCall(String[] args)
           
protected  Object readResponse(String response)
           
 
Methods inherited from class com.cloudbees.api.BeesClientBase
executeCometRequest, executeRequest, executeUpload, getApiUrl, getBeesClientConfiguration, getRequestURL, getRequestURL, getResponseString, getSignature, isVerbose, md5, processError, setVerbose, trace, traceResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeesAPIClient

public BeesAPIClient(com.cloudbees.api.BeesClientConfiguration beesClientConfiguration)

BeesAPIClient

public BeesAPIClient(String serverApiUrl,
                     String apiKey,
                     String secret,
                     String format,
                     String version)
Method Detail

accountKeys

public AccountKeysResponse accountKeys(String domain,
                                       String user,
                                       String password)
                                throws Exception
Throws:
Exception

accountList

public AccountListResponse accountList()
                                throws Exception
Throws:
Exception

call

public String call(String action,
                   Map<String,String> params)
            throws Exception
Throws:
Exception

mainCall

public void mainCall(String[] args)
              throws Exception
Throws:
Exception

getXStream

protected com.thoughtworks.xstream.XStream getXStream()
                                               throws Exception
Throws:
Exception

readResponse

protected Object readResponse(String response)
                       throws Exception
Throws:
Exception


Copyright © 2011-2014. All Rights Reserved.