Skip navigation links
A B C D E F G H I J L M N O P R S T U V W 

A

ActivityLifecycle - Class in com.hjq.http.lifecycle
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2020/09/01 desc : Activity 生命周期策略
ActivityLifecycle(Activity) - Constructor for class com.hjq.http.lifecycle.ActivityLifecycle
 
addHeader(String, String) - Method in class com.hjq.http.EasyConfig
 
addParam(String, String) - Method in class com.hjq.http.EasyConfig
 
api(Class<? extends IRequestApi>) - Method in class com.hjq.http.request.BaseRequest
 
api(String) - Method in class com.hjq.http.request.BaseRequest
 
api(IRequestApi) - Method in class com.hjq.http.request.BaseRequest
设置请求配置
ApplicationLifecycle - Class in com.hjq.http.lifecycle
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2020/09/01 desc : 全局的生命周期策略
ApplicationLifecycle() - Constructor for class com.hjq.http.lifecycle.ApplicationLifecycle
 

B

BaseCallback - Class in com.hjq.http.callback
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/11/25 desc : 接口回调基类
BaseCallback(BaseRequest<?>) - Constructor for class com.hjq.http.callback.BaseCallback
 
BaseRequest<T extends BaseRequest<?>> - Class in com.hjq.http.request
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/07/20 desc : 请求基类
BaseRequest(LifecycleOwner) - Constructor for class com.hjq.http.request.BaseRequest
 
beanToHashMap(Object) - Static method in class com.hjq.http.EasyUtils
将 Bean 类转成 HashMap 对象
bind(LifecycleOwner) - Static method in class com.hjq.http.lifecycle.HttpLifecycleManager
绑定组件的生命周期
body(RequestBody) - Method in class com.hjq.http.request.BodyRequest
自定义 RequestBody
BodyRequest<T extends BodyRequest<?>> - Class in com.hjq.http.request
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2020/10/07 desc : 带 RequestBody 请求
BodyRequest(LifecycleOwner) - Constructor for class com.hjq.http.request.BodyRequest
 
BodyType - Enum in com.hjq.http.model
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/12/18 desc : 参数提交方式

C

CacheMode - Enum in com.hjq.http.model
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2021/05/22 desc : 数据缓存模式
CallProxy - Class in com.hjq.http.model
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/12/14 desc : 请求对象代理
CallProxy(Call) - Constructor for class com.hjq.http.model.CallProxy
 
cancel(LifecycleOwner) - Static method in class com.hjq.http.EasyHttp
取消请求
cancel() - Static method in class com.hjq.http.EasyHttp
清除所有请求任务
cancel() - Method in class com.hjq.http.model.CallProxy
 
cancel() - Method in class com.hjq.http.request.BaseRequest
取消请求
cancel() - Method in class com.hjq.http.request.DownloadRequest
 
CancelException - Exception in com.hjq.http.exception
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/06/25 desc : 请求取消异常
CancelException(String) - Constructor for exception com.hjq.http.exception.CancelException
 
CancelException(String, Throwable) - Constructor for exception com.hjq.http.exception.CancelException
 
checkClientTrusted(X509Certificate[], String) - Method in class com.hjq.http.ssl.UnSafeTrustManager
 
checkServerTrusted(X509Certificate[], String) - Method in class com.hjq.http.ssl.UnSafeTrustManager
 
clone() - Method in class com.hjq.http.model.CallProxy
 
closeStream(Closeable) - Static method in class com.hjq.http.EasyUtils
关闭流
com.hjq.http - package com.hjq.http
 
com.hjq.http.annotation - package com.hjq.http.annotation
 
com.hjq.http.body - package com.hjq.http.body
 
com.hjq.http.callback - package com.hjq.http.callback
 
com.hjq.http.config - package com.hjq.http.config
 
com.hjq.http.exception - package com.hjq.http.exception
 
com.hjq.http.lifecycle - package com.hjq.http.lifecycle
 
com.hjq.http.listener - package com.hjq.http.listener
 
com.hjq.http.model - package com.hjq.http.model
 
com.hjq.http.request - package com.hjq.http.request
 
com.hjq.http.ssl - package com.hjq.http.ssl
 
contentLength() - Method in class com.hjq.http.body.JsonBody
 
contentLength() - Method in class com.hjq.http.body.ProgressBody
 
contentLength() - Method in class com.hjq.http.body.StringBody
 
contentLength() - Method in class com.hjq.http.body.UpdateBody
 
contentType() - Method in class com.hjq.http.body.JsonBody
 
contentType() - Method in class com.hjq.http.body.ProgressBody
 
contentType() - Method in class com.hjq.http.body.StringBody
 
contentType() - Method in class com.hjq.http.body.UpdateBody
 
ContentType - Class in com.hjq.http.model
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2021/03/31 desc : RequestBody 包装类(用于获取上传进度)
ContentType() - Constructor for class com.hjq.http.model.ContentType
 
createCall() - Method in class com.hjq.http.request.BaseRequest
创建连接对象
createFolder(File) - Static method in class com.hjq.http.model.FileWrapper
创建文件夹
createPart(String, File) - Static method in class com.hjq.http.EasyUtils
根据 File 对象创建一个流媒体
createPart(String, InputStream) - Static method in class com.hjq.http.EasyUtils
根据 InputStream 对象创建一个流媒体
createRequest(String, String, HttpParams, HttpHeaders, BodyType) - Method in class com.hjq.http.request.BaseRequest
创建请求的对象
createRequest(String, String, HttpParams, HttpHeaders, BodyType) - Method in class com.hjq.http.request.BodyRequest
 
