跳过导航链接
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.HttpClient
添加拦截器
asByteData() - 类 中的方法cn.majingjing.http.client.response.HttpResponse
响应数据转换成字节数组
asFile(File) - 类 中的方法cn.majingjing.http.client.response.HttpResponse
响应数据转换成文件
asString() - 类 中的方法cn.majingjing.http.client.response.HttpResponse
响应数据转换成字符串
asyncExecute(HttpCallBack) - 类 中的方法cn.majingjing.http.client.request.BaseRequest
异步-执行HTTP请求

B

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

C

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.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.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
设置网络链接时间
custom(RequestMethod, String) - 枚举 中的静态方法cn.majingjing.http.client.HttpClient
自定义方式的请求对象
custom(DataHandler<T>) - 类 中的方法cn.majingjing.http.client.response.HttpResponse
自定义响应数据处理
CustomRequest - cn.majingjing.http.client.request中的类
自定义请求方式的请求对象
CustomRequest(String, RequestMethod) - 类 的构造器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
 

E

execute() - 类 中的方法cn.majingjing.http.client.request.BaseRequest
同步-执行HTTP请求

F

FileDataHandler - cn.majingjing.http.client.response.handle中的类
文件数据处理
FileDataHandler(File) - 类 的构造器cn.majingjing.http.client.response.handle.FileDataHandler
 
form(String, String) - 类 中的方法cn.majingjing.http.client.request.PostRequest
body为form表单

G

get(String) - 枚举 中的静态方法cn.majingjing.http.client.HttpClient
Get方式的请求对象
getAsyncExecuteThreadPool() - 类 中的静态方法cn.majingjing.http.client.util.HttpFactory
获取异步执行的线程池
getBody() - 类 中的方法cn.majingjing.http.client.request.HttpRequest
 
getConnectTimeout() - 类 中的方法cn.majingjing.http.client.request.HttpRequest
 
getException() - 类 中的方法cn.majingjing.http.client.response.HttpResponse
响应异常信息
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.HttpClient
 
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.request.HttpRequest
 
GetRequest - cn.majingjing.http.client.request中的类
Get方式的请求对象
GetRequest(String) - 类 的构造器cn.majingjing.http.client.request.GetRequest
 
getStatusCode() - 类 中的方法cn.majingjing.http.client.response.HttpResponse
响应状态码
getUrl() - 类 中的方法cn.majingjing.http.client.request.HttpRequest
 
getWriteTimeout() - 类 中的方法cn.majingjing.http.client.request.HttpRequest
 

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调用链
HttpClient - cn.majingjing.http.client中的枚举
Http client
HttpException - cn.majingjing.http.client.exception中的异常错误
Http Exception
HttpException() - 异常错误 的构造器cn.majingjing.http.client.exception.HttpException
Constructs a new runtime exception with null as its detail message.
HttpException(String) - 异常错误 的构造器cn.majingjing.http.client.exception.HttpException
Constructs a new runtime exception with the specified detail message.
HttpException(String, Throwable) - 异常错误 的构造器cn.majingjing.http.client.exception.HttpException
Constructs a new runtime exception with the specified detail message and cause.
HttpException(Throwable) - 异常错误 的构造器cn.majingjing.http.client.exception.HttpException
Constructs a new runtime exception with the specified cause and a detail message of (cause==null ?
HttpException(String, Throwable, boolean, boolean) - 异常错误 的构造器cn.majingjing.http.client.exception.HttpException
Constructs a new runtime exception with the specified detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled.
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 拦截器
HttpRequest - cn.majingjing.http.client.request中的类
 
HttpResponse - cn.majingjing.http.client.response中的类
http响应对象
HttpResponse(int, byte[], HttpException, Map<String, List<String>>) - 类 的构造器cn.majingjing.http.client.response.HttpResponse
 
HttpUtils - cn.majingjing.http.client.util中的类
Http工具包
HttpUtils() - 类 的构造器cn.majingjing.http.client.util.HttpUtils
 

I

ignoreSsl() - 类 中的静态方法cn.majingjing.http.client.util.SslUtils
忽略HTTPS请求的SSL证书,必须在openConnection之前调用
intercept(HttpChain) - 接口 中的方法cn.majingjing.http.client.interceptor.HttpInterceptor
执行过滤器
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
 
isEmpty(String) - 类 中的静态方法cn.majingjing.http.client.util.StringUtils
判断字符串为空
isNotEmpty(String) - 类 中的静态方法cn.majingjing.http.client.util.StringUtils
判断字符串不为空
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

log(String, Object...) - 类 中的静态方法cn.majingjing.http.client.util.HttpUtils
记录log日志
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

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

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

SampleHttpCallBack - cn.majingjing.http.client.response.callback中的类
请求回调示例
SampleHttpCallBack() - 类 的构造器cn.majingjing.http.client.response.callback.SampleHttpCallBack
 
SslUtils - cn.majingjing.http.client.util中的类
ssl utils
SslUtils() - 类 的构造器cn.majingjing.http.client.util.SslUtils
 
StringDataHandler - cn.majingjing.http.client.response.handle中的类
文本数据处理
StringDataHandler() - 类 的构造器cn.majingjing.http.client.response.handle.StringDataHandler
 
StringUtils - cn.majingjing.http.client.util中的类
字符串工具类
StringUtils() - 类 的构造器cn.majingjing.http.client.util.StringUtils
 

T

text(String) - 类 中的方法cn.majingjing.http.client.request.PostRequest
body为纯文本
toByteArray(InputStream) - 类 中的静态方法cn.majingjing.http.client.util.HttpUtils
将输入流转换成字节数组
toString() - 类 中的方法cn.majingjing.http.client.request.HttpRequest
 

U

url - 类 中的变量cn.majingjing.http.client.request.BaseRequest
请求地址

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 © 2020. All Rights Reserved.