跳过导航链接
A B C D E F G H I J L M O P R S T U V W X 

A

addInterceptor(HttpInterceptor) - 类 中的方法cn.majingjing.http.client.config.HttpClientConfig
添加拦截器
addInterceptor(HttpInterceptor) - 类 中的方法cn.majingjing.http.client.request.BaseRequest
 
asByteData() - 类 中的方法cn.majingjing.http.client.response.HttpResponse
响应数据转换成字节数组
asFile(File) - 类 中的方法cn.majingjing.http.client.response.HttpResponse
响应数据转换成文件
asString() - 类 中的方法cn.majingjing.http.client.response.HttpResponse
响应数据转换成字符串

B

BaseRequest<Req extends BaseRequest<Req>> - cn.majingjing.http.client.request中的类
基础请求对象
BaseRequest(String, String) - 类 的构造器cn.majingjing.http.client.request.BaseRequest
基础请求对象构造方法
body - 类 中的变量cn.majingjing.http.client.request.BaseRequest
请求体内容
bytesToString(byte[]) - 类 中的静态方法cn.majingjing.http.client.util.StringUtils
 

C

clone(T) - 类 中的静态方法cn.majingjing.http.client.util.ObjectUtils
Clone object
close(InputStream) - 类 中的静态方法cn.majingjing.http.client.util.HttpUtils
关闭输入流
close(OutputStream) - 类 中的静态方法cn.majingjing.http.client.util.HttpUtils
关闭输出流
cn.majingjing.http.client - 程序包 cn.majingjing.http.client
 
cn.majingjing.http.client.config - 程序包 cn.majingjing.http.client.config
 
cn.majingjing.http.client.exception - 程序包 cn.majingjing.http.client.exception
 
cn.majingjing.http.client.handler - 程序包 cn.majingjing.http.client.handler
 
cn.majingjing.http.client.handler.chain - 程序包 cn.majingjing.http.client.handler.chain
 
cn.majingjing.http.client.interceptor - 程序包 cn.majingjing.http.client.interceptor
 
cn.majingjing.http.client.interceptor.impl - 程序包 cn.majingjing.http.client.interceptor.impl
 
cn.majingjing.http.client.interceptor.sample - 程序包 cn.majingjing.http.client.interceptor.sample
 
cn.majingjing.http.client.request - 程序包 cn.majingjing.http.client.request
 
cn.majingjing.http.client.response - 程序包 cn.majingjing.http.client.response
 
cn.majingjing.http.client.response.callback - 程序包 cn.majingjing.http.client.response.callback
 
cn.majingjing.http.client.response.handle - 程序包 cn.majingjing.http.client.response.handle
 
cn.majingjing.http.client.util - 程序包 cn.majingjing.http.client.util
 
connectTimeout - 类 中的变量cn.majingjing.http.client.request.BaseRequest
连接超时时间 (默认10s)
connectTimeout(int) - 类 中的方法cn.majingjing.http.client.request.BaseRequest
设置网络链接时间
CONTENT_TYPE - 类 中的静态变量cn.majingjing.http.client.util.HttpConstant
 
custom(String, String) - 枚举 中的静态方法cn.majingjing.http.client.HttpClient
自定义方式的请求对象
custom(DataHandler<T>) - 类 中的方法cn.majingjing.http.client.response.HttpResponse
自定义响应数据处理
CustomRequest - cn.majingjing.http.client.request中的类
自定义请求方式的请求对象
CustomRequest(String, String) - 类 的构造器cn.majingjing.http.client.request.CustomRequest
 

D

DataHandler<T> - cn.majingjing.http.client.response.handle中的接口
数据处理接口
Demo1HttpInterceptor - cn.majingjing.http.client.interceptor.sample中的类
 
Demo1HttpInterceptor() - 类 的构造器cn.majingjing.http.client.interceptor.sample.Demo1HttpInterceptor
 
