public class Http extends Object implements AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
get(String url,
Map<String,String> headers) |
String |
post(String url,
Map<String,String> headers,
ArrayList<org.apache.http.NameValuePair> nameValuePairs) |
String |
post(String url,
Map<String,String> headers,
String entity) |
public String post(String url, Map<String,String> headers, String entity) throws Exception
url - headers - entity - Exceptionpublic String post(String url, Map<String,String> headers, ArrayList<org.apache.http.NameValuePair> nameValuePairs) throws Exception
url - headers - nameValuePairs - Exceptionpublic String get(String url, Map<String,String> headers) throws Exception
url - headers - Exceptionpublic void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2019. All rights reserved.