|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cloudcontrolled.api.client.support.AbstractCloudControlClientSupport
com.cloudcontrolled.api.client.support.CloudControlClientSupport
public class CloudControlClientSupport
CloudControlClientSupport class.
| Field Summary | |
|---|---|
protected static String |
apiUrl
Constant apiUrl="https://api.cloudcontrol.com" |
protected static String |
ENV_API_URL_KEY
Constant ENV_API_URL_KEY="CCTRL_API_URL" |
protected JsonDeserializer |
jsonDeserializer
|
protected TokenStore |
tokenStore
|
| Fields inherited from class com.cloudcontrolled.api.client.support.AbstractCloudControlClientSupport |
|---|
log |
| Constructor Summary | |
|---|---|
CloudControlClientSupport()
|
|
| Method Summary | ||
|---|---|---|
protected
|
deserialize(InputStream inputStream,
Request<T> request)
deserialize. |
|
protected
|
deserialize(String response,
Request<T> request)
deserialize. |
|
protected
|
deserializeError(InputStream inputStream,
Request<T> request)
deserializeError. |
|
protected
|
deserializeError(String response,
Request<T> request)
deserializeError. |
|
static String |
getTargetUrl()
getTargetUrl. |
|
protected org.apache.cxf.jaxrs.client.WebClient |
instantiateWebClient(String targetUrl)
instantiateWebClient. |
|
protected org.apache.cxf.jaxrs.client.WebClient |
setAuthorizationBase64(org.apache.cxf.jaxrs.client.WebClient webClient,
String base64)
setAuthorizationBase64. |
|
protected org.apache.cxf.jaxrs.client.WebClient |
setAuthorizationCCAuthToken(org.apache.cxf.jaxrs.client.WebClient webClient)
setAuthorizationCCAuthToken. |
|
protected String |
toBase64(String user,
String password)
toBase64. |
|
| Methods inherited from class com.cloudcontrolled.api.client.support.AbstractCloudControlClientSupport |
|---|
doDelete, doGet, doPost, doPut, inquirePath |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String ENV_API_URL_KEY
ENV_API_URL_KEY="CCTRL_API_URL"
protected static final String apiUrl
apiUrl="https://api.cloudcontrol.com"
protected TokenStore tokenStore
protected JsonDeserializer jsonDeserializer
| Constructor Detail |
|---|
public CloudControlClientSupport()
| Method Detail |
|---|
protected <T> Response<T> deserializeError(InputStream inputStream,
Request<T> request)
deserializeError.
deserializeError in class AbstractCloudControlClientSupportT - a T object.inputStream - a InputStream object.request - a Request object.
Response object.
protected <T> Response<T> deserializeError(String response,
Request<T> request)
deserializeError.
deserializeError in class AbstractCloudControlClientSupportT - a T object.response - a String object.request - a Request object.
Response object.
protected <T> Response<T> deserialize(InputStream inputStream,
Request<T> request)
deserialize.
deserialize in class AbstractCloudControlClientSupportT - a T object.inputStream - a InputStream object.request - a Request object.
Response object.
protected <T> Response<T> deserialize(String response,
Request<T> request)
deserialize.
deserialize in class AbstractCloudControlClientSupportT - a T object.response - a String object.request - a Request object.
Response object.public static String getTargetUrl()
getTargetUrl.
String object.
protected String toBase64(String user,
String password)
toBase64.
user - a String object.password - a String object.
String object.protected org.apache.cxf.jaxrs.client.WebClient instantiateWebClient(String targetUrl)
instantiateWebClient.
targetUrl - a String object.
WebClient object.
protected org.apache.cxf.jaxrs.client.WebClient setAuthorizationBase64(org.apache.cxf.jaxrs.client.WebClient webClient,
String base64)
setAuthorizationBase64.
webClient - a WebClient object.base64 - a String object.
WebClient object.protected org.apache.cxf.jaxrs.client.WebClient setAuthorizationCCAuthToken(org.apache.cxf.jaxrs.client.WebClient webClient)
setAuthorizationCCAuthToken.
webClient - a WebClient object.
WebClient object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||