Demo2HttpInterceptor - cn.majingjing.http.client.interceptor.sample中的类
 
Demo2HttpInterceptor() - 类 的构造器cn.majingjing.http.client.interceptor.sample.Demo2HttpInterceptor
 
deserialize(byte[]) - 类 中的静态方法cn.majingjing.http.client.util.ObjectUtils
Deserialize byte [] into object

E

EmptyHttpCallBack - cn.majingjing.http.client.response.callback中的类
请求回调示例
EmptyHttpCallBack() - 类 的构造器cn.majingjing.http.client.response.callback.EmptyHttpCallBack
 
execute() - 类 中的方法cn.majingjing.http.client.request.BaseRequest
同步-执行HTTP请求
executeAsync(HttpCallBack) - 类 中的方法cn.majingjing.http.client.request.BaseRequest
异步-执行HTTP请求

F

FileDataHandler - cn.majingjing.http.client.response.handle中的类
文件数据处理
FileDataHandler(File) - 类 的构造器cn.majingjing.http.client.response.handle.FileDataHandler
 

G

get(String) - 枚举 中的静态方法cn.majingjing.http.client.HttpClient
Get方式的请求对象
getAsyncExecuteThreadPool() - 类 中的静态方法cn.majingjing.http.client.util.HttpFactory
获取异步执行的线程池
getAsyncExecuteThreadPoolCorePoolSize() - 类 中的方法cn.majingjing.http.client.config.HttpClientConfig
 
getAsyncExecuteThreadPoolMaxPoolSize() - 类 中的方法cn.majingjing.http.client.config.HttpClientConfig
 
getBody() - 类 中的方法cn.majingjing.http.client.request.HttpRequest
 
getConfig() - 枚举 中的方法cn.majingjing.http.client.HttpClient
获取全局配置
getConnectTimeout() - 类 中的方法cn.majingjing.http.client.config.HttpClientConfig
 
getConnectTimeout() - 类 中的方法cn.majingjing.http.client.request.HttpRequest
 
getException() - 类 中的方法cn.majingjing.http.client.response.HttpResponse
响应异常信息
getHeaders() - 类 中的方法cn.majingjing.http.client.config.HttpClientConfig
 
getHeaders() - 类 中的方法cn.majingjing.http.client.request.HttpRequest
 
getHeaders() - 类 中的方法cn.majingjing.http.client.response.HttpResponse
响应header信息
getHttpRequest() - 接口 中的方法cn.majingjing.http.client.handler.chain.HttpChain
获取请求对象
getHttpRequest() - 类 中的方法cn.majingjing.http.client.handler.chain.RealHttpChain
 
getInterceptors() - 类 中的方法cn.majingjing.http.client.config.HttpClientConfig
 
getInterceptors() - 类 中的方法cn.majingjing.http.client.request.HttpRequest
 
getLogger() - 类 中的静态方法cn.majingjing.http.client.util.HttpLogs
 
getMaxRetry() - 类 中的方法cn.majingjing.http.client.config.HttpClientConfig
 
getMaxRetry() - 类 中的方法cn.majingjing.http.client.request.HttpRequest
 
getMethod() - 类 中的方法cn.majingjing.http.client.request.HttpRequest
 
getParam() - 类 中的方法cn.majingjing.http.client.request.HttpRequest
 
getReadTimeout() - 类 中的方法cn.majingjing.http.client.config.HttpClientConfig
 
getReadTimeout() - 类 中的方法cn.majingjing.http.client.request.HttpRequest
 
GetRequest - cn.majingjing.http.client.request中的类
Get方式的请求对象
GetRequest(String) - 类 的构造器cn.majingjing.http.client.request.GetRequest
 
getStatusCode() - 类 中的方法cn.majingjing.http.client.response.HttpResponse
响应状态码
getTraceId() - 类 中的方法cn.majingjing.http.client.request.HttpRequest
 
getUrl() - 类 中的方法cn.majingjing.http.client.request.HttpRequest
 
