public class HttpProtocolHandler extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
HttpResponse |
execute(HttpRequest request,
String strParaFileName,
String strFilePath)
执行Http请求
|
static HttpProtocolHandler |
getInstance()
工厂方法
|
protected String |
toString(NameValuePair[] nameValues)
将NameValuePairs数组转变为字符串
|
public static HttpProtocolHandler getInstance()
public HttpResponse execute(HttpRequest request, String strParaFileName, String strFilePath) throws HttpException, IOException
request - 请求数据strParaFileName - 文件类型的参数名strFilePath - 文件路径HttpException, - IOExceptionHttpExceptionIOExceptionprotected String toString(NameValuePair[] nameValues)
nameValues - Copyright © 2017. All rights reserved.