public class Client extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BaseApiUrl |
static String |
BaseUrl |
Constructor and Description |
---|
Client() |
Modifier and Type | Method and Description |
---|---|
String |
download(String url,
String filePath,
String auth) |
String |
download(String url,
String filePath,
String auth,
String directory) |
org.apache.http.HttpResponse |
sendRequest(String url,
HttpMethod method,
String auth,
Object data) |
<T> T |
sendRequest(String url,
HttpMethod method,
String auth,
Object data,
Class<T> tClass) |
String |
upload(String url,
Map<String,String> props,
Map<String,Map.Entry<String,byte[]>> filesBytes,
Map<String,File> files,
String auth) |
public static final String BaseUrl
public static final String BaseApiUrl
public <T> T sendRequest(String url, HttpMethod method, String auth, Object data, Class<T> tClass) throws IOException
IOException
public org.apache.http.HttpResponse sendRequest(String url, HttpMethod method, String auth, Object data) throws IOException
IOException
public String upload(String url, Map<String,String> props, Map<String,Map.Entry<String,byte[]>> filesBytes, Map<String,File> files, String auth) throws IOException
IOException
public String download(String url, String filePath, String auth) throws Exception
Exception
Copyright © 2016–2017. All rights reserved.