public interface HttpClientService
| 限定符和类型 | 方法和说明 |
|---|---|
String |
doGet(org.apache.http.client.methods.HttpGet httpGet) |
byte[] |
doGet(String url) |
InputStream |
doGetReturnStream(String url)
liyinqiao 返回InputStream
|
String |
doPost(org.apache.http.client.methods.HttpPost httpPost,
String charset) |
byte[] |
doPost(String url,
List<org.apache.http.NameValuePair> postParams) |
byte[] |
doPost(String url,
List<org.apache.http.NameValuePair> postParams,
String charset)
liyinqiao 比上面方法多一个 设置字符集 短信接口接口字符集要求是 GBK
|
String |
sendRequest(org.apache.http.client.methods.HttpEntityEnclosingRequestBase httpEntityEnclosingRequestBase,
String charset) |
byte[] doGet(String url) throws IOException
url - 请求url地址IOExceptionString doGet(org.apache.http.client.methods.HttpGet httpGet) throws IOException
httpGet - IOExceptionString doPost(org.apache.http.client.methods.HttpPost httpPost, String charset) throws IOException
httpPost - IOExceptionString sendRequest(org.apache.http.client.methods.HttpEntityEnclosingRequestBase httpEntityEnclosingRequestBase, String charset) throws IOException
httpEntityEnclosingRequestBase - charset - IOExceptionbyte[] doPost(String url, List<org.apache.http.NameValuePair> postParams) throws IOException
url - 请求url地址postParams - 请求参数IOExceptionbyte[] doPost(String url, List<org.apache.http.NameValuePair> postParams, String charset) throws IOException
url - postParams - charset - IOExceptionInputStream doGetReturnStream(String url) throws IOException
url - IOExceptionCopyright © 2020 GTMAP. All rights reserved.