createRequest(String, String, HttpParams, HttpHeaders, BodyType) - Method in class com.hjq.http.request.DownloadRequest
 
createRequest(String, String, HttpParams, HttpHeaders, BodyType) - Method in class com.hjq.http.request.UrlRequest
 

D

DataException - Exception in com.hjq.http.exception
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/06/25 desc : 数据解析异常
DataException(String) - Constructor for exception com.hjq.http.exception.DataException
 
DataException(String, Throwable) - Constructor for exception com.hjq.http.exception.DataException
 
delay(long, TimeUnit) - Method in class com.hjq.http.request.BaseRequest
 
delay(long) - Method in class com.hjq.http.request.BaseRequest
设置请求延迟执行
delete(LifecycleOwner) - Static method in class com.hjq.http.EasyHttp
Delete 请求
delete() - Method in class com.hjq.http.model.FileContentResolver
 
DeleteRequest - Class in com.hjq.http.request
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2020/10/07 desc : Delete 请求 doc : Delete 请求该用 Url 还是 Body 来传递参数 https://stackoverflow.com/questions/299628/is-an-entity-body-allowed-for-an-http-delete-request
DeleteRequest(LifecycleOwner) - Constructor for class com.hjq.http.request.DeleteRequest
 
download(LifecycleOwner) - Static method in class com.hjq.http.EasyHttp
下载请求
DownloadCallback - Class in com.hjq.http.callback
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/11/25 desc : 下载接口回调
DownloadCallback(BaseRequest<?>) - Constructor for class com.hjq.http.callback.DownloadCallback
 
DownloadRequest - Class in com.hjq.http.request
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/07/20 desc : 下载请求
DownloadRequest(LifecycleOwner) - Constructor for class com.hjq.http.request.DownloadRequest
 

E

EasyConfig - Class in com.hjq.http
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/05/19 desc : 网络请求配置类
EasyHttp - Class in com.hjq.http
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/05/19 desc : 网络请求类
EasyHttp() - Constructor for class com.hjq.http.EasyHttp
 
EasyLog - Class in com.hjq.http
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2020/05/10 desc : 日志打印类
EasyLog() - Constructor for class com.hjq.http.EasyLog
 
EasyUtils - Class in com.hjq.http
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/11/17 desc : 请求工具类
EasyUtils() - Constructor for class com.hjq.http.EasyUtils
 
encodeString(String) - Static method in class com.hjq.http.EasyUtils
字符串编码
enqueue(Callback) - Method in class com.hjq.http.model.CallProxy
 
execute() - Method in class com.hjq.http.model.CallProxy
 
execute(ResponseClass<Bean>) - Method in class com.hjq.http.request.BaseRequest
执行同步请求
execute(ResponseClass<Bean>) - Method in class com.hjq.http.request.DownloadRequest
 
exists() - Method in class com.hjq.http.model.FileContentResolver
 

F

file(String) - Method in class com.hjq.http.request.DownloadRequest
设置保存的路径
file(File) - Method in class com.hjq.http.request.DownloadRequest
 
file(ContentResolver, Uri) - Method in class com.hjq.http.request.DownloadRequest
 
file(FileContentResolver) - Method in class com.hjq.http.request.DownloadRequest
 
FileContentResolver - Class in com.hjq.http.model
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2021/04/18 desc : 文件内容解析器
FileContentResolver(Context, Uri) - Constructor for class com.hjq.http.model.FileContentResolver
 
FileContentResolver(ContentResolver, Uri) - Constructor for class com.hjq.http.model.FileContentResolver
 
FileContentResolver(Context, Uri, String) - Constructor for class com.hjq.http.model.FileContentResolver
 
FileContentResolver(ContentResolver, Uri, String) - Constructor for class com.hjq.http.model.FileContentResolver
 
FileWrapper - Class in com.hjq.http.model
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2021/04/18 desc : File 包装类
FileWrapper(File) - Constructor for class com.hjq.http.model.FileWrapper
 
formatJson(String) - Static method in interface com.hjq.http.config.ILogStrategy
将字符串格式化成 JSON 格式

G

generateSslConfig() - Static method in class com.hjq.http.ssl.HttpSslFactory
生成信任任何证书的配置
generateSslConfig(X509TrustManager) - Static method in class com.hjq.http.ssl.HttpSslFactory
https 单向认证
generateSslConfig(InputStream...) - Static method in class com.hjq.http.ssl.HttpSslFactory
https 单向认证
generateSslConfig(InputStream, String, InputStream...) - Static method in class com.hjq.http.ssl.HttpSslFactory
https 双向认证
generateSslConfig(InputStream, String, X509TrustManager) - Static method in class com.hjq.http.ssl.HttpSslFactory
https 双向认证
generateUnSafeHostnameVerifier() - Static method in class com.hjq.http.ssl.HttpSslFactory
 
get(LifecycleOwner) - Static method in class com.hjq.http.EasyHttp
Get 请求
get(String) - Method in class com.hjq.http.model.HttpHeaders
 
get(String) - Method in class com.hjq.http.model.HttpParams
 
