public class ApacheSmartHttpClient extends ApacheHttpClient implements top.jfunc.common.http.smart.SmartHttpClient, top.jfunc.common.http.smart.SmartHttpTemplate<org.apache.http.HttpEntityEnclosingRequest>
_maxRetryTimes| 构造器和说明 |
|---|
ApacheSmartHttpClient() |
| 限定符和类型 | 方法和说明 |
|---|---|
top.jfunc.common.http.smart.Response |
afterTemplate(top.jfunc.common.http.smart.Request request,
top.jfunc.common.http.smart.Response response) |
top.jfunc.common.http.smart.Response |
get(top.jfunc.common.http.smart.Request req) |
byte[] |
getAsBytes(top.jfunc.common.http.smart.Request req) |
java.io.File |
getAsFile(top.jfunc.common.http.smart.Request req) |
top.jfunc.common.http.smart.Response |
httpMethod(top.jfunc.common.http.smart.Request req,
top.jfunc.common.http.Method method) |
top.jfunc.common.http.smart.Response |
post(top.jfunc.common.http.smart.Request req) |
ApacheSmartHttpClient |
setConfig(top.jfunc.common.http.base.Config config) |
<R> R |
template(top.jfunc.common.http.smart.Request request,
top.jfunc.common.http.Method method,
top.jfunc.common.http.base.ContentCallback<org.apache.http.HttpEntityEnclosingRequest> contentCallback,
top.jfunc.common.http.base.ResultCallback<R> resultCallback) |
java.lang.String |
toString() |
top.jfunc.common.http.smart.Response |
upload(top.jfunc.common.http.smart.Request req) |
addFormFiles, createHttpClient, createHttpUriRequest, doWithClient, get, getAsBytes, getAsFile, getCloseableHttpClient, getStreamFrom, initSSL, parseHeaders, post, setRequestBody, setRequestHeaders, setRequestProperty, setRequestProperty, template, upload, uploadaddBaseUrlIfNecessary, getBodyCharsetWithDefault, getConfig, getConnectionTimeoutWithDefault, getDefaultBodyCharset, getDefaultHeaders, getDefaultResultCharset, getHostnameVerifier, getReadTimeoutWithDefault, getResultCharsetWithDefault, getSSLContext, getSSLSocketFactory, getX509TrustManager, mergeDefaultHeadersclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitget, get, get, get, get, get, get, get, get, get, getAsBytes, getAsBytes, getAsBytes, getAsBytes, getAsFile, getAsFile, getAsFile, getAsFile, post, post, post, post, post, post, post, post, post, post, post, post, postJson, postJson, upload, upload, upload, upload, upload, upload, upload, upload, upload, uploadpublic ApacheSmartHttpClient setConfig(top.jfunc.common.http.base.Config config)
setConfig 在接口中 top.jfunc.common.http.basic.HttpClientsetConfig 在接口中 top.jfunc.common.http.smart.SmartHttpClientsetConfig 在类中 ApacheHttpClientpublic <R> R template(top.jfunc.common.http.smart.Request request,
top.jfunc.common.http.Method method,
top.jfunc.common.http.base.ContentCallback<org.apache.http.HttpEntityEnclosingRequest> contentCallback,
top.jfunc.common.http.base.ResultCallback<R> resultCallback)
throws java.io.IOException
template 在接口中 top.jfunc.common.http.smart.SmartHttpTemplate<org.apache.http.HttpEntityEnclosingRequest>java.io.IOExceptionpublic top.jfunc.common.http.smart.Response get(top.jfunc.common.http.smart.Request req)
throws java.io.IOException
get 在接口中 top.jfunc.common.http.smart.SmartHttpClientjava.io.IOExceptionpublic top.jfunc.common.http.smart.Response post(top.jfunc.common.http.smart.Request req)
throws java.io.IOException
post 在接口中 top.jfunc.common.http.smart.SmartHttpClientjava.io.IOExceptionpublic top.jfunc.common.http.smart.Response httpMethod(top.jfunc.common.http.smart.Request req,
top.jfunc.common.http.Method method)
throws java.io.IOException
httpMethod 在接口中 top.jfunc.common.http.smart.SmartHttpClientjava.io.IOExceptionpublic byte[] getAsBytes(top.jfunc.common.http.smart.Request req)
throws java.io.IOException
getAsBytes 在接口中 top.jfunc.common.http.smart.SmartHttpClientjava.io.IOExceptionpublic java.io.File getAsFile(top.jfunc.common.http.smart.Request req)
throws java.io.IOException
getAsFile 在接口中 top.jfunc.common.http.smart.SmartHttpClientjava.io.IOExceptionpublic top.jfunc.common.http.smart.Response upload(top.jfunc.common.http.smart.Request req)
throws java.io.IOException
upload 在接口中 top.jfunc.common.http.smart.SmartHttpClientjava.io.IOExceptionpublic top.jfunc.common.http.smart.Response afterTemplate(top.jfunc.common.http.smart.Request request,
top.jfunc.common.http.smart.Response response)
throws java.io.IOException
afterTemplate 在接口中 top.jfunc.common.http.smart.SmartHttpClientjava.io.IOExceptionpublic java.lang.String toString()
toString 在类中 ApacheHttpClient