public class RestClient extends Object
| Constructor and Description |
|---|
RestClient() |
RestClient(DestroyParam dparams) |
RestClient(PluginParam params) |
RestClient(String vRA_URL,
String userName,
String password,
String tenant) |
| Modifier and Type | Method and Description |
|---|---|
String |
AuthToken() |
String |
FormatResponseAsJsonString(org.apache.http.HttpResponse response) |
com.google.gson.JsonObject |
FormJsonObject(String responseAsJson) |
org.apache.http.HttpResponse |
Get(String URL) |
org.apache.http.HttpResponse |
Post(String URL,
org.apache.http.HttpEntity multipart) |
org.apache.http.HttpResponse |
Post(String URL,
String payload) |
org.apache.http.HttpResponse |
Put(String URL,
String payload) |
public RestClient()
public RestClient(PluginParam params) throws IOException
IOExceptionpublic RestClient(DestroyParam dparams) throws IOException
IOExceptionpublic RestClient(String vRA_URL, String userName, String password, String tenant) throws IOException
IOExceptionpublic String AuthToken() throws IOException
IOExceptionpublic org.apache.http.HttpResponse Get(String URL) throws IOException
IOExceptionpublic org.apache.http.HttpResponse Post(String URL, String payload) throws IOException
IOExceptionpublic org.apache.http.HttpResponse Post(String URL, org.apache.http.HttpEntity multipart) throws IOException
IOExceptionpublic org.apache.http.HttpResponse Put(String URL, String payload) throws IOException
IOExceptionpublic String FormatResponseAsJsonString(org.apache.http.HttpResponse response) throws IOException
IOExceptionpublic com.google.gson.JsonObject FormJsonObject(String responseAsJson)
Copyright © 2004-2016. All Rights Reserved.