getAcceptedIssuers() - Method in class com.hjq.http.ssl.UnSafeTrustManager
 
getApi() - Method in interface com.hjq.http.config.IRequestApi
请求接口
getApi() - Method in class com.hjq.http.config.RequestApi
 
getCall() - Method in class com.hjq.http.callback.BaseCallback
 
getClient() - Method in interface com.hjq.http.config.IRequestClient
获取 OkHttpClient
getClient() - Method in class com.hjq.http.EasyConfig
 
getContentType() - Method in class com.hjq.http.model.FileContentResolver
获取内容类型
getContentUri() - Method in class com.hjq.http.model.FileContentResolver
获取内容的 uri
getData() - Method in exception com.hjq.http.exception.ResultException
 
getDelayMillis() - Method in class com.hjq.http.request.BaseRequest
获取延迟请求时间
getFileMd5(InputStream) - Static method in class com.hjq.http.model.FileWrapper
获取文件的 md5
getFileName() - Method in class com.hjq.http.model.FileContentResolver
获取真实的文件名
getHandler() - Method in class com.hjq.http.EasyConfig
 
getHeaders() - Method in class com.hjq.http.EasyConfig
 
getHeaders() - Method in class com.hjq.http.model.HttpHeaders
 
getHost() - Method in interface com.hjq.http.config.IRequestHost
主机地址
getHost() - Method in class com.hjq.http.config.RequestServer
 
getInstance() - Static method in class com.hjq.http.EasyConfig
 
getInterceptor() - Method in class com.hjq.http.EasyConfig
 
getJson() - Method in class com.hjq.http.body.JsonBody
获取 Json 字符串
getKeyName() - Method in class com.hjq.http.body.UpdateBody
 
getLifecycle() - Method in class com.hjq.http.lifecycle.ActivityLifecycle
LifecycleOwner
getLifecycle() - Method in class com.hjq.http.lifecycle.ApplicationLifecycle
 
getLifecycle() - Method in class com.hjq.http.lifecycle.LifecycleService
 
getLifecycleOwner() - Method in class com.hjq.http.request.BaseRequest
获取生命周期管控对象
getLogStrategy() - Method in class com.hjq.http.EasyConfig
 
getLogTag() - Method in class com.hjq.http.EasyConfig
 
getMD5() - Method in exception com.hjq.http.exception.MD5Exception
 
getMessage() - Method in exception com.hjq.http.exception.HttpException
获取错误信息
getMode() - Method in interface com.hjq.http.config.IRequestCache
接口缓存方式
getMode() - Method in interface com.hjq.http.config.IRequestServer
 
getNames() - Method in class com.hjq.http.model.HttpHeaders
 
getNames() - Method in class com.hjq.http.model.HttpParams
 
getParams() - Method in class com.hjq.http.EasyConfig
 
getParams() - Method in class com.hjq.http.model.HttpParams
 
getParentFile() - Method in class com.hjq.http.model.FileContentResolver
 
getPath() - Method in interface com.hjq.http.config.IRequestPath
路径地址
getPath() - Method in interface com.hjq.http.config.IRequestServer
 
getPath() - Method in class com.hjq.http.config.RequestServer
 
getProgressProgress(long, long) - Static method in class com.hjq.http.EasyUtils
获取进度百分比
getReflectType(Object) - Static method in class com.hjq.http.EasyUtils
获取对象反射类型
GetRequest - Class in com.hjq.http.request
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/07/20 desc : Get 请求
GetRequest(LifecycleOwner) - Constructor for class com.hjq.http.request.GetRequest
 
getRequestApi() - Method in class com.hjq.http.request.BaseRequest
获取请求接口对象
getRequestCache() - Method in class com.hjq.http.request.BaseRequest
获取请求缓存策略
getRequestHandler() - Method in class com.hjq.http.request.BaseRequest
获取请求处理对象
getRequestMethod() - Method in class com.hjq.http.request.BaseRequest
获取请求的方式
getRequestMethod() - Method in class com.hjq.http.request.DeleteRequest
 
getRequestMethod() - Method in class com.hjq.http.request.DownloadRequest
 
getRequestMethod() - Method in class com.hjq.http.request.GetRequest
 
getRequestMethod() - Method in class com.hjq.http.request.HeadRequest
 
getRequestMethod() - Method in class com.hjq.http.request.OptionsRequest
 
getRequestMethod() - Method in class com.hjq.http.request.PatchRequest
 
getRequestMethod() - Method in class com.hjq.http.request.PostRequest
 
getRequestMethod() - Method in class com.hjq.http.request.PutRequest
 
getRequestMethod() - Method in class com.hjq.http.request.TraceRequest
 
getResponse() - Method in exception com.hjq.http.exception.ResponseException
 
getRetryCount() - Method in class com.hjq.http.EasyConfig
 
getRetryTime() - Method in class com.hjq.http.EasyConfig
 
getServer() - Method in class com.hjq.http.EasyConfig
 
getSpaceOrTab(int) - Static method in interface com.hjq.http.config.ILogStrategy
创建对应数量的制表符
getSslSocketFactory() - Method in class com.hjq.http.ssl.HttpSslConfig
 
getTrustManager() - Method in class com.hjq.http.ssl.HttpSslConfig
 
getType() - Method in interface com.hjq.http.config.IRequestServer
 
