public abstract class HttpExecutor extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static org.apache.http.entity.ContentType |
APPLICATION_FORM_URLENCODED |
static String |
applicationFormHead |
static String |
applicationJSONHead |
static String |
applicationOctetStream |
static String |
BOUNDARY |
protected static org.slf4j.Logger |
logger |
static String |
multiPartApplicationFormHead |
static String |
multiPartTypeHead |
static String |
plainTextHead |
static String |
xmlTextHead |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
appendParamToUrl(String uri,
String queryParam) |
static org.apache.http.impl.client.CloseableHttpClient |
createHttpClient() |
static org.apache.http.impl.client.CloseableHttpClient |
createHttpClient(org.apache.http.HttpHost httpProxy) |
static org.apache.http.impl.client.CloseableHttpClient |
createHttpClient(org.apache.http.HttpHost httpProxy,
boolean keepSession,
boolean useSSL) |
static org.apache.http.impl.client.CloseableHttpClient |
createHttpsClient() |
static org.apache.http.impl.client.CloseableHttpClient |
createKeepSessionHttpClient() |
static org.apache.http.impl.client.CloseableHttpClient |
createKeepSessionHttpClient(org.apache.http.HttpHost httpProxy) |
static org.apache.http.impl.client.CloseableHttpClient |
createKeepSessionHttpsClient() |
protected static String |
extraFileName(org.apache.http.client.methods.CloseableHttpResponse response) |
static boolean |
fileDownload(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
String uri,
String queryParam,
String filePath) |
static boolean |
fileDownload(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
String queryParam,
String filePath) |
static String |
fileUpload(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
String uri,
File file) |
static String |
fileUpload(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
String uri,
Map<String,Object> formObjects,
File file) |
static String |
fileUpload(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
File file) |
static String |
fileUpload(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
Map<String,Object> formObjects,
File file) |
static String |
formPost(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
String uri,
Object formData,
boolean asPutMethod) |
static String |
formPost(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
Object formData) |
static String |
formPost(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
Object formData,
boolean asPutMethod) |
static String |
formPostWithFileUpload(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
String uri,
Map<String,Object> formObjects,
Map<String,File> files) |
static String |
formPostWithFileUpload(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
Map<String,Object> formObjects,
Map<String,File> files) |
static String |
formPut(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
String uri,
Object formData) |
static String |
formPut(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
Object formData) |
static String |
httpExecute(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
org.apache.http.client.methods.HttpRequestBase httpRequest) |
static String |
httpExecute(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
org.apache.http.client.methods.HttpRequestBase httpRequest,
org.apache.http.HttpHost httpProxy) |
static String |
httpExecute(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.client.methods.HttpRequestBase httpRequest) |
static String |
httpExecute(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.client.methods.HttpRequestBase httpRequest,
org.apache.http.HttpHost httpProxy) |
static String |
inputStreamUpload(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
String uri,
InputStream inputStream) |
static String |
inputStreamUpload(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
String uri,
Map<String,Object> formObjects,
InputStream inputStream) |
static String |
inputStreamUpload(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
InputStream inputStream) |
static String |
inputStreamUpload(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
Map<String,Object> formObjects,
InputStream inputStream) |
static String |
jsonPost(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
String uri,
com.alibaba.fastjson.JSON jsonEntity,
boolean asPutMethod) |
static String |
jsonPost(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
String uri,
Object obj,
boolean asPutMethod) |
static String |
jsonPost(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
String uri,
String jsonString,
boolean asPutMethod) |
static String |
jsonPost(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
com.alibaba.fastjson.JSON jsonEntity) |
static String |
jsonPost(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
com.alibaba.fastjson.JSON jsonEntity,
boolean asPutMethod) |
static String |
jsonPost(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
Object obj) |
static String |
jsonPost(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
Object obj,
boolean asPutMethod) |
static String |
jsonPost(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
String jsonString) |
static String |
jsonPost(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
String jsonString,
boolean asPutMethod) |
static String |
jsonPut(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
String uri,
String jsonString) |
static String |
jsonPut(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
String jsonString) |
static List<org.apache.http.NameValuePair> |
makeRequectParams(Object obj) |
static List<org.apache.http.NameValuePair> |
makeRequectParams(Object obj,
String prefixName) |
static String |
multiFormPost(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
String uri,
Object[] formObjects,
Map<String,Object> extFormObjects,
boolean asPutMethod) |
static String |
multiFormPost(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
String uri,
Object formObject,
Map<String,Object> extFormObjects,
boolean asPutMethod) |
static String |
multiFormPost(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
Object[] formObjects,
Map<String,Object> extFormObjects) |
static String |
multiFormPost(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
Object[] formObjects,
Map<String,Object> extFormObjects,
boolean asPutMethod) |
static String |
multiFormPost(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
Object formObject,
Map<String,Object> extFormObjects) |
static String |
multiFormPost(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
Object formObject,
Map<String,Object> extFormObjects,
boolean asPutMethod) |
static String |
multiFormPut(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
String uri,
Object[] formObjects,
Map<String,Object> extFormObjects) |
static String |
multiFormPut(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
String uri,
Object formObject,
Map<String,Object> extFormObjects) |
static String |
rawPost(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
String uri,
byte[] bytes,
boolean asPutMethod) |
static String |
rawPost(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
byte[] bytes) |
static String |
rawPost(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
byte[] bytes,
boolean asPutMethod) |
static String |
rawPut(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
String uri,
byte[] bytes) |
static String |
rawPut(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
byte[] bytes) |
static String |
requestInputStreamPost(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
String uri,
InputStream postIS) |
static String |
requestInputStreamPost(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
InputStream postIS) |
static String |
requestInputStreamPut(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
String uri,
InputStream putIS) |
static String |
requestInputStreamPut(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
InputStream putIS) |
static String |
simpleDelete(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
String uri,
String queryParam) |
static String |
simpleDelete(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
String queryParam) |
static String |
simpleGet(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
String uri) |
static String |
simpleGet(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
String uri,
Map<String,Object> queryParam) |
static String |
simpleGet(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
String uri,
String queryParam) |
static String |
simpleGet(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri) |
static String |
simpleGet(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
Map<String,Object> queryParam) |
static String |
simpleGet(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
String queryParam) |
static String |
simplePost(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
String uri,
String postEntity,
boolean asPutMethod) |
static String |
simplePost(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
String postEntity) |
static String |
simplePost(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
String postEntity,
boolean asPutMethod) |
static String |
simplePut(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
String uri,
String putEntity) |
static String |
simplePut(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
String putEntity) |
static String |
urlAddMethodParameter(String url,
String method) |
static String |
xmlPost(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
String uri,
String xmlEntity,
boolean asPutMethod) |
static String |
xmlPost(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
String xmlEntity) |
static String |
xmlPost(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
String xmlEntity,
boolean asPutMethod) |
static String |
xmlPut(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
String uri,
String xmlEntity) |
static String |
xmlPut(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
String xmlEntity) |
protected static final org.slf4j.Logger logger
public static final org.apache.http.entity.ContentType APPLICATION_FORM_URLENCODED
public static final String applicationJSONHead
public static final String plainTextHead
public static final String xmlTextHead
public static final String applicationOctetStream
public static org.apache.http.impl.client.CloseableHttpClient createHttpClient(org.apache.http.HttpHost httpProxy,
boolean keepSession,
boolean useSSL)
throws NoSuchAlgorithmException,
KeyManagementException
public static org.apache.http.impl.client.CloseableHttpClient createHttpClient()
public static org.apache.http.impl.client.CloseableHttpClient createHttpClient(org.apache.http.HttpHost httpProxy)
public static org.apache.http.impl.client.CloseableHttpClient createKeepSessionHttpClient()
public static org.apache.http.impl.client.CloseableHttpClient createKeepSessionHttpClient(org.apache.http.HttpHost httpProxy)
public static org.apache.http.impl.client.CloseableHttpClient createHttpsClient()
throws NoSuchAlgorithmException,
KeyManagementException
public static org.apache.http.impl.client.CloseableHttpClient createKeepSessionHttpsClient()
throws NoSuchAlgorithmException,
KeyManagementException
public static String httpExecute(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.protocol.HttpContext context, org.apache.http.client.methods.HttpRequestBase httpRequest, org.apache.http.HttpHost httpProxy) throws IOException
IOExceptionpublic static String httpExecute(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.protocol.HttpContext context, org.apache.http.client.methods.HttpRequestBase httpRequest) throws IOException
IOExceptionpublic static String httpExecute(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.client.methods.HttpRequestBase httpRequest, org.apache.http.HttpHost httpProxy) throws IOException
IOExceptionpublic static String httpExecute(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.client.methods.HttpRequestBase httpRequest) throws IOException
IOExceptionpublic static String simpleGet(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.protocol.HttpContext context, String uri, String queryParam) throws IOException
IOExceptionpublic static String simpleGet(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, String queryParam) throws IOException
IOExceptionpublic static String simpleGet(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.protocol.HttpContext context, String uri, Map<String,Object> queryParam) throws IOException
IOExceptionpublic static String simpleGet(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.protocol.HttpContext context, String uri) throws IOException
IOExceptionpublic static String simpleGet(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri) throws IOException
IOExceptionpublic static String simpleGet(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, Map<String,Object> queryParam) throws IOException
IOExceptionpublic static String simpleDelete(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.protocol.HttpContext context, String uri, String queryParam) throws IOException
IOExceptionpublic static String simpleDelete(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, String queryParam) throws IOException
IOExceptionpublic static String simplePut(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.protocol.HttpContext context, String uri, String putEntity) throws IOException
IOExceptionpublic static String simplePut(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, String putEntity) throws IOException
IOExceptionpublic static String rawPut(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.protocol.HttpContext context, String uri, byte[] bytes) throws IOException
IOExceptionpublic static String rawPut(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, byte[] bytes) throws IOException
IOExceptionpublic static String requestInputStreamPut(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.protocol.HttpContext context, String uri, InputStream putIS) throws IOException
IOExceptionpublic static String requestInputStreamPut(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, InputStream putIS) throws IOException
IOExceptionpublic static List<org.apache.http.NameValuePair> makeRequectParams(Object obj, String prefixName)
public static String formPut(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.protocol.HttpContext context, String uri, Object formData) throws IOException
IOExceptionpublic static String formPut(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, Object formData) throws IOException
IOExceptionpublic static String multiFormPut(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.protocol.HttpContext context, String uri, Object[] formObjects, Map<String,Object> extFormObjects) throws IOException
IOExceptionpublic static String multiFormPut(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.protocol.HttpContext context, String uri, Object formObject, Map<String,Object> extFormObjects) throws IOException
IOExceptionpublic static String simplePost(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.protocol.HttpContext context, String uri, String postEntity, boolean asPutMethod) throws IOException
IOExceptionpublic static String simplePost(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, String postEntity, boolean asPutMethod) throws IOException
IOExceptionpublic static String simplePost(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, String postEntity) throws IOException
IOExceptionpublic static String requestInputStreamPost(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.protocol.HttpContext context, String uri, InputStream postIS) throws IOException
IOExceptionpublic static String requestInputStreamPost(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, InputStream postIS) throws IOException
IOExceptionpublic static String rawPost(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.protocol.HttpContext context, String uri, byte[] bytes, boolean asPutMethod) throws IOException
IOExceptionpublic static String rawPost(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, byte[] bytes, boolean asPutMethod) throws IOException
IOExceptionpublic static String rawPost(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, byte[] bytes) throws IOException
IOExceptionpublic static String jsonPost(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.protocol.HttpContext context, String uri, String jsonString, boolean asPutMethod) throws IOException
IOExceptionpublic static String jsonPost(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.protocol.HttpContext context, String uri, com.alibaba.fastjson.JSON jsonEntity, boolean asPutMethod) throws IOException
IOExceptionpublic static String jsonPost(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.protocol.HttpContext context, String uri, Object obj, boolean asPutMethod) throws IOException
IOExceptionpublic static String jsonPost(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, String jsonString, boolean asPutMethod) throws IOException
IOExceptionpublic static String jsonPost(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, String jsonString) throws IOException
IOExceptionpublic static String jsonPost(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, Object obj, boolean asPutMethod) throws IOException
IOExceptionpublic static String jsonPost(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, Object obj) throws IOException
IOExceptionpublic static String jsonPost(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, com.alibaba.fastjson.JSON jsonEntity, boolean asPutMethod) throws IOException
IOExceptionpublic static String jsonPost(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, com.alibaba.fastjson.JSON jsonEntity) throws IOException
IOExceptionpublic static String jsonPut(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.protocol.HttpContext context, String uri, String jsonString) throws IOException
IOExceptionpublic static String jsonPut(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, String jsonString) throws IOException
IOExceptionpublic static String xmlPost(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.protocol.HttpContext context, String uri, String xmlEntity, boolean asPutMethod) throws IOException
IOExceptionpublic static String xmlPost(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, String xmlEntity, boolean asPutMethod) throws IOException
IOExceptionpublic static String xmlPost(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, String xmlEntity) throws IOException
IOExceptionpublic static String xmlPut(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.protocol.HttpContext context, String uri, String xmlEntity) throws IOException
IOExceptionpublic static String xmlPut(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, String xmlEntity) throws IOException
IOExceptionpublic static String formPost(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.protocol.HttpContext context, String uri, Object formData, boolean asPutMethod) throws IOException
IOExceptionpublic static String formPost(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, Object formData, boolean asPutMethod) throws IOException
IOExceptionpublic static String formPost(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, Object formData) throws IOException
IOExceptionpublic static String multiFormPost(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.protocol.HttpContext context, String uri, Object[] formObjects, Map<String,Object> extFormObjects, boolean asPutMethod) throws IOException
IOExceptionpublic static String multiFormPost(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, Object[] formObjects, Map<String,Object> extFormObjects, boolean asPutMethod) throws IOException
IOExceptionpublic static String multiFormPost(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.protocol.HttpContext context, String uri, Object formObject, Map<String,Object> extFormObjects, boolean asPutMethod) throws IOException
IOExceptionpublic static String multiFormPost(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, Object formObject, Map<String,Object> extFormObjects, boolean asPutMethod) throws IOException
IOExceptionpublic static String multiFormPost(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, Object[] formObjects, Map<String,Object> extFormObjects) throws IOException
IOExceptionpublic static String multiFormPost(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, Object formObject, Map<String,Object> extFormObjects) throws IOException
IOExceptionpublic static String inputStreamUpload(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.protocol.HttpContext context, String uri, InputStream inputStream) throws IOException
IOExceptionpublic static String inputStreamUpload(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, InputStream inputStream) throws IOException
IOExceptionpublic static String inputStreamUpload(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.protocol.HttpContext context, String uri, Map<String,Object> formObjects, InputStream inputStream) throws IOException
IOExceptionpublic static String inputStreamUpload(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, Map<String,Object> formObjects, InputStream inputStream) throws IOException
IOExceptionpublic static String formPostWithFileUpload(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.protocol.HttpContext context, String uri, Map<String,Object> formObjects, Map<String,File> files) throws IOException
IOExceptionpublic static String formPostWithFileUpload(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, Map<String,Object> formObjects, Map<String,File> files) throws IOException
IOExceptionpublic static String fileUpload(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.protocol.HttpContext context, String uri, Map<String,Object> formObjects, File file) throws IOException
IOExceptionpublic static String fileUpload(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, Map<String,Object> formObjects, File file) throws IOException
IOExceptionpublic static String fileUpload(org.apache.http.impl.client.CloseableHttpClient httpclient, org.apache.http.protocol.HttpContext context, String uri, File file) throws IOException
IOExceptionpublic static String fileUpload(org.apache.http.impl.client.CloseableHttpClient httpclient, String uri, File file) throws IOException
IOExceptionprotected static String extraFileName(org.apache.http.client.methods.CloseableHttpResponse response)
public static boolean fileDownload(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.protocol.HttpContext context,
String uri,
String queryParam,
String filePath)
throws IOException
IOExceptionpublic static boolean fileDownload(org.apache.http.impl.client.CloseableHttpClient httpclient,
String uri,
String queryParam,
String filePath)
throws IOException
IOExceptionCopyright © 2017 江苏南大先腾信息产业股份有限公司. All rights reserved.