public interface HttpClient extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
GET(URI uri)
Executes a GET request and retrieves the response body as String
|
InputStream |
GETStream(URI uri)
Executes a GET request and retrieves the response body as Stream
|
String |
POST(URI uri,
List<org.apache.http.NameValuePair> params)
Executes a POST request and retrieves the response body as String
|
String |
POST(URI uri,
List<org.apache.http.NameValuePair> params,
File file)
Executes a multipart entity POST request and retrieves the response body as String
|
String GET(URI uri) throws IOException, IndixApiException
IOExceptionIndixApiExceptionInputStream GETStream(URI uri) throws IOException, IndixApiException
IOExceptionIndixApiExceptionString POST(URI uri, List<org.apache.http.NameValuePair> params) throws IOException, IndixApiException
IOExceptionIndixApiExceptionString POST(URI uri, List<org.apache.http.NameValuePair> params, File file) throws IOException, IndixApiException
IOExceptionIndixApiExceptionvoid close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionCopyright © 2017. All rights reserved.