getType() - Method in interface com.hjq.http.config.IRequestType
参数提交类型
guessMimeType(String) - Static method in class com.hjq.http.model.ContentType
根据文件名获取 MIME 类型

H

handler(IRequestHandler) - Method in class com.hjq.http.request.BaseRequest
替换默认的请求处理策略
head(LifecycleOwner) - Static method in class com.hjq.http.EasyHttp
Head 请求
HeadRequest - Class in com.hjq.http.request
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2020/10/07 desc : Head 请求
HeadRequest(LifecycleOwner) - Constructor for class com.hjq.http.request.HeadRequest
 
HttpCallback<T> - Class in com.hjq.http.listener
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/05/19 desc : 请求回调包装类
HttpCallback(OnHttpListener) - Constructor for class com.hjq.http.listener.HttpCallback
 
HttpException - Exception in com.hjq.http.exception
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/05/19 desc : 网络请求异常
HttpException(String) - Constructor for exception com.hjq.http.exception.HttpException
 
HttpException(String, Throwable) - Constructor for exception com.hjq.http.exception.HttpException
 
HttpHeader - Annotation Type in com.hjq.http.annotation
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/05/19 desc : 请求头注解(标记这个字段是一个请求头的参数)
HttpHeaders - Class in com.hjq.http.model
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/07/20 desc : 请求头封装
HttpHeaders() - Constructor for class com.hjq.http.model.HttpHeaders
 
HttpIgnore - Annotation Type in com.hjq.http.annotation
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/05/19 desc : 忽略注解(这个参数或者请求头将不会被发送到后台)
HttpLifecycleManager - Class in com.hjq.http.lifecycle
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2020/04/05 desc : 请求生命周期控制
HttpLifecycleManager() - Constructor for class com.hjq.http.lifecycle.HttpLifecycleManager
 
HttpMethod - Enum in com.hjq.http.model
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/05/19 desc : 请求方式
HttpParams - Class in com.hjq.http.model
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/07/20 desc : 请求参数封装
HttpParams() - Constructor for class com.hjq.http.model.HttpParams
 
HttpRename - Annotation Type in com.hjq.http.annotation
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/05/19 desc : 重命名注解
HttpSslConfig - Class in com.hjq.http.ssl
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2020/11/30 desc : Https 配置类
HttpSslFactory - Class in com.hjq.http.ssl
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2020/11/30 desc : Https 证书校验工厂
HttpSslFactory() - Constructor for class com.hjq.http.ssl.HttpSslFactory
 

I

ILogStrategy - Interface in com.hjq.http.config
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2020/04/24 desc : 日志打印策略
interceptArguments(IRequestApi, HttpParams, HttpHeaders) - Method in interface com.hjq.http.config.IRequestInterceptor
拦截参数
into() - Method in class com.hjq.http.EasyConfig
 
IRequestApi - Interface in com.hjq.http.config
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/05/19 desc : 请求接口配置
IRequestCache - Interface in com.hjq.http.config
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2021/05/22 desc : 请求缓存配置
IRequestClient - Interface in com.hjq.http.config
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2021/03/02 desc : OkHttpClient 配置
IRequestHandler - Interface in com.hjq.http.config
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/11/25 desc : 请求处理器
IRequestHost - Interface in com.hjq.http.config
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/05/19 desc : 请求主机配置
IRequestInterceptor - Interface in com.hjq.http.config
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2020/08/05 desc : 请求参数拦截器
IRequestPath - Interface in com.hjq.http.config
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/05/19 desc : 请求路径配置
IRequestServer - Interface in com.hjq.http.config
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/05/19 desc : 请求服务配置
IRequestType - Interface in com.hjq.http.config
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2020/01/01 desc : 请求接口配置
isBeanType(Object) - Static method in class com.hjq.http.EasyUtils
判断对象是否为 Bean 类
isCanceled() - Method in class com.hjq.http.model.CallProxy
 
isDirectory() - Method in class com.hjq.http.model.FileContentResolver
 
isEmpty(Object) - Static method in class com.hjq.http.EasyUtils
判断对象或者集合是否为空
isEmpty() - Method in class com.hjq.http.model.HttpHeaders
 
isEmpty() - Method in class com.hjq.http.model.HttpParams
 
isExecuted() - Method in class com.hjq.http.model.CallProxy
 
isFile() - Method in class com.hjq.http.model.FileContentResolver
 
isFileList(List<?>) - Static method in class com.hjq.http.EasyUtils
判断一下这个集合装载的类型是不是 File
isHidden() - Method in class com.hjq.http.model.FileContentResolver
 
isLifecycleActive(LifecycleOwner) - Static method in class com.hjq.http.lifecycle.HttpLifecycleManager
判断宿主是否处于活动状态
isLogEnabled() - Method in class com.hjq.http.EasyConfig
 
isMultipart(List<Field>) - Static method in class com.hjq.http.EasyUtils
判断是否包含存在流参数
isMultipart() - Method in class com.hjq.http.model.HttpParams
 

J

json(String) - Method in interface com.hjq.http.config.ILogStrategy
打印 Json
json(String) - Method in class com.hjq.http.config.LogStrategy
 
json(String) - Static method in class com.hjq.http.EasyLog
打印 Json
JSON - Static variable in class com.hjq.http.model.ContentType
Json
json(Map<?, ?>) - Method in class com.hjq.http.request.BodyRequest
自定义 json 字符串
json(List<?>) - Method in class com.hjq.http.request.BodyRequest
 
