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
IOException
public RestClient(DestroyParam dparams) throws IOException
IOException
public RestClient(String vRA_URL, String userName, String password, String tenant) throws IOException
IOException
public String AuthToken() throws IOException
IOException
public org.apache.http.HttpResponse Get(String URL) throws IOException
IOException
public org.apache.http.HttpResponse Post(String URL, String payload) throws IOException
IOException
public org.apache.http.HttpResponse Post(String URL, org.apache.http.HttpEntity multipart) throws IOException
IOException
public org.apache.http.HttpResponse Put(String URL, String payload) throws IOException
IOException
public String FormatResponseAsJsonString(org.apache.http.HttpResponse response) throws IOException
IOException
public com.google.gson.JsonObject FormJsonObject(String responseAsJson)
Copyright © 2004-2016. All Rights Reserved.