getValueOrDefault(Object, Object) - 类 中的静态方法cn.majingjing.http.client.util.ObjectUtils
 
getWriteTimeout() - 类 中的方法cn.majingjing.http.client.config.HttpClientConfig
 
getWriteTimeout() - 类 中的方法cn.majingjing.http.client.request.HttpRequest
 
guid() - 类 中的静态方法cn.majingjing.http.client.util.StringUtils
 

H

handle(byte[]) - 接口 中的方法cn.majingjing.http.client.response.handle.DataHandler
Convert body to T
handle(byte[]) - 类 中的方法cn.majingjing.http.client.response.handle.FileDataHandler
Convert body to File
handle(byte[]) - 类 中的方法cn.majingjing.http.client.response.handle.StringDataHandler
Convert body to T
handleRequest(HttpRequest) - 接口 中的方法cn.majingjing.http.client.handler.HttpHandler
执行http的请求
handleRequest(HttpRequest) - 类 中的方法cn.majingjing.http.client.handler.JdkHttpHandler
 
header(String, String) - 类 中的方法cn.majingjing.http.client.request.BaseRequest
添加请求头
headers - 类 中的变量cn.majingjing.http.client.request.BaseRequest
存储请求头信息
HttpCallBack - cn.majingjing.http.client.response.callback中的接口
Http client 回调接口
HttpChain - cn.majingjing.http.client.handler.chain中的接口
Http 调用链
httpChain() - 类 中的静态方法cn.majingjing.http.client.util.HttpFactory
获取http调用链
httpChain(List<HttpInterceptor>) - 类 中的静态方法cn.majingjing.http.client.util.HttpFactory
 
HttpClient - cn.majingjing.http.client中的枚举
Http client
HttpClientConfig - cn.majingjing.http.client.config中的类
 
HttpClientConfig() - 类 的构造器cn.majingjing.http.client.config.HttpClientConfig
 
HttpClientException - cn.majingjing.http.client.exception中的异常错误
Http Exception
HttpClientException() - 异常错误 的构造器cn.majingjing.http.client.exception.HttpClientException
 
HttpClientException(String) - 异常错误 的构造器cn.majingjing.http.client.exception.HttpClientException
 
HttpClientException(String, Throwable) - 异常错误 的构造器cn.majingjing.http.client.exception.HttpClientException
 
HttpClientException(String, String, Throwable) - 异常错误 的构造器cn.majingjing.http.client.exception.HttpClientException
 
HttpClientException(Throwable) - 异常错误 的构造器cn.majingjing.http.client.exception.HttpClientException
 
HttpClientException(String, Throwable, boolean, boolean) - 异常错误 的构造器cn.majingjing.http.client.exception.HttpClientException
 
HttpConstant - cn.majingjing.http.client.util中的类
 
HttpFactory - cn.majingjing.http.client.util中的类
Http 工厂
HttpFactory() - 类 的构造器cn.majingjing.http.client.util.HttpFactory
 
HttpHandler - cn.majingjing.http.client.handler中的接口
Http处理类
HttpInterceptor - cn.majingjing.http.client.interceptor中的接口
http 拦截器
HttpLogs - cn.majingjing.http.client.util中的类
 
HttpRequest - cn.majingjing.http.client.request中的类
 
HttpResponse - cn.majingjing.http.client.response中的类
http响应对象
HttpResponse(int, byte[], HttpClientException, Map<String, List<String>>) - 类 的构造器cn.majingjing.http.client.response.HttpResponse
 
HTTPS - 类 中的静态变量cn.majingjing.http.client.util.HttpConstant
 
HttpTraceIdInterceptor - cn.majingjing.http.client.interceptor.impl中的类
 
HttpTraceIdInterceptor() - 类 的构造器cn.majingjing.http.client.interceptor.impl.HttpTraceIdInterceptor
 