json(String) - Method in class com.hjq.http.request.BodyRequest
 
JsonBody - Class in com.hjq.http.body
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/12/28 desc : Json 参数提交
JsonBody(Map<?, ?>) - Constructor for class com.hjq.http.body.JsonBody
 
JsonBody(List<?>) - Constructor for class com.hjq.http.body.JsonBody
 
JsonBody(JSONObject) - Constructor for class com.hjq.http.body.JsonBody
 
JsonBody(JSONArray) - Constructor for class com.hjq.http.body.JsonBody
 
JsonBody(String) - Constructor for class com.hjq.http.body.JsonBody
 

L

lastModified() - Method in class com.hjq.http.model.FileContentResolver
 
length() - Method in class com.hjq.http.model.FileContentResolver
 
LifecycleService - Class in com.hjq.http.lifecycle
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2021/03/08 desc : Service 生命周期管理基类
LifecycleService() - Constructor for class com.hjq.http.lifecycle.LifecycleService
 
list() - Method in class com.hjq.http.model.FileContentResolver
 
list(FilenameFilter) - Method in class com.hjq.http.model.FileContentResolver
 
listener(OnDownloadListener) - Method in class com.hjq.http.request.DownloadRequest
设置下载监听
listFiles() - Method in class com.hjq.http.model.FileContentResolver
 
listFiles(FileFilter) - Method in class com.hjq.http.model.FileContentResolver
 
listFiles(FilenameFilter) - Method in class com.hjq.http.model.FileContentResolver
 
listToJsonArray(List<?>) - Static method in class com.hjq.http.EasyUtils
将 List 集合转 JsonArray 对象
LogStrategy - Class in com.hjq.http.config
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2020/04/24 desc : 网络请求日志打印默认实现
LogStrategy() - Constructor for class com.hjq.http.config.LogStrategy
 

M

mapToJsonObject(Map<?, ?>) - Static method in class com.hjq.http.EasyUtils
将 Map 集合转成 JsonObject 对象
md5(String) - Method in class com.hjq.http.request.DownloadRequest
设置 MD5 值
MD5Exception - Exception in com.hjq.http.exception
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/11/16 desc : MD5 校验异常
MD5Exception(String, String) - Constructor for exception com.hjq.http.exception.MD5Exception
 
method(HttpMethod) - Method in class com.hjq.http.request.DownloadRequest
设置请求方式
mkdir() - Method in class com.hjq.http.model.FileContentResolver
 
mkdirs() - Method in class com.hjq.http.model.FileContentResolver
 

N

NetworkException - Exception in com.hjq.http.exception
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/06/25 desc : 网络连接异常
NetworkException(String) - Constructor for exception com.hjq.http.exception.NetworkException
 
NetworkException(String, Throwable) - Constructor for exception com.hjq.http.exception.NetworkException
 
NormalCallback - Class in com.hjq.http.callback
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/11/25 desc : 正常接口回调
NormalCallback(BaseRequest) - Constructor for class com.hjq.http.callback.NormalCallback
 
NullBodyException - Exception in com.hjq.http.exception
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/12/24 desc : 空实体异常
NullBodyException(String) - Constructor for exception com.hjq.http.exception.NullBodyException
 
NullBodyException(String, Throwable) - Constructor for exception com.hjq.http.exception.NullBodyException
 

O

onActivityCreated(Activity, Bundle) - Method in class com.hjq.http.lifecycle.ActivityLifecycle
Application.ActivityLifecycleCallbacks
onActivityDestroyed(Activity) - Method in class com.hjq.http.lifecycle.ActivityLifecycle
 
onActivityPaused(Activity) - Method in class com.hjq.http.lifecycle.ActivityLifecycle
 
onActivityResumed(Activity) - Method in class com.hjq.http.lifecycle.ActivityLifecycle
 
onActivitySaveInstanceState(Activity, Bundle) - Method in class com.hjq.http.lifecycle.ActivityLifecycle
 
onActivityStarted(Activity) - Method in class com.hjq.http.lifecycle.ActivityLifecycle
 
onActivityStopped(Activity) - Method in class com.hjq.http.lifecycle.ActivityLifecycle
 
onByte(File, long, long) - Method in interface com.hjq.http.listener.OnDownloadListener
下载字节改变
onByte(long, long) - Method in interface com.hjq.http.listener.OnUpdateListener
上传字节改变
onComplete(File) - Method in interface com.hjq.http.listener.OnDownloadListener
下载完成
onCreate() - Method in class com.hjq.http.lifecycle.LifecycleService
 
onDestroy() - Method in class com.hjq.http.lifecycle.LifecycleService
 
OnDownloadListener - Interface in com.hjq.http.listener
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/05/19 desc : 下载监听器
onEnd(Call) - Method in class com.hjq.http.listener.HttpCallback
 
onEnd(File) - Method in interface com.hjq.http.listener.OnDownloadListener
下载结束
onEnd(Call) - Method in interface com.hjq.http.listener.OnHttpListener
请求结束
onError(File, Exception) - Method in interface com.hjq.http.listener.OnDownloadListener
下载出错
onFail(Exception) - Method in class com.hjq.http.listener.HttpCallback
 
