public interface IApi
Modifier and Type | Method and Description |
---|---|
IAPIResponse |
get(String url)
Perform a get-based request to some endpoint
|
IAPIResponse |
get(String url,
Map<String,String> headers)
Perform a get-based request to some endpoint
|
IAPIResponse |
post(String url,
InputStream payload,
long contentLength,
org.apache.http.entity.ContentType contentType,
Map<String,String> headers)
Perform a put-based request to some endpoint
|
IAPIResponse |
post(String url,
List<org.apache.http.NameValuePair> formData)
Perform a post-based request to some endpoint
|
IAPIResponse |
post(String url,
List<org.apache.http.NameValuePair> formData,
Map<String,PostFile> files)
Perform a post-based request to some endpoint
|
IAPIResponse |
post(String url,
List<org.apache.http.NameValuePair> formData,
Map<String,PostFile> files,
Map<String,String> headers)
Perform a post-based request to some endpoint
|
IAPIResponse |
post(String url,
PostFile file,
Map<String,String> headers) |
IAPIResponse |
post(String url,
String payload)
Send arbitrary post data to some endpoint
|
IAPIResponse |
post(String url,
String payload,
Map<String,String> headers)
Send arbitrary post data to some endpoint
|
IAPIResponse |
put(String url,
InputStream payload,
long contentLength,
org.apache.http.entity.ContentType contentType,
Map<String,String> headers)
Perform a put-based request to some endpoint
|
IAPIResponse |
put(String url,
PostFile file,
Map<String,String> headers) |
IAPIResponse |
put(String url,
String payload)
Perform a put-based request to some endpoint
|
IAPIResponse |
put(String url,
String payload,
Map<String,String> headers)
Perform a put-based request to some endpoint
|
IAPIResponse get(String url) throws APIException
url
- The URLAPIException
- If something goes wrongIAPIResponse get(String url, Map<String,String> headers) throws APIException
url
- The URLheaders
- Extra headers to sendAPIException
- If something goes wrongIAPIResponse post(String url, List<org.apache.http.NameValuePair> formData) throws APIException
url
- The URLformData
- Key/Value pairs to sendAPIException
- If something goes wrongIAPIResponse post(String url, List<org.apache.http.NameValuePair> formData, Map<String,PostFile> files) throws APIException
url
- The URLformData
- Key/Value pairs to sendfiles
- Key/File files to sendAPIException
- If something goes wrongIAPIResponse post(String url, List<org.apache.http.NameValuePair> formData, Map<String,PostFile> files, Map<String,String> headers) throws APIException
url
- The URLformData
- Key/Value pairs to sendfiles
- Key/File files to sendheaders
- Extra headers to sendAPIException
- If something goes wrongIAPIResponse post(String url, String payload) throws APIException
url
- URLpayload
- Data to sendAPIException
- if something goes wrongIAPIResponse post(String url, String payload, Map<String,String> headers) throws APIException
url
- URLpayload
- Data to sendheaders
- Extra headers to sendAPIException
- if something goes wrongIAPIResponse post(String url, InputStream payload, long contentLength, org.apache.http.entity.ContentType contentType, Map<String,String> headers) throws APIException
url
- URLpayload
- Payload to sendheaders
- additional headers to sendAPIException
IAPIResponse post(String url, PostFile file, Map<String,String> headers) throws APIException
APIException
IAPIResponse put(String url, String payload) throws APIException
url
- URLpayload
- Payload to sendAPIException
IAPIResponse put(String url, String payload, Map<String,String> headers) throws APIException
url
- URLpayload
- Payload to sendheaders
- additional headers to sendAPIException
IAPIResponse put(String url, InputStream payload, long contentLength, org.apache.http.entity.ContentType contentType, Map<String,String> headers) throws APIException
url
- URLpayload
- Payload to sendheaders
- additional headers to sendAPIException
IAPIResponse put(String url, PostFile file, Map<String,String> headers) throws APIException
APIException
Copyright © 2017. All rights reserved.