HttpUtils - cn.majingjing.http.client.util中的类
Http工具包
HttpUtils() - 类 的构造器cn.majingjing.http.client.util.HttpUtils
 

I

ignoreAllSsl() - 类 中的静态方法cn.majingjing.http.client.util.SslUtils
忽略整个应用的HTTPS请求的SSL证书,必须在openConnection之前调用
ignoreSsl(HttpsURLConnection) - 类 中的静态方法cn.majingjing.http.client.util.SslUtils
忽略当前请求链接的HTTPS请求的SSL证书
intercept(HttpChain) - 接口 中的方法cn.majingjing.http.client.interceptor.HttpInterceptor
执行过滤器
intercept(HttpChain) - 类 中的方法cn.majingjing.http.client.interceptor.impl.HttpTraceIdInterceptor
 
intercept(HttpChain) - 类 中的方法cn.majingjing.http.client.interceptor.sample.Demo1HttpInterceptor
 
intercept(HttpChain) - 类 中的方法cn.majingjing.http.client.interceptor.sample.Demo2HttpInterceptor
 
intercept(HttpChain) - 类 中的方法cn.majingjing.http.client.interceptor.sample.LoggingHttpInterceptor
 
interceptors - 类 中的变量cn.majingjing.http.client.request.BaseRequest
 
isEmpty(String) - 类 中的静态方法cn.majingjing.http.client.util.StringUtils
判断字符串为空
isNotEmpty(String) - 类 中的静态方法cn.majingjing.http.client.util.StringUtils
判断字符串不为空
isNotNull(Object) - 类 中的静态方法cn.majingjing.http.client.util.ObjectUtils
 
isNull(Object) - 类 中的静态方法cn.majingjing.http.client.util.ObjectUtils
 
isSucceed() - 类 中的方法cn.majingjing.http.client.response.HttpResponse
请求是否成功
isSuccess(int) - 类 中的静态方法cn.majingjing.http.client.util.HttpUtils
http状态码是否为成功码(小于400)

J

JdkHttpHandler - cn.majingjing.http.client.handler中的类
JDK 方式的http处理类
JdkHttpHandler() - 类 的构造器cn.majingjing.http.client.handler.JdkHttpHandler
 
json(String) - 类 中的方法cn.majingjing.http.client.request.PostRequest
body为json格式

L

LoggingHttpInterceptor - cn.majingjing.http.client.interceptor.sample中的类
 
LoggingHttpInterceptor() - 类 的构造器cn.majingjing.http.client.interceptor.sample.LoggingHttpInterceptor
 

M

maxRetry - 类 中的变量cn.majingjing.http.client.request.BaseRequest
失败最大重试次数 (默认不重试)
maxRetry(int) - 类 中的方法cn.majingjing.http.client.request.BaseRequest
设置最大重试次数(不包含第一次调用失败次数,即总执行次数为 maxRetry+1)
method - 类 中的变量cn.majingjing.http.client.request.BaseRequest
请求方式

O

ObjectUtils - cn.majingjing.http.client.util中的类
 
onComplete(HttpRequest, HttpResponse) - 类 中的方法cn.majingjing.http.client.response.callback.EmptyHttpCallBack
 
onComplete(HttpRequest, HttpResponse) - 接口 中的方法cn.majingjing.http.client.response.callback.HttpCallBack
当请求完成时发生回调

P

param - 类 中的变量cn.majingjing.http.client.request.BaseRequest
url上的请求参数
param(String, String) - 类 中的方法cn.majingjing.http.client.request.BaseRequest
添加url请求参数
post(String) - 枚举 中的静态方法cn.majingjing.http.client.HttpClient
Post方式的请求对象
PostRequest - cn.majingjing.http.client.request中的类
Post方式的请求对象
PostRequest(String) - 类 的构造器cn.majingjing.http.client.request.PostRequest
 