onFail(Exception) - Method in interface com.hjq.http.listener.OnHttpListener
请求出错
onFailure(Call, IOException) - Method in class com.hjq.http.callback.BaseCallback
 
onFailure(Exception) - Method in class com.hjq.http.callback.BaseCallback
请求失败
onFailure(Exception) - Method in class com.hjq.http.callback.DownloadCallback
 
onFailure(Exception) - Method in class com.hjq.http.callback.NormalCallback
 
OnHttpListener<T> - Interface in com.hjq.http.listener
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/05/19 desc : 请求回调监听器
onProgress(File, int) - Method in interface com.hjq.http.listener.OnDownloadListener
下载进度改变
onProgress(int) - Method in interface com.hjq.http.listener.OnUpdateListener
上传进度改变
onResponse(Call, Response) - Method in class com.hjq.http.callback.BaseCallback
 
onResponse(Response) - Method in class com.hjq.http.callback.BaseCallback
请求成功
onResponse(Response) - Method in class com.hjq.http.callback.DownloadCallback
 
onResponse(Response) - Method in class com.hjq.http.callback.NormalCallback
 
onStart(Call) - Method in class com.hjq.http.callback.BaseCallback
请求开始
onStart(Call) - Method in class com.hjq.http.callback.DownloadCallback
 
onStart(Call) - Method in class com.hjq.http.callback.NormalCallback
 
onStart(Call) - Method in class com.hjq.http.listener.HttpCallback
 
onStart(File) - Method in interface com.hjq.http.listener.OnDownloadListener
下载开始
onStart(Call) - Method in interface com.hjq.http.listener.OnHttpListener
请求开始
onStateChanged(LifecycleOwner, Lifecycle.Event) - Method in class com.hjq.http.lifecycle.ActivityLifecycle
LifecycleEventObserver
onStateChanged(LifecycleOwner, Lifecycle.Event) - Method in class com.hjq.http.lifecycle.HttpLifecycleManager
 
onSucceed(T, boolean) - Method in class com.hjq.http.listener.HttpCallback
 
onSucceed(T) - Method in class com.hjq.http.listener.HttpCallback
 
onSucceed(T, boolean) - Method in interface com.hjq.http.listener.OnHttpListener
请求成功
onSucceed(T) - Method in interface com.hjq.http.listener.OnHttpListener
请求成功
OnUpdateListener<T> - Interface in com.hjq.http.listener
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2020/08/15 desc : 带上传进度回调的监听器
openInputStream() - Method in class com.hjq.http.model.FileContentResolver
 
openInputStream() - Method in class com.hjq.http.model.FileWrapper
打开文件的输入流
openOutputStream() - Method in class com.hjq.http.model.FileContentResolver
 
openOutputStream() - Method in class com.hjq.http.model.FileWrapper
打开文件的输出流
options(LifecycleOwner) - Static method in class com.hjq.http.EasyHttp
Options 请求
OptionsRequest - Class in com.hjq.http.request
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2021/04/29 desc : Options 请求
OptionsRequest(LifecycleOwner) - Constructor for class com.hjq.http.request.OptionsRequest
 

P

patch(LifecycleOwner) - Static method in class com.hjq.http.EasyHttp
Patch 请求
PatchRequest - Class in com.hjq.http.request
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2020/10/07 desc : Patch 请求
PatchRequest(LifecycleOwner) - Constructor for class com.hjq.http.request.PatchRequest
 
post(LifecycleOwner) - Static method in class com.hjq.http.EasyHttp
Post 请求
post(Runnable) - Static method in class com.hjq.http.EasyUtils
在主线程中执行
postDelayed(Runnable, long) - Static method in class com.hjq.http.EasyUtils
延迟一段时间执行
PostRequest - Class in com.hjq.http.request
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/07/20 desc : 主体请求
PostRequest(LifecycleOwner) - Constructor for class com.hjq.http.request.PostRequest
 
print() - Method in interface com.hjq.http.config.ILogStrategy
打印分割线
print(String) - Method in interface com.hjq.http.config.ILogStrategy
打印日志
print(String, String) - Method in interface com.hjq.http.config.ILogStrategy
打印键值对
print(Throwable) - Method in interface com.hjq.http.config.ILogStrategy
打印异常
print(StackTraceElement[]) - Method in interface com.hjq.http.config.ILogStrategy
打印堆栈
print(String) - Method in class com.hjq.http.config.LogStrategy
 
print(String, String) - Method in class com.hjq.http.config.LogStrategy
 
print(Throwable) - Method in class com.hjq.http.config.LogStrategy
 
print(StackTraceElement[]) - Method in class com.hjq.http.config.LogStrategy
 
print() - Static method in class com.hjq.http.EasyLog
打印分割线
print(String) - Static method in class com.hjq.http.EasyLog
打印日志
print(String, String) - Static method in class com.hjq.http.EasyLog
打印键值对
print(Throwable) - Static method in class com.hjq.http.EasyLog
打印异常
print(StackTraceElement[]) - Static method in class com.hjq.http.EasyLog
打印堆栈
ProgressBody - Class in com.hjq.http.body
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2020/08/15 desc : RequestBody 包装类(用于获取上传进度)
ProgressBody(RequestBody, LifecycleOwner, OnUpdateListener<?>) - Constructor for class com.hjq.http.body.ProgressBody
 
