public class RestClient extends Object
| Constructor and Description |
|---|
RestClient() |
RestClient(DestroyParam dparams) |
RestClient(PluginParam params) |
| 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,
String payload) |
public RestClient()
public RestClient(PluginParam params) throws IOException
IOExceptionpublic RestClient(DestroyParam dparams) 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 String FormatResponseAsJsonString(org.apache.http.HttpResponse response) throws IOException
IOExceptionpublic com.google.gson.JsonObject FormJsonObject(String responseAsJson)
Copyright © 2004-2016. All Rights Reserved.