proceed(HttpRequest) - 接口 中的方法cn.majingjing.http.client.handler.chain.HttpChain
执行http请求
proceed(HttpRequest) - 类 中的方法cn.majingjing.http.client.handler.chain.RealHttpChain
 

R

readTimeout - 类 中的变量cn.majingjing.http.client.request.BaseRequest
流读取超时时间 (默认10s)
readTimeout(int) - 类 中的方法cn.majingjing.http.client.request.BaseRequest
设置请求读取时间
RealHttpChain - cn.majingjing.http.client.handler.chain中的类
真实调用链
RealHttpChain(HttpHandler, List<HttpInterceptor>) - 类 的构造器cn.majingjing.http.client.handler.chain.RealHttpChain
 
removeHeader(String) - 类 中的方法cn.majingjing.http.client.request.BaseRequest
删除请求头
RequestMethod - cn.majingjing.http.client.request中的枚举
请求方式

S

serialize(Object) - 类 中的静态方法cn.majingjing.http.client.util.ObjectUtils
Serialize objects into byte []
setAsyncExecuteThreadPool(int, int) - 类 中的方法cn.majingjing.http.client.config.HttpClientConfig
 
setConnectTimeout(int) - 类 中的方法cn.majingjing.http.client.config.HttpClientConfig
 
setMaxRetry(int) - 类 中的方法cn.majingjing.http.client.config.HttpClientConfig
 
setReadTimeout(int) - 类 中的方法cn.majingjing.http.client.config.HttpClientConfig
 
setWriteTimeout(int) - 类 中的方法cn.majingjing.http.client.config.HttpClientConfig
 
SSL - 类 中的静态变量cn.majingjing.http.client.util.HttpConstant
 
SslUtils - cn.majingjing.http.client.util中的类
ssl utils
stream(byte[]) - 类 中的方法cn.majingjing.http.client.request.PostRequest
body为xml格式
StringDataHandler - cn.majingjing.http.client.response.handle中的类
文本数据处理
StringDataHandler() - 类 的构造器cn.majingjing.http.client.response.handle.StringDataHandler
 
StringUtils - cn.majingjing.http.client.util中的类
字符串工具类

T

text(String) - 类 中的方法cn.majingjing.http.client.request.PostRequest
body为纯文本
toByteArray(InputStream) - 类 中的静态方法cn.majingjing.http.client.util.HttpUtils
将输入流转换成字节数组
toBytes(String) - 类 中的静态方法cn.majingjing.http.client.util.StringUtils
 
toString() - 类 中的方法cn.majingjing.http.client.request.HttpRequest
 
toStrings(String, Object...) - 类 中的静态方法cn.majingjing.http.client.util.StringUtils
记录log日志
TRACE_ID_NAME - 类 中的静态变量cn.majingjing.http.client.util.HttpConstant
 
traceId - 类 中的变量cn.majingjing.http.client.request.BaseRequest
 
traceId(String) - 类 中的方法cn.majingjing.http.client.request.BaseRequest
 

U

url - 类 中的变量cn.majingjing.http.client.request.BaseRequest
请求地址
USER_AGENT_VALUE - 类 中的静态变量cn.majingjing.http.client.util.HttpConstant
 

V

valueOf(String) - 枚举 中的静态方法cn.majingjing.http.client.HttpClient
返回带有指定名称的该类型的枚举常量。
valueOf(String) - 枚举 中的静态方法cn.majingjing.http.client.request.RequestMethod
返回带有指定名称的该类型的枚举常量。
values() - 枚举 中的静态方法cn.majingjing.http.client.HttpClient
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
values() - 枚举 中的静态方法cn.majingjing.http.client.request.RequestMethod
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。

W

writeTimeout - 类 中的变量cn.majingjing.http.client.request.BaseRequest
流写入超时时间

X

xml(String) - 类 中的方法cn.majingjing.http.client.request.PostRequest
body为xml格式
A B C D E F G H I J L M O P R S T U V W X 
跳过导航链接

Copyright © 2022. All Rights Reserved.