put(LifecycleOwner) - Static method in class com.hjq.http.EasyHttp
Put 请求
put(String, String) - Method in class com.hjq.http.model.HttpHeaders
 
put(String, Object) - Method in class com.hjq.http.model.HttpParams
 
PutRequest - Class in com.hjq.http.request
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2020/10/07 desc : Put 请求
PutRequest(LifecycleOwner) - Constructor for class com.hjq.http.request.PutRequest
 

R

readCache(LifecycleOwner, IRequestApi, Type) - Method in interface com.hjq.http.config.IRequestHandler
读取缓存
remove(String) - Method in class com.hjq.http.model.HttpHeaders
 
remove(String) - Method in class com.hjq.http.model.HttpParams
 
removeHeader(String) - Method in class com.hjq.http.EasyConfig
 
removeParam(String) - Method in class com.hjq.http.EasyConfig
 
renameTo(File) - Method in class com.hjq.http.model.FileContentResolver
 
request() - Method in class com.hjq.http.model.CallProxy
 
request(OnHttpListener<?>) - Method in class com.hjq.http.request.BaseRequest
执行异步请求
request(OnHttpListener<?>) - Method in class com.hjq.http.request.BodyRequest
执行异步请求(执行传入上传进度监听器)
request(OnHttpListener<?>) - Method in class com.hjq.http.request.DownloadRequest
 
RequestApi - Class in com.hjq.http.config
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/05/19 desc : 请求接口简单配置类
RequestApi(String) - Constructor for class com.hjq.http.config.RequestApi
 
requestFail(LifecycleOwner, IRequestApi, Exception) - Method in interface com.hjq.http.config.IRequestHandler
请求失败
RequestServer - Class in com.hjq.http.config
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/05/19 desc : 服务器简单配置
RequestServer(String) - Constructor for class com.hjq.http.config.RequestServer
 
RequestServer(String, String) - Constructor for class com.hjq.http.config.RequestServer
 
requestStart(LifecycleOwner, IRequestApi, Request.Builder) - Method in interface com.hjq.http.config.IRequestHandler
请求开始
requestSucceed(LifecycleOwner, IRequestApi, Response, Type) - Method in interface com.hjq.http.config.IRequestHandler
请求成功时回调
ResponseClass<T> - Class in com.hjq.http.model
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2020/08/14 desc : 数据解析模型类
ResponseClass() - Constructor for class com.hjq.http.model.ResponseClass
 
ResponseException - Exception in com.hjq.http.exception
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/06/25 desc : 服务器响应异常
ResponseException(String, Response) - Constructor for exception com.hjq.http.exception.ResponseException
 
ResponseException(String, Throwable, Response) - Constructor for exception com.hjq.http.exception.ResponseException
 
ResultException - Exception in com.hjq.http.exception
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/06/25 desc : 返回结果异常
ResultException(String, Object) - Constructor for exception com.hjq.http.exception.ResultException
 
ResultException(String, Throwable, Object) - Constructor for exception com.hjq.http.exception.ResultException
 

S

server(Class<? extends IRequestServer>) - Method in class com.hjq.http.request.BaseRequest
 
server(String) - Method in class com.hjq.http.request.BaseRequest
 
server(IRequestServer) - Method in class com.hjq.http.request.BaseRequest
替换默认的服务器配器(推荐使用 api 的方式来替代 server,具体实现可见 api 方法源码)
ServerException - Exception in com.hjq.http.exception
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/12/01 desc : 服务器连接异常
ServerException(String) - Constructor for exception com.hjq.http.exception.ServerException
 
ServerException(String, Throwable) - Constructor for exception com.hjq.http.exception.ServerException
 
setCall(CallProxy) - Method in class com.hjq.http.callback.BaseCallback
 
setCall(Call) - Method in class com.hjq.http.model.CallProxy
 
setClient(OkHttpClient) - Method in class com.hjq.http.EasyConfig
 
setContentType(MediaType) - Method in class com.hjq.http.model.FileContentResolver
设置内容类型(用于 RequestBody#contentType() 方法)
setFile(FileWrapper) - Method in class com.hjq.http.callback.DownloadCallback
 
setFileName(String) - Method in class com.hjq.http.model.FileContentResolver
设置真实的文件名(用于 okhttp3.MultipartBody.Builder#addFormDataPart(String, String, RequestBody) 方法中的 fileName 属性)
setHandler(IRequestHandler) - Method in class com.hjq.http.EasyConfig
 
setHeaders(HashMap<String, String>) - Method in class com.hjq.http.EasyConfig
 
setInterceptor(IRequestInterceptor) - Method in class com.hjq.http.EasyConfig
 
setLastModified(long) - Method in class com.hjq.http.model.FileContentResolver
 
setListener(OnDownloadListener) - Method in class com.hjq.http.callback.DownloadCallback
 
setListener(OnHttpListener) - Method in class com.hjq.http.callback.NormalCallback
 
setLogEnabled(boolean) - Method in class com.hjq.http.EasyConfig
 
setLogStrategy(ILogStrategy) - Method in class com.hjq.http.EasyConfig
 
setLogTag(String) - Method in class com.hjq.http.EasyConfig
 
setMd5(String) - Method in class com.hjq.http.callback.DownloadCallback
 
setMultipart(boolean) - Method in class com.hjq.http.model.HttpParams
 
setParams(HashMap<String, Object>) - Method in class com.hjq.http.EasyConfig
 
setRetryCount(int) - Method in class com.hjq.http.EasyConfig
 
setRetryTime(long) - Method in class com.hjq.http.EasyConfig
 
setServer(String) - Method in class com.hjq.http.EasyConfig
 
setServer(IRequestServer) - Method in class com.hjq.http.EasyConfig
 
start() - Method in class com.hjq.http.callback.BaseCallback
 
start() - Method in class com.hjq.http.callback.NormalCallback
 
start() - Method in class com.hjq.http.request.DownloadRequest
开始下载
stop() - Method in class com.hjq.http.request.DownloadRequest
取消下载
STREAM - Static variable in class com.hjq.http.model.ContentType
字节流
StringBody - Class in com.hjq.http.body
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2020/10/26 desc : 文本参数提交
StringBody() - Constructor for class com.hjq.http.body.StringBody
 
StringBody(String) - Constructor for class com.hjq.http.body.StringBody
 

T

tag(Object) - Method in class com.hjq.http.request.BaseRequest
设置请求的标记
tag(String) - Method in class com.hjq.http.request.BaseRequest
 
TEXT - Static variable in class com.hjq.http.model.ContentType
纯文本
text(String) - Method in class com.hjq.http.request.BodyRequest
自定义文本字符串
timeout() - Method in class com.hjq.http.model.CallProxy
 
TimeoutException - Exception in com.hjq.http.exception
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/06/25 desc : 服务器超时异常
TimeoutException(String) - Constructor for exception com.hjq.http.exception.TimeoutException
 
TimeoutException(String, Throwable) - Constructor for exception com.hjq.http.exception.TimeoutException
 
TokenException - Exception in com.hjq.http.exception
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/05/19 desc : Token 失效异常
TokenException(String) - Constructor for exception com.hjq.http.exception.TokenException
 
TokenException(String, Throwable) - Constructor for exception com.hjq.http.exception.TokenException
 
toString() - Method in class com.hjq.http.body.JsonBody
 
toString() - Method in class com.hjq.http.body.StringBody
 
toString() - Method in class com.hjq.http.config.RequestApi
 
toString() - Method in class com.hjq.http.config.RequestServer
 
toString() - Method in enum com.hjq.http.model.HttpMethod
 
trace(LifecycleOwner) - Static method in class com.hjq.http.EasyHttp
Trace 请求
TraceRequest - Class in com.hjq.http.request
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2021/04/29 desc : Trace 请求
TraceRequest(LifecycleOwner) - Constructor for class com.hjq.http.request.TraceRequest
 

U

UnknownException - Exception in com.hjq.http.exception
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/12/01 desc : 未知异常
UnknownException(String) - Constructor for exception com.hjq.http.exception.UnknownException
 
UnknownException(String, Throwable) - Constructor for exception com.hjq.http.exception.UnknownException
 
UnSafeHostnameVerifier - Class in com.hjq.http.ssl
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2020/11/30 desc : 证书域名校验
UnSafeHostnameVerifier() - Constructor for class com.hjq.http.ssl.UnSafeHostnameVerifier
 
UnSafeTrustManager - Class in com.hjq.http.ssl
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2020/11/30 desc : 为了解决客户端不信任服务器数字证书的问题,网络上大部分的解决方案都是让客户端不对证书做任何检查,这是一种有很大安全漏洞的办法
UnSafeTrustManager() - Constructor for class com.hjq.http.ssl.UnSafeTrustManager
 
UpdateBody - Class in com.hjq.http.body
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2019/12/14 desc : 上传文件流
UpdateBody(File) - Constructor for class com.hjq.http.body.UpdateBody
 
UpdateBody(InputStream, String) - Constructor for class com.hjq.http.body.UpdateBody
 
UpdateBody(Source, MediaType, String, long) - Constructor for class com.hjq.http.body.UpdateBody
 
url(String) - Method in class com.hjq.http.request.DownloadRequest
设置下载地址
UrlRequest<T extends UrlRequest<?>> - Class in com.hjq.http.request
author : Android 轮子哥 github : https://github.com/getActivity/EasyHttp time : 2020/10/07 desc : 不带 RequestBody 的请求
UrlRequest(LifecycleOwner) - Constructor for class com.hjq.http.request.UrlRequest
 

V

valueOf(String) - Static method in enum com.hjq.http.model.BodyType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.hjq.http.model.CacheMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.hjq.http.model.HttpMethod
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.hjq.http.model.BodyType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.hjq.http.model.CacheMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.hjq.http.model.HttpMethod
Returns an array containing the constants of this enum type, in the order they are declared.
verify(String, SSLSession) - Method in class com.hjq.http.ssl.UnSafeHostnameVerifier
 

W

with(OkHttpClient) - Static method in class com.hjq.http.EasyConfig
 
writeCache(LifecycleOwner, IRequestApi, Response, Object) - Method in interface com.hjq.http.config.IRequestHandler
写入缓存
writeTo(BufferedSink) - Method in class com.hjq.http.body.JsonBody
 
writeTo(BufferedSink) - Method in class com.hjq.http.body.ProgressBody
 
writeTo(BufferedSink) - Method in class com.hjq.http.body.StringBody
 
writeTo(BufferedSink) - Method in class com.hjq.http.body.UpdateBody
 
A B C D E F G H I J L M N O P R S T U V W 
Skip navigation links