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

A

accessToken(boolean) - Method in class com.xuexiang.xhttp2.interceptor.BaseDynamicInterceptor
 
accessToken(boolean) - Method in class com.xuexiang.xhttp2.request.BaseRequest
是否需要验证token(默认false)
add(HttpUrl, Cookie) - Method in class com.xuexiang.xhttp2.cookie.PersistentCookieStore
 
add(Object, Disposable) - Method in class com.xuexiang.xhttp2.XHttpRequestPool
根据tagName管理订阅【注册订阅信息】
add(Disposable, Object) - Method in class com.xuexiang.xhttp2.XHttpRequestPool
根据tagName管理订阅【注册订阅信息】
addCallAdapterFactory(CallAdapter.Factory) - Method in class com.xuexiang.xhttp2.request.BaseRequest
设置CallAdapter.Factory,默认RxJavaCallAdapterFactory.create()
addCallAdapterFactory(CallAdapter.Factory) - Method in class com.xuexiang.xhttp2.XHttp
全局设置CallAdapter.Factory,默认RxJavaCallAdapterFactory.create()
addCommonHeaders(HttpHeaders) - Method in class com.xuexiang.xhttp2.XHttp
添加全局公共请求参数
addCommonParams(HttpParams) - Method in class com.xuexiang.xhttp2.XHttp
添加全局公共请求参数
addConverterFactory(Converter.Factory) - Method in class com.xuexiang.xhttp2.request.BaseRequest
设置Converter.Factory,默认GsonConverterFactory.create()
addConverterFactory(Converter.Factory) - Method in class com.xuexiang.xhttp2.XHttp
全局设置Converter.Factory,默认GsonConverterFactory.create()
addCookie(String, String) - Method in class com.xuexiang.xhttp2.request.BaseRequest
 
addCookie(Cookie) - Method in class com.xuexiang.xhttp2.request.BaseRequest
 
addCookies(List<Cookie>) - Method in class com.xuexiang.xhttp2.cookie.CookieManager
 
addCookies(List<Cookie>) - Method in class com.xuexiang.xhttp2.cookie.PersistentCookieStore
 
addCookies(List<Cookie>) - Method in class com.xuexiang.xhttp2.request.BaseRequest
 
addInterceptor(Interceptor) - Method in class com.xuexiang.xhttp2.request.BaseRequest
增加应用拦截器
addInterceptor(Interceptor) - Method in class com.xuexiang.xhttp2.XHttp
添加全局拦截器
addInterceptor(Interceptor) - Static method in class com.xuexiang.xhttp2.XHttpSDK
增加全局拦截器
addNetworkInterceptor(Interceptor) - Method in class com.xuexiang.xhttp2.request.BaseRequest
增加网络拦截器
addNetworkInterceptor(Interceptor) - Method in class com.xuexiang.xhttp2.XHttp
添加全局网络拦截器
addRequest(Object, Disposable) - Static method in class com.xuexiang.xhttp2.XHttpSDK
注册网络请求的订阅
addRequest(Disposable, Object) - Static method in class com.xuexiang.xhttp2.XHttpSDK
注册网络请求的订阅
addTypeParam(Class) - Method in class com.xuexiang.xhttp2.reflect.TypeBuilder
增加泛型类型
addTypeParam(Type) - Method in class com.xuexiang.xhttp2.reflect.TypeBuilder
增加泛型类型
addTypeParamExtends(Class...) - Method in class com.xuexiang.xhttp2.reflect.TypeBuilder
增加泛型extends类型
addTypeParamSuper(Class...) - Method in class com.xuexiang.xhttp2.reflect.TypeBuilder
增加泛型Super类型
apiCall(<any>) - Method in class com.xuexiang.xhttp2.request.CustomRequest
针对retrofit定义的接口,返回的是Observable>的情况
对ApiResult进行拆包,直接获取数据
apiCall(Observable, CallBack<T>) - Method in class com.xuexiang.xhttp2.request.CustomRequest
针对retrofit定义的接口,返回的是Observable>的情况
对ApiResult进行拆包,直接获取数据
ApiException - Exception in com.xuexiang.xhttp2.exception
统一处理了API异常错误
ApiException(String, int) - Constructor for exception com.xuexiang.xhttp2.exception.ApiException
 
ApiException(Throwable, int) - Constructor for exception com.xuexiang.xhttp2.exception.ApiException
 
ApiException.ERROR - Class in com.xuexiang.xhttp2.exception
约定异常
ApiExceptionHandler - Class in com.xuexiang.xhttp2.exception
错误信息处理
ApiExceptionHandler() - Constructor for class com.xuexiang.xhttp2.exception.ApiExceptionHandler
 
ApiResult<T> - Class in com.xuexiang.xhttp2.model
提供的默认的标注返回api
ApiResult() - Constructor for class com.xuexiang.xhttp2.model.ApiResult
 
ApiResultFunc<T> - Class in com.xuexiang.xhttp2.transform.func
定义了ApiResult结果转换Func
ApiResultFunc(Type, boolean) - Constructor for class com.xuexiang.xhttp2.transform.func.ApiResultFunc
 
ApiService - Interface in com.xuexiang.xhttp2.api
通用的的api接口
apply(ResponseBody) - Method in class com.xuexiang.xhttp2.transform.func.ApiResultFunc
 
apply(CacheResult<T>) - Method in class com.xuexiang.xhttp2.transform.func.CacheResultFunc
 
apply(Throwable) - Method in class com.xuexiang.xhttp2.transform.func.HttpResponseThrowableFunc
 
apply(ApiResult<T>) - Method in class com.xuexiang.xhttp2.transform.func.HttpResultFuc
 
apply(ResponseBody) - Method in class com.xuexiang.xhttp2.transform.func.OriginalStringFuc
 
apply(<any>) - Method in class com.xuexiang.xhttp2.transform.func.RetryExceptionFunc
 
apply(<any>) - Method in class com.xuexiang.xhttp2.transform.HandleErrTransformer
 
apply(<any>) - Method in class com.xuexiang.xhttp2.transform.HttpResultTransformer
 
apply(<any>) - Method in class com.xuexiang.xhttp2.transform.HttpSchedulersTransformer
 
appVersion(int) - Method in class com.xuexiang.xhttp2.cache.RxCache.Builder
不设置,默认为1

B

BaseBodyRequest<R extends BaseBodyRequest> - Class in com.xuexiang.xhttp2.request
body请求的基类
BaseBodyRequest(String) - Constructor for class com.xuexiang.xhttp2.request.BaseBodyRequest
构建请求
BaseBodyRequest.UploadType - Enum in com.xuexiang.xhttp2.request
 
BaseDiskCache - Class in com.xuexiang.xhttp2.cache.core
描述:磁盘缓存的基类
BaseDiskCache() - Constructor for class com.xuexiang.xhttp2.cache.core.BaseDiskCache
 
BaseDynamicInterceptor<R extends BaseDynamicInterceptor> - Class in com.xuexiang.xhttp2.interceptor
描述:动态拦截器
BaseDynamicInterceptor() - Constructor for class com.xuexiang.xhttp2.interceptor.BaseDynamicInterceptor
 
BaseExpiredInterceptor - Class in com.xuexiang.xhttp2.interceptor
判断响应是否失效的处理拦截器
继承后扩展各种失效响应处理:包括token过期、账号异地登录、时间戳过期、签名sign错误等
BaseExpiredInterceptor() - Constructor for class com.xuexiang.xhttp2.interceptor.BaseExpiredInterceptor
 
BaseInterceptor - Class in com.xuexiang.xhttp2.interceptor
基础拦截器
BaseInterceptor() - Constructor for class com.xuexiang.xhttp2.interceptor.BaseInterceptor
 
BaseRequest<R extends BaseRequest> - Class in com.xuexiang.xhttp2.request
所有请求的基类
BaseRequest(String) - Constructor for class com.xuexiang.xhttp2.request.BaseRequest
构建基础请求
BaseRequestInterceptor - Class in com.xuexiang.xhttp2.interceptor
基础请求拦截器
BaseRequestInterceptor() - Constructor for class com.xuexiang.xhttp2.interceptor.BaseRequestInterceptor
 
BaseResponseInterceptor - Class in com.xuexiang.xhttp2.interceptor
基础响应拦截器
BaseResponseInterceptor() - Constructor for class com.xuexiang.xhttp2.interceptor.BaseResponseInterceptor
 
BaseStrategy - Class in com.xuexiang.xhttp2.cache.stategy
实现缓存策略的基类
BaseStrategy() - Constructor for class com.xuexiang.xhttp2.cache.stategy.BaseStrategy
 
BaseSubscriber<T> - Class in com.xuexiang.xhttp2.subsciber
基础的订阅者
BaseSubscriber() - Constructor for class com.xuexiang.xhttp2.subsciber.BaseSubscriber
 
baseUrl(String) - Method in class com.xuexiang.xhttp2.request.BaseRequest
设置基础url路径
beginSubType(Class) - Method in class com.xuexiang.xhttp2.reflect.TypeBuilder
开始泛型类型
bodyToString(Request) - Method in class com.xuexiang.xhttp2.interceptor.HttpLoggingInterceptor
 
build() - Method in class com.xuexiang.xhttp2.cache.RxCache.Builder
 
build() - Method in class com.xuexiang.xhttp2.reflect.TypeBuilder
构建类型
build() - Method in class com.xuexiang.xhttp2.request.BaseRequest
构建请求【构建RxCache、OkHttpClient、Retrofit、mApiManager】
build() - Method in class com.xuexiang.xhttp2.request.CustomRequest
 
Builder() - Constructor for class com.xuexiang.xhttp2.cache.RxCache.Builder
 
Builder(RxCache) - Constructor for class com.xuexiang.xhttp2.cache.RxCache.Builder
 

C

CACHE_NEVER_EXPIRE - Static variable in class com.xuexiang.xhttp2.cache.core.LruDiskCache
永久不过期
CACHE_NEVER_EXPIRE - Static variable in class com.xuexiang.xhttp2.cache.RxCache
 
CacheAndRemoteDistinctStrategy - Class in com.xuexiang.xhttp2.cache.stategy
描述: 先使用缓存,不管是否存在,仍然请求网络,会先把缓存回调给你, 等网络请求回来发现数据是一样的就不会再返回,否则再返回 (这样做的目的是防止数据是一样的你也需要刷新界面)
CacheAndRemoteDistinctStrategy() - Constructor for class com.xuexiang.xhttp2.cache.stategy.CacheAndRemoteDistinctStrategy
 
CacheAndRemoteStrategy - Class in com.xuexiang.xhttp2.cache.stategy
描述:先显示缓存,再请求网络
CacheAndRemoteStrategy() - Constructor for class com.xuexiang.xhttp2.cache.stategy.CacheAndRemoteStrategy
 
cacheControlValue_Offline - Variable in class com.xuexiang.xhttp2.interceptor.CacheInterceptor
 
cacheControlValue_Online - Variable in class com.xuexiang.xhttp2.interceptor.CacheInterceptor
 
CacheCore - Class in com.xuexiang.xhttp2.cache.core
缓存核心管理类
CacheCore(ICache) - Constructor for class com.xuexiang.xhttp2.cache.core.CacheCore
 
cacheDiskConverter(IDiskConverter) - Method in class com.xuexiang.xhttp2.request.BaseRequest
设置缓存的转换器
CacheInterceptor - Class in com.xuexiang.xhttp2.interceptor
描述:设置缓存功能
CacheInterceptor(Context) - Constructor for class com.xuexiang.xhttp2.interceptor.CacheInterceptor
 
CacheInterceptor(Context, String) - Constructor for class com.xuexiang.xhttp2.interceptor.CacheInterceptor
 
CacheInterceptor(Context, String, String) - Constructor for class com.xuexiang.xhttp2.interceptor.CacheInterceptor
 
CacheInterceptorOffline - Class in com.xuexiang.xhttp2.interceptor
描述:支持离线缓存,使用OKHttp自带的缓存功能
CacheInterceptorOffline(Context) - Constructor for class com.xuexiang.xhttp2.interceptor.CacheInterceptorOffline
 
CacheInterceptorOffline(Context, String) - Constructor for class com.xuexiang.xhttp2.interceptor.CacheInterceptorOffline
 
CacheInterceptorOffline(Context, String, String) - Constructor for class com.xuexiang.xhttp2.interceptor.CacheInterceptorOffline
 
cacheKey(String) - Method in class com.xuexiang.xhttp2.cache.RxCache.Builder
 
cacheKey(String) - Method in class com.xuexiang.xhttp2.request.BaseRequest
设置缓存的key
CacheMode - Enum in com.xuexiang.xhttp2.cache.model
网络请求策略
cacheMode(CacheMode) - Method in class com.xuexiang.xhttp2.request.BaseRequest
设置缓存的模式(默认无缓存)
CacheResult<T> - Class in com.xuexiang.xhttp2.cache.model
缓存对象
CacheResult() - Constructor for class com.xuexiang.xhttp2.cache.model.CacheResult
 
CacheResult(boolean) - Constructor for class com.xuexiang.xhttp2.cache.model.CacheResult
 
CacheResult(boolean, T) - Constructor for class com.xuexiang.xhttp2.cache.model.CacheResult
 
CacheResultFunc<T> - Class in com.xuexiang.xhttp2.transform.func
缓存结果转换
CacheResultFunc() - Constructor for class com.xuexiang.xhttp2.transform.func.CacheResultFunc
 
cacheTime(long) - Method in class com.xuexiang.xhttp2.cache.RxCache.Builder
 
cacheTime(long) - Method in class com.xuexiang.xhttp2.request.BaseRequest
设置缓存保存的时间(缓存过期时间,默认永久缓存)
call(<any>) - Method in class com.xuexiang.xhttp2.request.CustomRequest
针对retrofit定义的接口,返回的是Observable的情况
不对ApiResult进行拆包,返回服务端响应的ApiResult
call(<any>, CallBack<T>) - Method in class com.xuexiang.xhttp2.request.CustomRequest
针对retrofit定义的接口,返回的是Observable的情况
不对ApiResult进行拆包,返回服务端响应的ApiResult
call(Observable, <any>) - Method in class com.xuexiang.xhttp2.request.CustomRequest
 
call(<any>, CallBackProxy<? extends ApiResult<T>, T>) - Method in class com.xuexiang.xhttp2.request.CustomRequest
 
CallBack<T> - Class in com.xuexiang.xhttp2.callback
网络请求回调
CallBack() - Constructor for class com.xuexiang.xhttp2.callback.CallBack
 
CallBackProxy<T extends ApiResult<R>,R> - Class in com.xuexiang.xhttp2.callback
描述:提供回调代理
CallBackProxy(CallBack<R>) - Constructor for class com.xuexiang.xhttp2.callback.CallBackProxy
 
CallBackSubscriber<T> - Class in com.xuexiang.xhttp2.subsciber
带有callBack的回调【如果作用是不需要用户订阅,只要实现callback回调】
CallBackSubscriber(CallBack<T>) - Constructor for class com.xuexiang.xhttp2.subsciber.CallBackSubscriber
 
CallClazzProxy<T extends ApiResult<R>,R> - Class in com.xuexiang.xhttp2.callback
描述:提供Clazz回调代理
CallClazzProxy(Type) - Constructor for class com.xuexiang.xhttp2.callback.CallClazzProxy
 
cancelAll() - Static method in class com.xuexiang.xhttp2.XHttpSDK
取消所有的网络请求订阅
cancelRequest(Object) - Static method in class com.xuexiang.xhttp2.XHttpSDK
取消注册网络请求的订阅
CAST_ERROR - Static variable in class com.xuexiang.xhttp2.exception.ApiException.ERROR
类转换错误
certificates(InputStream...) - Method in class com.xuexiang.xhttp2.request.BaseRequest
https的全局自签名证书
certificates(InputStream, String, InputStream...) - Method in class com.xuexiang.xhttp2.request.BaseRequest
https双向认证证书
checkNotNull(T, String) - Static method in class com.xuexiang.xhttp2.utils.Utils
检查是否为null
clear() - Method in class com.xuexiang.xhttp2.cache.core.BaseDiskCache
清空缓存
clear() - Method in class com.xuexiang.xhttp2.cache.core.CacheCore
清空缓存
clear() - Method in interface com.xuexiang.xhttp2.cache.core.ICache
清空缓存
clear() - Method in class com.xuexiang.xhttp2.cache.core.LruMemoryCache
清空缓存
clear() - Method in class com.xuexiang.xhttp2.cache.RxCache
清空缓存
clear() - Method in class com.xuexiang.xhttp2.model.HttpHeaders
 
clear() - Method in class com.xuexiang.xhttp2.model.HttpParams
 
clearCache() - Static method in class com.xuexiang.xhttp2.XHttp
清空缓存
closeIO(Closeable...) - Static method in class com.xuexiang.xhttp2.utils.Utils
关闭 IO
CODE - Static variable in class com.xuexiang.xhttp2.model.ApiResult
 
com.xuexiang.xhttp2 - package com.xuexiang.xhttp2
 
com.xuexiang.xhttp2.annotation - package com.xuexiang.xhttp2.annotation
 
com.xuexiang.xhttp2.api - package com.xuexiang.xhttp2.api
 
com.xuexiang.xhttp2.cache - package com.xuexiang.xhttp2.cache
 
com.xuexiang.xhttp2.cache.converter - package com.xuexiang.xhttp2.cache.converter
 
com.xuexiang.xhttp2.cache.core - package com.xuexiang.xhttp2.cache.core
 
com.xuexiang.xhttp2.cache.model - package com.xuexiang.xhttp2.cache.model
 
com.xuexiang.xhttp2.cache.stategy - package com.xuexiang.xhttp2.cache.stategy
 
com.xuexiang.xhttp2.callback - package com.xuexiang.xhttp2.callback
 
com.xuexiang.xhttp2.callback.impl - package com.xuexiang.xhttp2.callback.impl
 
com.xuexiang.xhttp2.cookie - package com.xuexiang.xhttp2.cookie
 
com.xuexiang.xhttp2.exception - package com.xuexiang.xhttp2.exception
 
com.xuexiang.xhttp2.https - package com.xuexiang.xhttp2.https
 
com.xuexiang.xhttp2.interceptor - package com.xuexiang.xhttp2.interceptor
 
com.xuexiang.xhttp2.logs - package com.xuexiang.xhttp2.logs
 
com.xuexiang.xhttp2.model - package com.xuexiang.xhttp2.model
 
com.xuexiang.xhttp2.reflect - package com.xuexiang.xhttp2.reflect
 
com.xuexiang.xhttp2.reflect.impl - package com.xuexiang.xhttp2.reflect.impl
 
com.xuexiang.xhttp2.request - package com.xuexiang.xhttp2.request
 
com.xuexiang.xhttp2.request.body - package com.xuexiang.xhttp2.request.body
 
com.xuexiang.xhttp2.subsciber - package com.xuexiang.xhttp2.subsciber
 
com.xuexiang.xhttp2.subsciber.impl - package com.xuexiang.xhttp2.subsciber.impl
 
com.xuexiang.xhttp2.transform - package com.xuexiang.xhttp2.transform
 
com.xuexiang.xhttp2.transform.func - package com.xuexiang.xhttp2.transform.func
 
com.xuexiang.xhttp2.utils - package com.xuexiang.xhttp2.utils
 
connectTimeout(long) - Method in class com.xuexiang.xhttp2.request.BaseRequest
设置服务器连接的超时时间
containsKey(String) - Method in class com.xuexiang.xhttp2.cache.core.BaseDiskCache
是否包含 加final 是让子类不能被重写,只能使用doContainsKey
这里加了锁处理,操作安全。
containsKey(String) - Method in class com.xuexiang.xhttp2.cache.core.CacheCore
是否包含
containsKey(String) - Method in interface com.xuexiang.xhttp2.cache.core.ICache
是否包含
containsKey(String) - Method in class com.xuexiang.xhttp2.cache.core.LruMemoryCache
是否包含
containsKey(String) - Method in class com.xuexiang.xhttp2.cache.RxCache
是否包含
contentLength() - Method in class com.xuexiang.xhttp2.request.body.UploadProgressRequestBody
重写调用实际的响应体的contentLength
contentType - Variable in class com.xuexiang.xhttp2.model.HttpParams.FileWrapper
 
contentType() - Method in class com.xuexiang.xhttp2.request.body.UploadProgressRequestBody
 
context - Variable in class com.xuexiang.xhttp2.interceptor.CacheInterceptor
 
CookieManager - Class in com.xuexiang.xhttp2.cookie
描述:cookie管理器
countingSink - Variable in class com.xuexiang.xhttp2.request.body.UploadProgressRequestBody
 
CountingSink(Sink) - Constructor for class com.xuexiang.xhttp2.request.body.UploadProgressRequestBody.CountingSink
 
create(Class<T>) - Method in class com.xuexiang.xhttp2.request.CustomRequest
创建api服务 可以支持自定义的api,默认使用BaseApiService,上层不用关心
create(MediaType, InputStream) - Static method in class com.xuexiang.xhttp2.utils.RequestBodyUtils
 
create(Class<T>) - Method in class com.xuexiang.xhttp2.XHttpProxy
 
createUrlFromParams(String, Map<String, Object>) - Static method in class com.xuexiang.xhttp2.utils.HttpUtils
将参数拼接到url中
custom() - Static method in class com.xuexiang.xhttp2.XHttp
 
custom(Class<T>) - Static method in class com.xuexiang.xhttp2.XHttp
 
CustomRequest - Class in com.xuexiang.xhttp2.request
描述:自定义请求,例如你有自己的ApiService
CustomRequest() - Constructor for class com.xuexiang.xhttp2.request.CustomRequest
 

D

d(String) - Static method in class com.xuexiang.xhttp2.logs.HttpLog
打印调试信息
data - Variable in class com.xuexiang.xhttp2.cache.model.CacheResult
 
DATA - Static variable in class com.xuexiang.xhttp2.model.ApiResult
 
debug(boolean) - Static method in class com.xuexiang.xhttp2.logs.HttpLog
设置是否打开调试
debug(String) - Static method in class com.xuexiang.xhttp2.logs.HttpLog
设置调试模式
debug(HttpLoggingInterceptor) - Method in class com.xuexiang.xhttp2.XHttp
设置日志的打印模式
debug(boolean) - Method in class com.xuexiang.xhttp2.XHttp
设置网络请求的调试模式
debug(String) - Method in class com.xuexiang.xhttp2.XHttp
设置网络请求的调试模式
debug() - Static method in class com.xuexiang.xhttp2.XHttpSDK
设置debug模式
debug(String) - Static method in class com.xuexiang.xhttp2.XHttpSDK
设置debug模式
debug(HttpLoggingInterceptor) - Static method in class com.xuexiang.xhttp2.XHttpSDK
设置debug模式
DEFAULT_CACHE_NEVER_EXPIRE - Static variable in class com.xuexiang.xhttp2.XHttp
 
DEFAULT_LOG_TAG - Static variable in class com.xuexiang.xhttp2.logs.HttpLog
默认tag
DEFAULT_RETRY_COUNT - Static variable in class com.xuexiang.xhttp2.XHttp
 
DEFAULT_RETRY_DELAY - Static variable in class com.xuexiang.xhttp2.XHttp
 
DEFAULT_RETRY_INCREASE_DELAY - Static variable in class com.xuexiang.xhttp2.XHttp
 
DEFAULT_TIMEOUT_MILLISECONDS - Static variable in class com.xuexiang.xhttp2.XHttp
 
DefaultHostnameVerifier - Class in com.xuexiang.xhttp2.https
此类是用于主机名验证的基接口。 在握手期间,如果 URL 的主机名和服务器的标识主机名不匹配, 则验证机制可以回调此接口的实现程序来确定是否应该允许此连接。策略可以是基于证书的或依赖于其他验证方案。 当验证 URL 主机名使用的默认规则失败时使用这些回调。如果主机名是可接受的,则返回 true
DefaultHostnameVerifier() - Constructor for class com.xuexiang.xhttp2.https.DefaultHostnameVerifier
 
delegate - Variable in class com.xuexiang.xhttp2.request.body.UploadProgressRequestBody
 
DELETE - Static variable in annotation type com.xuexiang.xhttp2.annotation.NetMethod
 
delete(String, Map<String, Object>) - Method in interface com.xuexiang.xhttp2.api.ApiService
 
delete(String) - Static method in class com.xuexiang.xhttp2.XHttp
 
deleteBody(String, Object) - Method in interface com.xuexiang.xhttp2.api.ApiService
 
deleteBody(String, RequestBody) - Method in interface com.xuexiang.xhttp2.api.ApiService
 
deleteJson(String, RequestBody) - Method in interface com.xuexiang.xhttp2.api.ApiService
 
DeleteRequest - Class in com.xuexiang.xhttp2.request
描述:删除请求
DeleteRequest(String) - Constructor for class com.xuexiang.xhttp2.request.DeleteRequest
 
diskConverter(IDiskConverter) - Method in class com.xuexiang.xhttp2.cache.RxCache.Builder
 
diskDir(File) - Method in class com.xuexiang.xhttp2.cache.RxCache.Builder
默认为缓存路径
diskMax(long) - Method in class com.xuexiang.xhttp2.cache.RxCache.Builder
不设置, 默为认50MB
dismissLoading() - Method in interface com.xuexiang.xhttp2.subsciber.impl.IProgressLoader
隐藏加载界面
dismissLoading() - Method in class com.xuexiang.xhttp2.subsciber.ProgressDialogLoader
 
dispose(Disposable) - Static method in class com.xuexiang.xhttp2.XHttpRequestPool
取消订阅
doClear() - Method in class com.xuexiang.xhttp2.cache.core.BaseDiskCache
清空缓存
doClear() - Method in class com.xuexiang.xhttp2.cache.core.LruDiskCache
 
doContainsKey(String) - Method in class com.xuexiang.xhttp2.cache.core.BaseDiskCache
是否包含 采用protected修饰符 被子类修改
doContainsKey(String) - Method in class com.xuexiang.xhttp2.cache.core.LruDiskCache
 
doLoad(Type, String) - Method in class com.xuexiang.xhttp2.cache.core.BaseDiskCache
读取缓存
doLoad(Type, String) - Method in class com.xuexiang.xhttp2.cache.core.LruDiskCache
 
doRemove(String) - Method in class com.xuexiang.xhttp2.cache.core.BaseDiskCache
删除缓存
doRemove(String) - Method in class com.xuexiang.xhttp2.cache.core.LruDiskCache
 
doSave(String, T) - Method in class com.xuexiang.xhttp2.cache.core.BaseDiskCache
保存
doSave(String, T) - Method in class com.xuexiang.xhttp2.cache.core.LruDiskCache
 
downLoad(String) - Static method in class com.xuexiang.xhttp2.XHttp
 
DOWNLOAD_ERROR - Static variable in class com.xuexiang.xhttp2.exception.ApiException.ERROR
下载错误
downloadFile(String) - Method in interface com.xuexiang.xhttp2.api.ApiService
 
DownloadProgressCallBack<T> - Class in com.xuexiang.xhttp2.callback
下载进度回调(主线程,可以直接操作UI)
DownloadProgressCallBack() - Constructor for class com.xuexiang.xhttp2.callback.DownloadProgressCallBack
 
DownloadRequest - Class in com.xuexiang.xhttp2.request
描述:下载请求
DownloadRequest(String) - Constructor for class com.xuexiang.xhttp2.request.DownloadRequest
 
DownloadSubscriber<ResponseBody extends okhttp3.ResponseBody> - Class in com.xuexiang.xhttp2.subsciber
下载的订阅者
DownloadSubscriber(String, String, CallBack) - Constructor for class com.xuexiang.xhttp2.subsciber.DownloadSubscriber
 

E

e(String) - Static method in class com.xuexiang.xhttp2.logs.HttpLog
打印出错信息
e(Throwable) - Static method in class com.xuexiang.xhttp2.logs.HttpLog
打印出错堆栈信息
e(String, Throwable) - Static method in class com.xuexiang.xhttp2.logs.HttpLog
打印出错信息
encodeCookie(SerializableOkHttpCookies) - Method in class com.xuexiang.xhttp2.cookie.PersistentCookieStore
cookies to string
endSubType() - Method in class com.xuexiang.xhttp2.reflect.TypeBuilder
结束泛型类型
equals(Object) - Method in class com.xuexiang.xhttp2.reflect.impl.ParameterizedTypeImpl
 
equals(Object) - Method in class com.xuexiang.xhttp2.reflect.impl.WildcardTypeImpl
 
ERROR() - Constructor for class com.xuexiang.xhttp2.exception.ApiException.ERROR
 
execute(RxCache, String, long, <any>, Type) - Method in class com.xuexiang.xhttp2.cache.stategy.CacheAndRemoteDistinctStrategy
 
execute(RxCache, String, long, <any>, Type) - Method in class com.xuexiang.xhttp2.cache.stategy.CacheAndRemoteStrategy
 
execute(RxCache, String, long, <any>, Type) - Method in class com.xuexiang.xhttp2.cache.stategy.FirstCacheStategy
 
execute(RxCache, String, long, <any>, Type) - Method in class com.xuexiang.xhttp2.cache.stategy.FirstRemoteStrategy
 
execute(RxCache, String, long, <any>, Type) - Method in interface com.xuexiang.xhttp2.cache.stategy.IStrategy
执行缓存
execute(RxCache, String, long, <any>, Type) - Method in class com.xuexiang.xhttp2.cache.stategy.NoStrategy
 
execute(RxCache, String, long, <any>, Type) - Method in class com.xuexiang.xhttp2.cache.stategy.OnlyCacheStrategy
 
execute(RxCache, String, long, <any>, Type) - Method in class com.xuexiang.xhttp2.cache.stategy.OnlyRemoteStrategy
 
execute(Class<T>) - Method in class com.xuexiang.xhttp2.request.BaseRequest
 
execute(Type) - Method in class com.xuexiang.xhttp2.request.BaseRequest
 
execute(CallBack<T>) - Method in class com.xuexiang.xhttp2.request.BaseRequest
 
execute(CallBackProxy<? extends ApiResult<T>, T>) - Method in class com.xuexiang.xhttp2.request.BaseRequest
执行请求,并订阅请求响应结果(CallBack代理)
execute(CallClazzProxy<? extends ApiResult<T>, T>) - Method in class com.xuexiang.xhttp2.request.BaseRequest
执行请求,获取请求响应结果【Observable
execute(CallBack<T>) - Method in class com.xuexiang.xhttp2.request.DownloadRequest
 
execute(String, boolean, String, boolean, boolean, Class<T>) - Static method in class com.xuexiang.xhttp2.XHttpSDK
执行post请求,返回对象
execute(String, boolean, String, boolean, boolean, Type) - Static method in class com.xuexiang.xhttp2.XHttpSDK
执行post请求,返回对象
execute(PostRequest, Type) - Static method in class com.xuexiang.xhttp2.XHttpSDK
执行post请求,返回对象
execute(PostRequest, Class<T>) - Static method in class com.xuexiang.xhttp2.XHttpSDK
执行post请求,返回对象
execute(PostRequest, Class<T>, BaseSubscriber<T>) - Static method in class com.xuexiang.xhttp2.XHttpSDK
执行post请求,返回订阅信息
execute(XHttpRequest, boolean, boolean) - Static method in class com.xuexiang.xhttp2.XHttpSDK
【推荐使用】 执行post请求,返回对象(使用实体参数名作为请求Key)
execute(PostRequest, XHttpRequest) - Static method in class com.xuexiang.xhttp2.XHttpSDK
执行post请求,返回对象(使用实体参数名作为请求Key)
execute(PostRequest, XHttpRequest, BaseSubscriber<T>, Object) - Static method in class com.xuexiang.xhttp2.XHttpSDK
执行post请求,返回订阅信息
execute(PostRequest, Type, BaseSubscriber<T>, Object) - Static method in class com.xuexiang.xhttp2.XHttpSDK
执行post请求,返回订阅信息
executeInThread(XHttpRequest) - Static method in class com.xuexiang.xhttp2.XHttpSDK
执行post请求,返回对象(子线程->子线程)
executeInThread(XHttpRequest, BaseSubscriber<T>) - Static method in class com.xuexiang.xhttp2.XHttpSDK
执行post请求,返回订阅信息(子线程->子线程)
executeInThread(XHttpRequest, BaseSubscriber<T>, Object) - Static method in class com.xuexiang.xhttp2.XHttpSDK
执行post请求,返回订阅信息(子线程->子线程)
executePost(PostRequest, Type) - Static method in class com.xuexiang.xhttp2.XHttpSDK
执行post请求,返回对象(使用实体参数名作为请求Key)
executeToIO(XHttpRequest) - Static method in class com.xuexiang.xhttp2.XHttpSDK
执行post请求,返回对象(主线程->子线程)
executeToIO(XHttpRequest, BaseSubscriber<T>) - Static method in class com.xuexiang.xhttp2.XHttpSDK
执行post请求,返回订阅信息(主线程->子线程)
executeToIO(XHttpRequest, BaseSubscriber<T>, Object) - Static method in class com.xuexiang.xhttp2.XHttpSDK
执行post请求,返回订阅信息(主线程->子线程)
executeToMain(XHttpRequest) - Static method in class com.xuexiang.xhttp2.XHttpSDK
执行post请求,返回对象(主线程->主线程)
executeToMain(XHttpRequest, BaseSubscriber<T>) - Static method in class com.xuexiang.xhttp2.XHttpSDK
执行post请求并订阅,返回订阅信息(主线程->主线程)
executeToMain(XHttpRequest, BaseSubscriber<T>, Object) - Static method in class com.xuexiang.xhttp2.XHttpSDK
执行post请求并订阅,返回订阅信息(主线程->主线程)
ExpiredInfo - Class in com.xuexiang.xhttp2.model
请求失效信息
ExpiredInfo(int) - Constructor for class com.xuexiang.xhttp2.model.ExpiredInfo
 

F

file - Variable in class com.xuexiang.xhttp2.model.HttpParams.FileWrapper
 
fileName - Variable in class com.xuexiang.xhttp2.model.HttpParams.FileWrapper
 
fileParamsMap - Variable in class com.xuexiang.xhttp2.model.HttpParams
文件的键值对参数
fileSize - Variable in class com.xuexiang.xhttp2.model.HttpParams.FileWrapper
 
FileWrapper(T, String, MediaType, IProgressResponseCallBack) - Constructor for class com.xuexiang.xhttp2.model.HttpParams.FileWrapper
 
findNeedClass(Class<T>) - Static method in class com.xuexiang.xhttp2.utils.TypeUtils
普通类反射获取泛型方式,获取需要实际解析的类型
findNeedType(Class<R>) - Static method in class com.xuexiang.xhttp2.utils.TypeUtils
find the type by interfaces
findRawType(Class<T>) - Static method in class com.xuexiang.xhttp2.utils.TypeUtils
普通类反射获取泛型方式,获取最顶层的类型
FirstCacheStategy - Class in com.xuexiang.xhttp2.cache.stategy
描述:先显示缓存,缓存不存在,再请求网络
FirstCacheStategy() - Constructor for class com.xuexiang.xhttp2.cache.stategy.FirstCacheStategy
 
FirstRemoteStrategy - Class in com.xuexiang.xhttp2.cache.stategy
描述:先请求网络,网络请求失败,再加载缓存
FirstRemoteStrategy() - Constructor for class com.xuexiang.xhttp2.cache.stategy.FirstRemoteStrategy
 
FORM_BODY - Static variable in annotation type com.xuexiang.xhttp2.annotation.NetMethod
表单(URL?appId=XXX)
FORMAT_HTTP_DATA - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 

G

generateRequest() - Method in class com.xuexiang.xhttp2.request.BaseBodyRequest
 
generateRequest() - Method in class com.xuexiang.xhttp2.request.BaseRequest
进行网络请求
generateRequest() - Method in class com.xuexiang.xhttp2.request.CustomRequest
 
generateRequest() - Method in class com.xuexiang.xhttp2.request.DeleteRequest
 
generateRequest() - Method in class com.xuexiang.xhttp2.request.DownloadRequest
 
generateRequest() - Method in class com.xuexiang.xhttp2.request.GetRequest
 
generateRequest() - Method in class com.xuexiang.xhttp2.request.PutRequest
 
GET - Static variable in annotation type com.xuexiang.xhttp2.annotation.NetMethod
 
get(String, Map<String, Object>) - Method in interface com.xuexiang.xhttp2.api.ApiService
 
get(HttpUrl) - Method in class com.xuexiang.xhttp2.cookie.PersistentCookieStore
 
get(String) - Method in class com.xuexiang.xhttp2.model.HttpHeaders
 
get(String) - Static method in class com.xuexiang.xhttp2.XHttp
 
get() - Static method in class com.xuexiang.xhttp2.XHttpRequestPool
 
getAcceptLanguage() - Static method in class com.xuexiang.xhttp2.model.HttpHeaders
Accept-Language: zh-CN,zh;q=0.8
getActualTypeArguments() - Method in class com.xuexiang.xhttp2.reflect.impl.ParameterizedTypeImpl
 
getAllTypes(Class<T>) - Static method in class com.xuexiang.xhttp2.utils.TypeUtils
获取类的所有类型[包括泛型类型] 例如 Map, Map> -> [Map, List, String, Map, String, Object]
getAnnotationParamString(XHttpRequest) - Static method in class com.xuexiang.xhttp2.utils.HttpUtils
获取注解设置请求key的请求Json
getApiResultType(Type) - Static method in class com.xuexiang.xhttp2.utils.TypeUtils
为请求的返回类型加上ApiResult包装类
getAppVersion() - Method in class com.xuexiang.xhttp2.cache.RxCache
 
getBaseUrl() - Method in class com.xuexiang.xhttp2.model.XHttpRequest
 
getBaseUrl() - Static method in class com.xuexiang.xhttp2.XHttp
获取全局BaseUrl
getBodyString() - Method in class com.xuexiang.xhttp2.model.ExpiredInfo
 
getCacheControl(String, String) - Static method in class com.xuexiang.xhttp2.model.HttpHeaders
 
getCacheCore() - Method in class com.xuexiang.xhttp2.cache.RxCache
 
getCacheDirectory() - Static method in class com.xuexiang.xhttp2.XHttp
获取缓存的路径
getCacheKey() - Method in class com.xuexiang.xhttp2.cache.RxCache
 
getCacheMaxSize() - Static method in class com.xuexiang.xhttp2.XHttp
获取全局的缓存大小
getCacheMode() - Method in class com.xuexiang.xhttp2.model.XHttpRequest
 
getCacheMode() - Static method in class com.xuexiang.xhttp2.XHttp
获取全局的缓存模式
getCacheTime() - Method in class com.xuexiang.xhttp2.cache.RxCache
 
getCacheTime() - Static method in class com.xuexiang.xhttp2.XHttp
获取全局的缓存过期时间
getCallBack() - Method in class com.xuexiang.xhttp2.callback.CallBackProxy
 
getCallType() - Method in class com.xuexiang.xhttp2.callback.CallClazzProxy
 
getClass(Type, int) - Static method in class com.xuexiang.xhttp2.utils.TypeUtils
 
getClassName() - Method in enum com.xuexiang.xhttp2.cache.model.CacheMode
 
getCode() - Method in exception com.xuexiang.xhttp2.exception.ApiException
 
getCode() - Method in class com.xuexiang.xhttp2.model.ApiResult
 
getCode() - Method in class com.xuexiang.xhttp2.model.ExpiredInfo
 
getCommonHeaders() - Static method in class com.xuexiang.xhttp2.XHttp
获取全局公共请求头
getCommonParams() - Static method in class com.xuexiang.xhttp2.XHttp
获取全局公共请求参数
getContentLength() - Method in class com.xuexiang.xhttp2.callback.UIProgressResponseCallBack.ProgressModel
 
getContext() - Method in class com.xuexiang.xhttp2.cache.RxCache
 
getContext() - Static method in class com.xuexiang.xhttp2.XHttp
获取全局上下文
getCookieJar() - Static method in class com.xuexiang.xhttp2.XHttp
获取全局的cookie实例
getCookies() - Method in class com.xuexiang.xhttp2.cookie.PersistentCookieStore
 
getCookies() - Method in class com.xuexiang.xhttp2.cookie.SerializableOkHttpCookies
 
getCookieStore() - Method in class com.xuexiang.xhttp2.cookie.CookieManager
 
getCurrentBytes() - Method in class com.xuexiang.xhttp2.callback.UIProgressResponseCallBack.ProgressModel
 
getData() - Method in class com.xuexiang.xhttp2.cache.model.CacheResult
 
getData() - Method in class com.xuexiang.xhttp2.model.ApiResult
获取请求响应的数据,自定义api的时候需要重写【很关键】
getDate(String) - Static method in class com.xuexiang.xhttp2.model.HttpHeaders
 
getDate(long) - Static method in class com.xuexiang.xhttp2.model.HttpHeaders
 
getDetailMessage() - Method in exception com.xuexiang.xhttp2.exception.ApiException
获取错误的详细信息
getDiskCacheDir(Context, String) - Static method in class com.xuexiang.xhttp2.utils.Utils
应用程序缓存原理: 1.当SD卡存在或者SD卡不可被移除的时候,就调用getExternalCacheDir()方法来获取缓存路径,否则就调用getCacheDir()方法来获取缓存路径
2.前者是/sdcard/Android/data//cache 这个路径
3.后者获取到的是 /data/data//cache 这个路径
getDiskConverter() - Method in class com.xuexiang.xhttp2.cache.RxCache
 
getDiskDir() - Method in class com.xuexiang.xhttp2.cache.RxCache
 
getDiskFilesDir(String) - Static method in class com.xuexiang.xhttp2.utils.Utils
获取磁盘的自定义文件目录
getDiskMaxSize() - Method in class com.xuexiang.xhttp2.cache.RxCache
 
getDisplayMessage() - Method in exception com.xuexiang.xhttp2.exception.ApiException
获取展示的错误信息
getErrCode() - Method in exception com.xuexiang.xhttp2.exception.ServerException
 
getErrorResponse(Response, int, String) - Static method in class com.xuexiang.xhttp2.utils.HttpUtils
获得错误的返回
getExpiration(String) - Static method in class com.xuexiang.xhttp2.model.HttpHeaders
 
getExpiredType() - Method in class com.xuexiang.xhttp2.model.ExpiredInfo
 
getHttpCache() - Static method in class com.xuexiang.xhttp2.XHttp
获取OkHttp的缓存
getHttpRequestParams(Class<? extends XHttpRequest>) - Static method in class com.xuexiang.xhttp2.model.XHttpRequest
获取网络请求配置参数
getHttpUrl() - Method in class com.xuexiang.xhttp2.interceptor.BaseDynamicInterceptor
 
getInstance(Context) - Static method in class com.xuexiang.xhttp2.cookie.CookieManager
 
getInstance() - Static method in class com.xuexiang.xhttp2.XHttp
获取XHttp实例
getJsonRequestBody(Object) - Static method in class com.xuexiang.xhttp2.utils.HttpUtils
获取json的请求体
getJsonRequestBody(String) - Static method in class com.xuexiang.xhttp2.utils.HttpUtils
获取json的请求体
getJsonResponseBody(String) - Static method in class com.xuexiang.xhttp2.utils.HttpUtils
获取json的响应体
getLastModified(String) - Static method in class com.xuexiang.xhttp2.model.HttpHeaders
 
getLevel() - Method in class com.xuexiang.xhttp2.interceptor.HttpLoggingInterceptor
 
getListType(Type) - Static method in class com.xuexiang.xhttp2.utils.TypeUtils
为请求的返回类型加上List包装类
getLowerBounds() - Method in class com.xuexiang.xhttp2.reflect.impl.WildcardTypeImpl
 
getMessage() - Method in exception com.xuexiang.xhttp2.exception.ServerException
 
getMsg() - Method in class com.xuexiang.xhttp2.model.ApiResult
 
getNames() - Method in class com.xuexiang.xhttp2.model.HttpHeaders
 
getOkHttpClient() - Static method in class com.xuexiang.xhttp2.XHttp
 
getOkHttpClientBuilder() - Static method in class com.xuexiang.xhttp2.XHttp
对外暴露 OkHttpClient,方便自定义
getOwnerType() - Method in class com.xuexiang.xhttp2.reflect.impl.ParameterizedTypeImpl
 
getParameterizedType(Type, int) - Static method in class com.xuexiang.xhttp2.utils.TypeUtils
 
getParams() - Method in class com.xuexiang.xhttp2.request.BaseRequest
 
getRawType() - Method in class com.xuexiang.xhttp2.callback.CallBack
 
getRawType() - Method in class com.xuexiang.xhttp2.callback.CallBackProxy
 
getRawType() - Method in class com.xuexiang.xhttp2.callback.CallClazzProxy
 
getRawType() - Method in interface com.xuexiang.xhttp2.callback.impl.IType
 
getRawType() - Method in class com.xuexiang.xhttp2.reflect.impl.ParameterizedTypeImpl
 
GetRequest - Class in com.xuexiang.xhttp2.request
描述:get请求
GetRequest(String) - Constructor for class com.xuexiang.xhttp2.request.GetRequest
 
getRequestBodyString(Request) - Static method in class com.xuexiang.xhttp2.utils.HttpUtils
获取post请求的json
getRequestParams() - Method in class com.xuexiang.xhttp2.model.XHttpRequest
 
getResponseBody(Response) - Static method in class com.xuexiang.xhttp2.utils.HttpUtils
获取响应body的byte流
getResponseBodyString(Response) - Static method in class com.xuexiang.xhttp2.utils.HttpUtils
获取响应body的String
getResponseEntityType() - Method in class com.xuexiang.xhttp2.model.XHttpRequest
用于通过反射获取请求返回类型的方法【不要调用】
getRetrofitBuilder() - Static method in class com.xuexiang.xhttp2.XHttp
对外暴露 Retrofit,方便自定义
getRetryCount() - Static method in class com.xuexiang.xhttp2.XHttp
超时重试次数
getRetryDelay() - Static method in class com.xuexiang.xhttp2.XHttp
超时重试延迟时间
getRetryIncreaseDelay() - Static method in class com.xuexiang.xhttp2.XHttp
超时重试延迟叠加时间
getRxCache() - Static method in class com.xuexiang.xhttp2.XHttp
 
getRxCacheBuilder() - Static method in class com.xuexiang.xhttp2.XHttp
对外暴露 RxCache,方便自定义
getSslSocketFactory(InputStream, String, InputStream[]) - Static method in class com.xuexiang.xhttp2.https.HttpsUtils
 
getSubUrl() - Static method in class com.xuexiang.xhttp2.XHttp
获取全局subUrl
getTag() - Method in class com.xuexiang.xhttp2.interceptor.HttpLoggingInterceptor
 
getTimeout() - Method in class com.xuexiang.xhttp2.model.XHttpRequest
请求超时时间
getType() - Method in class com.xuexiang.xhttp2.callback.CallBack
 
getType() - Method in class com.xuexiang.xhttp2.callback.CallBackProxy
 
getType() - Method in class com.xuexiang.xhttp2.callback.CallClazzProxy
 
getType() - Method in interface com.xuexiang.xhttp2.callback.impl.IType
 
getType() - Method in class com.xuexiang.xhttp2.reflect.TypeToken
 
getUpperBounds() - Method in class com.xuexiang.xhttp2.reflect.impl.WildcardTypeImpl
 
getUrl(Class<? extends XHttpRequest>) - Static method in class com.xuexiang.xhttp2.model.XHttpRequest
获取请求的url地址【作为网络请求订阅的key和缓存的key】
getUrl() - Method in class com.xuexiang.xhttp2.model.XHttpRequest
 
getUrl() - Method in class com.xuexiang.xhttp2.request.BaseRequest
获取请求的地址
getUrlParams(String) - Static method in class com.xuexiang.xhttp2.utils.HttpUtils
获取URL中参数 并返回Map[LinkedHashMap(有顺序)]
getUserAgent() - Static method in class com.xuexiang.xhttp2.model.HttpHeaders
User-Agent: Mozilla/5.0 (Linux; U; Android 5.0.2; zh-cn; Redmi Note 3 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Mobile Safari/537.36
GMT_TIME_ZONE - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
GsonDiskConverter - Class in com.xuexiang.xhttp2.cache.converter
Gson磁盘序列化器
GsonDiskConverter() - Constructor for class com.xuexiang.xhttp2.cache.converter.GsonDiskConverter
 
GsonDiskConverter(Gson) - Constructor for class com.xuexiang.xhttp2.cache.converter.GsonDiskConverter
 

H

HandleErrTransformer<T> - Class in com.xuexiang.xhttp2.transform
将错误抛出
HandleErrTransformer() - Constructor for class com.xuexiang.xhttp2.transform.HandleErrTransformer
 
handleException(Throwable) - Static method in exception com.xuexiang.xhttp2.exception.ApiException
 
handleException(Throwable) - Static method in class com.xuexiang.xhttp2.exception.ApiExceptionHandler
处理过滤错误信息
handleException(Throwable) - Method in interface com.xuexiang.xhttp2.exception.IExceptionHandler
处理过滤错误信息
hashCode() - Method in class com.xuexiang.xhttp2.reflect.impl.ParameterizedTypeImpl
 
hashCode() - Method in class com.xuexiang.xhttp2.reflect.impl.WildcardTypeImpl
 
HEAD_KEY_ACCEPT - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
HEAD_KEY_ACCEPT_ENCODING - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
HEAD_KEY_ACCEPT_LANGUAGE - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
HEAD_KEY_CACHE_CONTROL - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
HEAD_KEY_CONNECTION - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
HEAD_KEY_CONTENT_DISPOSITION - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
HEAD_KEY_CONTENT_ENCODING - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
HEAD_KEY_CONTENT_LENGTH - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
HEAD_KEY_CONTENT_RANGE - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
HEAD_KEY_CONTENT_TYPE - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
HEAD_KEY_COOKIE - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
HEAD_KEY_COOKIE2 - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
HEAD_KEY_DATE - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
HEAD_KEY_E_TAG - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
HEAD_KEY_EXPIRES - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
HEAD_KEY_IF_MODIFIED_SINCE - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
HEAD_KEY_IF_NONE_MATCH - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
HEAD_KEY_LAST_MODIFIED - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
HEAD_KEY_LOCATION - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
HEAD_KEY_PRAGMA - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
HEAD_KEY_RESPONSE_CODE - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
HEAD_KEY_RESPONSE_MESSAGE - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
HEAD_KEY_SET_COOKIE - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
HEAD_KEY_SET_COOKIE2 - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
HEAD_KEY_USER_AGENT - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
HEAD_VALUE_ACCEPT_ENCODING - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
HEAD_VALUE_CONNECTION_CLOSE - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
HEAD_VALUE_CONNECTION_KEEP_ALIVE - Static variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
headers(HttpHeaders) - Method in class com.xuexiang.xhttp2.request.BaseRequest
添加头信息
headers(String, String) - Method in class com.xuexiang.xhttp2.request.BaseRequest
添加头信息
HeadersInterceptor - Class in com.xuexiang.xhttp2.interceptor
配置公共头部
HeadersInterceptor(HttpHeaders) - Constructor for class com.xuexiang.xhttp2.interceptor.HeadersInterceptor
 
headersMap - Variable in class com.xuexiang.xhttp2.model.HttpHeaders
 
hostnameVerifier(HostnameVerifier) - Method in class com.xuexiang.xhttp2.request.BaseRequest
https的全局访问规则
HTTP_ERROR - Static variable in class com.xuexiang.xhttp2.exception.ApiException.ERROR
协议出错
HttpHeaders - Class in com.xuexiang.xhttp2.model
描述:头部参数
HttpHeaders() - Constructor for class com.xuexiang.xhttp2.model.HttpHeaders
 
HttpHeaders(String, String) - Constructor for class com.xuexiang.xhttp2.model.HttpHeaders
 
HttpLog - Class in com.xuexiang.xhttp2.logs
框架日志记录
HttpLog() - Constructor for class com.xuexiang.xhttp2.logs.HttpLog
 
HttpLoggingInterceptor - Class in com.xuexiang.xhttp2.interceptor
描述:设置日志拦截器
HttpLoggingInterceptor(String) - Constructor for class com.xuexiang.xhttp2.interceptor.HttpLoggingInterceptor
 
HttpLoggingInterceptor(String, boolean) - Constructor for class com.xuexiang.xhttp2.interceptor.HttpLoggingInterceptor
 
HttpLoggingInterceptor.Level - Enum in com.xuexiang.xhttp2.interceptor
 
HttpParams - Class in com.xuexiang.xhttp2.model
描述:普通参数
HttpParams() - Constructor for class com.xuexiang.xhttp2.model.HttpParams
 
HttpParams(String, String) - Constructor for class com.xuexiang.xhttp2.model.HttpParams
 
HttpParams(Map<String, Object>) - Constructor for class com.xuexiang.xhttp2.model.HttpParams
 
HttpParams.FileWrapper<T> - Class in com.xuexiang.xhttp2.model
文件类型的包装类
HttpResponseThrowableFunc<T> - Class in com.xuexiang.xhttp2.transform.func
网络响应异常转换处理
HttpResponseThrowableFunc() - Constructor for class com.xuexiang.xhttp2.transform.func.HttpResponseThrowableFunc
 
HttpResultFuc<T> - Class in com.xuexiang.xhttp2.transform.func
ApiResult转换T
HttpResultFuc() - Constructor for class com.xuexiang.xhttp2.transform.func.HttpResultFuc
 
HttpResultTransformer<T> - Class in com.xuexiang.xhttp2.transform
将解析到的ApiResult转化为T, 并将错误抛出
HttpResultTransformer() - Constructor for class com.xuexiang.xhttp2.transform.HttpResultTransformer
 
HttpSchedulersTransformer<T> - Class in com.xuexiang.xhttp2.transform
网络请求线程切换调度
HttpSchedulersTransformer(boolean, boolean) - Constructor for class com.xuexiang.xhttp2.transform.HttpSchedulersTransformer
构造方法
HttpSchedulersTransformer(SchedulerType) - Constructor for class com.xuexiang.xhttp2.transform.HttpSchedulersTransformer
 
HttpsUtils - Class in com.xuexiang.xhttp2.https
描述:Https相关的工具类
HttpsUtils() - Constructor for class com.xuexiang.xhttp2.https.HttpsUtils
 
HttpsUtils.SSLParams - Class in com.xuexiang.xhttp2.https
 
HttpUtils - Class in com.xuexiang.xhttp2.utils
http工具类

I

i(String) - Static method in class com.xuexiang.xhttp2.logs.HttpLog
打印提示性的信息
ICache - Interface in com.xuexiang.xhttp2.cache.core
缓存需要实现的接口
IDiskConverter - Interface in com.xuexiang.xhttp2.cache.converter
desc : 通用转换器接口 author : xuexiang time : 2018/4/23 下午10:11
IExceptionHandler - Interface in com.xuexiang.xhttp2.exception
错误信息处理者
ILogger - Interface in com.xuexiang.xhttp2.logs
简易的日志记录接口
IN_THREAD - Static variable in annotation type com.xuexiang.xhttp2.annotation.ThreadType
-> 网络请求前 -> 网络请求中 -> 网络请求响应
-> io -> io -> io
【注意】请确保网络请求在子线程中才可以使用该类型【实质是不做任何线程调度】
init(Context) - Method in class com.xuexiang.xhttp2.cache.RxCache.Builder
 
init(Application) - Static method in class com.xuexiang.xhttp2.XHttp
必须在全局Application先调用,获取context上下文,否则缓存无法使用
init(Application) - Static method in class com.xuexiang.xhttp2.XHttpSDK
初始化RxHttp
intercept(Chain) - Method in class com.xuexiang.xhttp2.interceptor.BaseDynamicInterceptor
 
intercept(Chain) - Method in class com.xuexiang.xhttp2.interceptor.BaseInterceptor
 
intercept(Chain) - Method in class com.xuexiang.xhttp2.interceptor.CacheInterceptor
 
intercept(Chain) - Method in class com.xuexiang.xhttp2.interceptor.CacheInterceptorOffline
 
intercept(Chain) - Method in class com.xuexiang.xhttp2.interceptor.HeadersInterceptor
 
intercept(Chain) - Method in class com.xuexiang.xhttp2.interceptor.HttpLoggingInterceptor
 
intercept(Chain) - Method in class com.xuexiang.xhttp2.interceptor.NoCacheInterceptor
 
invoke(Object, Method, Object[]) - Method in class com.xuexiang.xhttp2.XHttpProxy
 
INVOKE_ERROR - Static variable in class com.xuexiang.xhttp2.exception.ApiException.ERROR
调用错误
IProgressLoader - Interface in com.xuexiang.xhttp2.subsciber.impl
进度条加载者实现接口
IProgressResponseCallBack - Interface in com.xuexiang.xhttp2.callback.impl
描述:上传进度回调接口
isAccessToken() - Method in class com.xuexiang.xhttp2.interceptor.BaseDynamicInterceptor
 
isAccessToken() - Method in class com.xuexiang.xhttp2.model.XHttpRequest
请求是否需要验证token
isCache() - Method in class com.xuexiang.xhttp2.cache.model.CacheResult
 
isDiskCache(boolean) - Method in class com.xuexiang.xhttp2.cache.RxCache.Builder
设置是否是磁盘缓存
isDone() - Method in class com.xuexiang.xhttp2.callback.UIProgressResponseCallBack.ProgressModel
 
isEmpty() - Method in class com.xuexiang.xhttp2.model.HttpHeaders
 
isExpired() - Method in class com.xuexiang.xhttp2.model.ExpiredInfo
 
isExpiry(String, long) - Method in class com.xuexiang.xhttp2.cache.core.BaseDiskCache
是否过期
isExpiry(String, long) - Method in class com.xuexiang.xhttp2.cache.core.LruDiskCache
 
isFromCache - Variable in class com.xuexiang.xhttp2.cache.model.CacheResult
 
isLoading() - Method in interface com.xuexiang.xhttp2.subsciber.impl.IProgressLoader
 
isLoading() - Method in class com.xuexiang.xhttp2.subsciber.ProgressDialogLoader
 
isNetworkAvailable(Context) - Static method in class com.xuexiang.xhttp2.utils.Utils
当前是否有网
isPlaintext(MediaType) - Static method in class com.xuexiang.xhttp2.utils.HttpUtils
判断请求响应内容是否是人能读懂的内容
isResponseExpired(Response, String) - Method in class com.xuexiang.xhttp2.interceptor.BaseExpiredInterceptor
判断是否是失效的响应
isSign() - Method in class com.xuexiang.xhttp2.interceptor.BaseDynamicInterceptor
 
isSuccess(ApiResult) - Static method in exception com.xuexiang.xhttp2.exception.ApiException
 
isSuccess() - Method in class com.xuexiang.xhttp2.model.ApiResult
是否请求成功,自定义api的时候需要重写【很关键】
isText(MediaType) - Static method in class com.xuexiang.xhttp2.utils.HttpUtils
判断MediaType是否是text类型
isTimeStamp() - Method in class com.xuexiang.xhttp2.interceptor.BaseDynamicInterceptor
 
IStrategy - Interface in com.xuexiang.xhttp2.cache.stategy
描述:实现缓存策略的接口,可以自定义缓存实现方式,只要实现该接口就可以了
isUseBaseUrl(boolean) - Method in class com.xuexiang.xhttp2.request.DownloadRequest
 
IType<T> - Interface in com.xuexiang.xhttp2.callback.impl
获取类型接口

J

JSON - Static variable in annotation type com.xuexiang.xhttp2.annotation.NetMethod
JSON

K

keepJson(boolean) - Method in class com.xuexiang.xhttp2.request.BaseRequest
保存json的形式(不返回对象,保持Json的String形式,不过传入的必须是String.class)

L

load(InputStream, Type) - Method in class com.xuexiang.xhttp2.cache.converter.GsonDiskConverter
 
load(InputStream, Type) - Method in interface com.xuexiang.xhttp2.cache.converter.IDiskConverter
读取
load(InputStream, Type) - Method in class com.xuexiang.xhttp2.cache.converter.SerializableDiskConverter
 
load(Type, String, long) - Method in class com.xuexiang.xhttp2.cache.core.BaseDiskCache
读取缓存
load(Type, String, long) - Method in class com.xuexiang.xhttp2.cache.core.CacheCore
读取
load(Type, String, long) - Method in interface com.xuexiang.xhttp2.cache.core.ICache
读取缓存
load(Type, String, long) - Method in class com.xuexiang.xhttp2.cache.core.LruMemoryCache
读取缓存
load(Type, String) - Method in class com.xuexiang.xhttp2.cache.RxCache
获取缓存
load(Type, String, long) - Method in class com.xuexiang.xhttp2.cache.RxCache
根据时间读取缓存
loadForRequest(HttpUrl) - Method in class com.xuexiang.xhttp2.cookie.CookieManager
 
log(String) - Method in class com.xuexiang.xhttp2.interceptor.HttpLoggingInterceptor
 
log(int, String, String, Throwable) - Method in interface com.xuexiang.xhttp2.logs.ILogger
打印信息
log(int, String, String, Throwable) - Method in class com.xuexiang.xhttp2.logs.LogcatLogger
打印信息
LogcatLogger - Class in com.xuexiang.xhttp2.logs
默认Logcat日志记录
LogcatLogger() - Constructor for class com.xuexiang.xhttp2.logs.LogcatLogger
 
logForRequest(Request, Connection) - Method in class com.xuexiang.xhttp2.interceptor.HttpLoggingInterceptor
记录请求日志
logForResponse(Response, long) - Method in class com.xuexiang.xhttp2.interceptor.HttpLoggingInterceptor
记录响应日志
logger - Variable in class com.xuexiang.xhttp2.interceptor.HttpLoggingInterceptor
 
LruDiskCache - Class in com.xuexiang.xhttp2.cache.core
磁盘缓存实现类
LruDiskCache(IDiskConverter, File, int, long) - Constructor for class com.xuexiang.xhttp2.cache.core.LruDiskCache
初始化磁盘缓存
LruMemoryCache - Class in com.xuexiang.xhttp2.cache.core
内存缓存实现类
LruMemoryCache(int) - Constructor for class com.xuexiang.xhttp2.cache.core.LruMemoryCache
初始化内存缓存

M

mAdapterFactories - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
mApiManager - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
maxStale - Static variable in class com.xuexiang.xhttp2.interceptor.CacheInterceptor
 
maxStaleOnline - Static variable in class com.xuexiang.xhttp2.interceptor.CacheInterceptor
 
mBaseUrl - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
mBytes - Variable in class com.xuexiang.xhttp2.request.BaseBodyRequest
 
mCache - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
mCacheKey - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
mCacheMode - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
mCacheTime - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
mConnectTimeout - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
mContext - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
mConverterFactories - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
mCookies - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
mDiskConverter - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
memoryMaxSize(int) - Method in class com.xuexiang.xhttp2.cache.RxCache.Builder
设置内存缓存的最大数量
mHeaders - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
mHostnameVerifier - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
mHttpUrl - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
mInterceptors - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
mIsOnMainThread - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
mIsSyncRequest - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
mJson - Variable in class com.xuexiang.xhttp2.request.BaseBodyRequest
 
mKeepJson - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
mMediaType - Variable in class com.xuexiang.xhttp2.request.BaseBodyRequest
 
mNetworkInterceptors - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
mObject - Variable in class com.xuexiang.xhttp2.request.BaseBodyRequest
 
mOkHttpClient - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
mParams - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
mProxy - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
mReadTimeOut - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
mRequestBody - Variable in class com.xuexiang.xhttp2.request.BaseBodyRequest
 
mRetrofit - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
mRetryCount - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
mRetryDelay - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
mRetryIncreaseDelay - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
mRxCache - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
MSG - Static variable in class com.xuexiang.xhttp2.model.ApiResult
 
mSSLParams - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
mString - Variable in class com.xuexiang.xhttp2.request.BaseBodyRequest
 
mUrl - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 
mWriteTimeOut - Variable in class com.xuexiang.xhttp2.request.BaseRequest
 

N

NET_METHOD_ANNOTATION_ERROR - Static variable in class com.xuexiang.xhttp2.exception.ApiException.ERROR
NetMethod注解错误
NET_WORD_ERROR - Static variable in class com.xuexiang.xhttp2.exception.ApiException.ERROR
网络错误
NetMethod - Annotation Type in com.xuexiang.xhttp2.annotation
网络请求的请求接口方法的注解
newBuilder() - Method in class com.xuexiang.xhttp2.cache.RxCache
 
newInstance(Class) - Static method in class com.xuexiang.xhttp2.reflect.TypeBuilder
获取类型构建者
NoCacheInterceptor - Class in com.xuexiang.xhttp2.interceptor
不加载缓存(不使用OKHttp自带的缓存)
NoCacheInterceptor() - Constructor for class com.xuexiang.xhttp2.interceptor.NoCacheInterceptor
 
NoStrategy - Class in com.xuexiang.xhttp2.cache.stategy
描述:网络加载,不缓存
NoStrategy() - Constructor for class com.xuexiang.xhttp2.cache.stategy.NoStrategy
 
NULL_POINTER_ERROR - Static variable in class com.xuexiang.xhttp2.exception.ApiException.ERROR
空指针错误

O

okCache(Cache) - Method in class com.xuexiang.xhttp2.request.BaseRequest
设置缓存(默认无缓存)
okproxy(Proxy) - Method in class com.xuexiang.xhttp2.request.BaseRequest
设置代理
onAfterRequest(Response, Chain, String) - Method in class com.xuexiang.xhttp2.interceptor.BaseExpiredInterceptor
 
onAfterRequest(Response, Chain, String) - Method in class com.xuexiang.xhttp2.interceptor.BaseInterceptor
响应拦截
onAfterRequest(Response, Chain, String) - Method in class com.xuexiang.xhttp2.interceptor.BaseRequestInterceptor
 
onBeforeRequest(Request, Chain) - Method in class com.xuexiang.xhttp2.interceptor.BaseInterceptor
请求拦截
onBeforeRequest(Request, Chain) - Method in class com.xuexiang.xhttp2.interceptor.BaseResponseInterceptor
 
onCancelProgress() - Method in class com.xuexiang.xhttp2.callback.ProgressLoadingCallBack
 
onCancelProgress() - Method in interface com.xuexiang.xhttp2.subsciber.impl.OnProgressCancelListener
进度框被取消
onCancelProgress() - Method in class com.xuexiang.xhttp2.subsciber.ProgressLoadingSubscriber
 
onComplete(String) - Method in class com.xuexiang.xhttp2.callback.DownloadProgressCallBack
 
onComplete() - Method in class com.xuexiang.xhttp2.subsciber.BaseSubscriber
 
onComplete() - Method in class com.xuexiang.xhttp2.subsciber.CallBackSubscriber
 
onComplete() - Method in class com.xuexiang.xhttp2.subsciber.DownloadSubscriber
 
onComplete() - Method in class com.xuexiang.xhttp2.subsciber.ProgressLoadingSubscriber
 
onCompleted() - Method in class com.xuexiang.xhttp2.callback.CallBack
 
onCompleted() - Method in class com.xuexiang.xhttp2.callback.DownloadProgressCallBack
 
onCompleted() - Method in class com.xuexiang.xhttp2.callback.ProgressLoadingCallBack
 
onCompleted() - Method in class com.xuexiang.xhttp2.callback.SimpleCallBack
 
onError(ApiException) - Method in class com.xuexiang.xhttp2.callback.CallBack
 
onError(ApiException) - Method in class com.xuexiang.xhttp2.callback.ProgressLoadingCallBack
 
onError(Throwable) - Method in class com.xuexiang.xhttp2.interceptor.HttpLoggingInterceptor
 
onError(Throwable) - Method in class com.xuexiang.xhttp2.subsciber.BaseSubscriber
 
onError(ApiException) - Method in class com.xuexiang.xhttp2.subsciber.BaseSubscriber
出错
onError(ApiException) - Method in class com.xuexiang.xhttp2.subsciber.CallBackSubscriber
 
onError(ApiException) - Method in class com.xuexiang.xhttp2.subsciber.DownloadSubscriber
 
onError(ApiException) - Method in class com.xuexiang.xhttp2.subsciber.ProgressLoadingSubscriber
 
OnlyCacheStrategy - Class in com.xuexiang.xhttp2.cache.stategy
描述:只读缓存
OnlyCacheStrategy() - Constructor for class com.xuexiang.xhttp2.cache.stategy.OnlyCacheStrategy
 
OnlyRemoteStrategy - Class in com.xuexiang.xhttp2.cache.stategy
描述:只请求网络
OnlyRemoteStrategy() - Constructor for class com.xuexiang.xhttp2.cache.stategy.OnlyRemoteStrategy
 
onMainThread(boolean) - Method in class com.xuexiang.xhttp2.request.BaseRequest
请求完成后是否回到主线程(默认是true)
onNext(T) - Method in class com.xuexiang.xhttp2.subsciber.BaseSubscriber
 
OnProgressCancelListener - Interface in com.xuexiang.xhttp2.subsciber.impl
进度框取消监听
onResponseProgress(long, long, boolean) - Method in interface com.xuexiang.xhttp2.callback.impl.IProgressResponseCallBack
回调进度
onResponseProgress(long, long, boolean) - Method in class com.xuexiang.xhttp2.callback.UIProgressResponseCallBack
 
onStart() - Method in class com.xuexiang.xhttp2.callback.CallBack
 
onStart() - Method in class com.xuexiang.xhttp2.callback.ProgressLoadingCallBack
 
onStart() - Method in class com.xuexiang.xhttp2.callback.SimpleCallBack
 
onStart() - Method in class com.xuexiang.xhttp2.subsciber.BaseSubscriber
 
onStart() - Method in class com.xuexiang.xhttp2.subsciber.CallBackSubscriber
 
onStart() - Method in class com.xuexiang.xhttp2.subsciber.DownloadSubscriber
 
onStart() - Method in class com.xuexiang.xhttp2.subsciber.ProgressLoadingSubscriber
 
onSuccess(T) - Method in class com.xuexiang.xhttp2.callback.CallBack
 
onSuccess(T) - Method in class com.xuexiang.xhttp2.callback.DownloadProgressCallBack
 
onSuccess(T) - Method in class com.xuexiang.xhttp2.subsciber.BaseSubscriber
安全版的BaseSubscriber.onNext(T),自动做了try-catch
onSuccess(T) - Method in class com.xuexiang.xhttp2.subsciber.CallBackSubscriber
 
onSuccess(ResponseBody) - Method in class com.xuexiang.xhttp2.subsciber.DownloadSubscriber
 
onUIResponseProgress(long, long, boolean) - Method in class com.xuexiang.xhttp2.callback.UIProgressResponseCallBack
UI层回调抽象方法
OriginalStringFuc - Class in com.xuexiang.xhttp2.transform.func
获取原始String返回
OriginalStringFuc() - Constructor for class com.xuexiang.xhttp2.transform.func.OriginalStringFuc
 
OUT_OF_MEMORY_ERROR - Static variable in class com.xuexiang.xhttp2.exception.ApiException.ERROR
OOM错误

P

ParameterizedTypeImpl - Class in com.xuexiang.xhttp2.reflect.impl
泛型类型
ParameterizedTypeImpl(Class, Type[], Type) - Constructor for class com.xuexiang.xhttp2.reflect.impl.ParameterizedTypeImpl
 
ParamKey - Annotation Type in com.xuexiang.xhttp2.annotation
网络请求实体参数名的注解
params(HttpParams) - Method in class com.xuexiang.xhttp2.request.BaseRequest
设置参数
params(Map<String, Object>) - Method in class com.xuexiang.xhttp2.request.BaseRequest
设置参数
params(String, Object) - Method in class com.xuexiang.xhttp2.request.BaseRequest
设置参数
PARSE_ERROR - Static variable in class com.xuexiang.xhttp2.exception.ApiException.ERROR
解析错误
parseReturnType() - Method in class com.xuexiang.xhttp2.model.XHttpRequest
解析获取请求的返回类型【默认类型:String】
parseUrl(String) - Static method in class com.xuexiang.xhttp2.utils.HttpUtils
解析前:https://xxx.xxx.xxx/app/chairdressing/skinAnalyzePower/skinTestResult?appId=10101 解析后:https://xxx.xxx.xxx/app/chairdressing/skinAnalyzePower/skinTestResult
PersistentCookieStore - Class in com.xuexiang.xhttp2.cookie
描述:cookie存储器
PersistentCookieStore(Context) - Constructor for class com.xuexiang.xhttp2.cookie.PersistentCookieStore
 
POST - Static variable in annotation type com.xuexiang.xhttp2.annotation.NetMethod
 
post(String, Map<String, Object>) - Method in interface com.xuexiang.xhttp2.api.ApiService
 
post(String) - Static method in class com.xuexiang.xhttp2.XHttp
 
post(String, String, String) - Static method in class com.xuexiang.xhttp2.XHttpSDK
获取PostRequest请求
post(String, boolean, String, String) - Static method in class com.xuexiang.xhttp2.XHttpSDK
获取PostRequest请求
post(String, boolean, String, boolean, boolean) - Static method in class com.xuexiang.xhttp2.XHttpSDK
获取PostRequest请求
post(XHttpRequest, boolean, boolean) - Static method in class com.xuexiang.xhttp2.XHttpSDK
【推荐使用】 获取PostRequest请求(使用实体参数名作为请求Key)
post(String, Class<?>, boolean, boolean) - Static method in class com.xuexiang.xhttp2.XHttpSDK
获取PostRequest请求(使用实体参数名作为请求Key)
postBody(String, Object) - Method in interface com.xuexiang.xhttp2.api.ApiService
 
postBody(String, RequestBody) - Method in interface com.xuexiang.xhttp2.api.ApiService
 
postInThread(String, String) - Static method in class com.xuexiang.xhttp2.XHttpSDK
获取PostRequest请求(子线程->子线程,需要验证token)
postInThread(String, String, Class<T>) - Static method in class com.xuexiang.xhttp2.XHttpSDK
执行PostRequest请求,返回对象(子线程->子线程,需要验证token)
postInThread(XHttpRequest) - Static method in class com.xuexiang.xhttp2.XHttpSDK
获取PostRequest请求(子线程->子线程)
postInThread(XHttpRequest, Class<T>) - Static method in class com.xuexiang.xhttp2.XHttpSDK
执行PostRequest请求,返回对象(子线程->子线程)
postJson(String, RequestBody) - Method in interface com.xuexiang.xhttp2.api.ApiService
 
postJson(XHttpRequest, boolean, boolean) - Static method in class com.xuexiang.xhttp2.XHttpSDK
获取PostRequest请求(使用注解作为请求Key)
postJsonToMain(XHttpRequest) - Static method in class com.xuexiang.xhttp2.XHttpSDK
获取PostRequest请求(主线程->主线程)
PostRequest - Class in com.xuexiang.xhttp2.request
post请求
PostRequest(String) - Constructor for class com.xuexiang.xhttp2.request.PostRequest
 
PostRequest(XHttpRequest) - Constructor for class com.xuexiang.xhttp2.request.PostRequest
使用xHttpRequest来构建post请求
postToIO(String, String) - Static method in class com.xuexiang.xhttp2.XHttpSDK
获取PostRequest请求(主线程->子线程,需要验证token)
postToIO(String, String, Class<T>) - Static method in class com.xuexiang.xhttp2.XHttpSDK
执行PostRequest请求,返回对象(主线程->子线程,需要验证token)
postToIO(XHttpRequest) - Static method in class com.xuexiang.xhttp2.XHttpSDK
获取PostRequest请求(主线程->子线程)
postToIO(XHttpRequest, Class<T>) - Static method in class com.xuexiang.xhttp2.XHttpSDK
执行PostRequest请求,返回对象(主线程->子线程)
postToMain(String, String) - Static method in class com.xuexiang.xhttp2.XHttpSDK
获取PostRequest请求(主线程->主线程, 需要验证token)
postToMain(String, String, Class<T>) - Static method in class com.xuexiang.xhttp2.XHttpSDK
执行PostRequest请求,返回对象(主线程->主线程,需要验证token)
postToMain(XHttpRequest) - Static method in class com.xuexiang.xhttp2.XHttpSDK
获取PostRequest请求(主线程->主线程)
postToMain(XHttpRequest, Class<T>) - Static method in class com.xuexiang.xhttp2.XHttpSDK
执行PostRequest请求,返回对象(主线程->主线程)
postToMain(XHttpRequest, Class<T>, BaseSubscriber<T>) - Static method in class com.xuexiang.xhttp2.XHttpSDK
执行PostRequest请求并订阅,返回订阅信息(主线程->主线程)
postToMain(String, Class<?>) - Static method in class com.xuexiang.xhttp2.XHttpSDK
获取PostRequest请求(主线程->主线程)
progressCallBack - Variable in class com.xuexiang.xhttp2.request.body.UploadProgressRequestBody
 
ProgressDialogLoader - Class in com.xuexiang.xhttp2.subsciber
默认进度加载
ProgressDialogLoader(Context) - Constructor for class com.xuexiang.xhttp2.subsciber.ProgressDialogLoader
 
ProgressDialogLoader(Context, String) - Constructor for class com.xuexiang.xhttp2.subsciber.ProgressDialogLoader
 
ProgressLoadingCallBack<T> - Class in com.xuexiang.xhttp2.callback
描述:可以自定义进度加载的回调
ProgressLoadingCallBack(IProgressLoader) - Constructor for class com.xuexiang.xhttp2.callback.ProgressLoadingCallBack
 
ProgressLoadingCallBack(IProgressLoader, boolean, boolean) - Constructor for class com.xuexiang.xhttp2.callback.ProgressLoadingCallBack
自定义进度加载
ProgressLoadingSubscriber<T> - Class in com.xuexiang.xhttp2.subsciber
实现带有进度加载的订阅【进度条加载者实现接口】
ProgressLoadingSubscriber() - Constructor for class com.xuexiang.xhttp2.subsciber.ProgressLoadingSubscriber
默认不显示弹出框,不可以取消
ProgressLoadingSubscriber(IProgressLoader) - Constructor for class com.xuexiang.xhttp2.subsciber.ProgressLoadingSubscriber
自定义加载进度框
ProgressLoadingSubscriber(IProgressLoader, boolean, boolean) - Constructor for class com.xuexiang.xhttp2.subsciber.ProgressLoadingSubscriber
自定义加载进度框,可以设置是否显示弹出框,是否可以取消
ProgressModel(long, long, boolean) - Constructor for class com.xuexiang.xhttp2.callback.UIProgressResponseCallBack.ProgressModel
 
proxy(Class<T>) - Static method in class com.xuexiang.xhttp2.XHttpProxy
网络请求代理
proxy(Class<T>, String) - Static method in class com.xuexiang.xhttp2.XHttpProxy
网络请求代理
PUT - Static variable in annotation type com.xuexiang.xhttp2.annotation.NetMethod
 
put(String, Map<String, Object>) - Method in interface com.xuexiang.xhttp2.api.ApiService
 
put(String, String) - Method in class com.xuexiang.xhttp2.model.HttpHeaders
 
put(HttpHeaders) - Method in class com.xuexiang.xhttp2.model.HttpHeaders
 
put(HttpParams) - Method in class com.xuexiang.xhttp2.model.HttpParams
 
put(Map<String, Object>) - Method in class com.xuexiang.xhttp2.model.HttpParams
存放普通键值对参数
put(String, Object) - Method in class com.xuexiang.xhttp2.model.HttpParams
存放普通键值对参数
put(String, T, IProgressResponseCallBack) - Method in class com.xuexiang.xhttp2.model.HttpParams
存放文件键值对参数
put(String, T, String, IProgressResponseCallBack) - Method in class com.xuexiang.xhttp2.model.HttpParams
存放文件键值对参数
put(String, T, String, IProgressResponseCallBack) - Method in class com.xuexiang.xhttp2.model.HttpParams
存放文件键值对参数
put(String, byte[], String, IProgressResponseCallBack) - Method in class com.xuexiang.xhttp2.model.HttpParams
存放文件键值对参数
put(String) - Static method in class com.xuexiang.xhttp2.XHttp
 
putBody(String, Object) - Method in interface com.xuexiang.xhttp2.api.ApiService
 
putBody(String, RequestBody) - Method in interface com.xuexiang.xhttp2.api.ApiService
 
putFileParams(String, List<T>, IProgressResponseCallBack) - Method in class com.xuexiang.xhttp2.model.HttpParams
存放多个文件的键值对参数
putJson(String, RequestBody) - Method in interface com.xuexiang.xhttp2.api.ApiService
 
PutRequest - Class in com.xuexiang.xhttp2.request
Put请求
PutRequest(String) - Constructor for class com.xuexiang.xhttp2.request.PutRequest
 

R

readTimeOut(long) - Method in class com.xuexiang.xhttp2.request.BaseRequest
设置读的超时时间
remove(String) - Method in class com.xuexiang.xhttp2.cache.core.BaseDiskCache
删除缓存
remove(String) - Method in class com.xuexiang.xhttp2.cache.core.CacheCore
删除缓存
remove(String) - Method in interface com.xuexiang.xhttp2.cache.core.ICache
删除缓存
remove(String) - Method in class com.xuexiang.xhttp2.cache.core.LruMemoryCache
删除缓存
remove(String) - Method in class com.xuexiang.xhttp2.cache.RxCache
删除缓存
remove(HttpUrl, Cookie) - Method in class com.xuexiang.xhttp2.cookie.CookieManager
 
remove(HttpUrl, Cookie) - Method in class com.xuexiang.xhttp2.cookie.PersistentCookieStore
 
remove(String) - Method in class com.xuexiang.xhttp2.model.HttpHeaders
 
remove(String) - Method in class com.xuexiang.xhttp2.model.HttpParams
 
remove(Object) - Method in class com.xuexiang.xhttp2.XHttpRequestPool
取消订阅【取消标志内所有订阅信息】
remove(Object, Disposable) - Method in class com.xuexiang.xhttp2.XHttpRequestPool
取消订阅【单个订阅取消】
removeAll() - Method in class com.xuexiang.xhttp2.cookie.CookieManager
 
removeAll() - Method in class com.xuexiang.xhttp2.cookie.PersistentCookieStore
 
removeAll() - Method in class com.xuexiang.xhttp2.XHttpRequestPool
取消所有订阅
removeAllHeaders() - Method in class com.xuexiang.xhttp2.request.BaseRequest
移除所有头信息
removeAllParams() - Method in class com.xuexiang.xhttp2.request.BaseRequest
去除所有参数
removeCache(String) - Static method in class com.xuexiang.xhttp2.XHttp
移除缓存(key)
removeFile(String) - Method in class com.xuexiang.xhttp2.model.HttpParams
 
removeHeader(String) - Method in class com.xuexiang.xhttp2.request.BaseRequest
移除头信息
removeParam(String) - Method in class com.xuexiang.xhttp2.request.BaseRequest
去除参数
removeUrl(String) - Method in class com.xuexiang.xhttp2.model.HttpParams
 
REQUEST_CANCEL - Static variable in class com.xuexiang.xhttp2.exception.ApiException.ERROR
请求取消
requestBody(RequestBody) - Method in class com.xuexiang.xhttp2.request.BaseBodyRequest
 
RequestBodyUtils - Class in com.xuexiang.xhttp2.utils
描述:请求体处理工具类
RequestParams - Annotation Type in com.xuexiang.xhttp2.annotation
网络请求实体的网络请求配置的注解
resetUrlParams(Request, String, Object) - Static method in class com.xuexiang.xhttp2.utils.HttpUtils
重置url上的请求参数
resetUrlParams(Request, Map<String, Object>) - Static method in class com.xuexiang.xhttp2.utils.HttpUtils
重置url上的请求参数
responseCallBack - Variable in class com.xuexiang.xhttp2.model.HttpParams.FileWrapper
 
responseExpired(Response, Chain, ExpiredInfo) - Method in class com.xuexiang.xhttp2.interceptor.BaseExpiredInterceptor
失效响应的处理
retryCount(int) - Method in class com.xuexiang.xhttp2.request.BaseRequest
设置超时重试的次数
retryDelay(int) - Method in class com.xuexiang.xhttp2.request.BaseRequest
设置超时重试的延迟时间
RetryExceptionFunc - Class in com.xuexiang.xhttp2.transform.func
网络请求错误重试条件
RetryExceptionFunc() - Constructor for class com.xuexiang.xhttp2.transform.func.RetryExceptionFunc
 
RetryExceptionFunc(int, long) - Constructor for class com.xuexiang.xhttp2.transform.func.RetryExceptionFunc
 
RetryExceptionFunc(int, long, long) - Constructor for class com.xuexiang.xhttp2.transform.func.RetryExceptionFunc
 
retryIncreaseDelay(int) - Method in class com.xuexiang.xhttp2.request.BaseRequest
设置超时重试叠加延时
RxCache - Class in com.xuexiang.xhttp2.cache
描述:缓存统一入口类
RxCache() - Constructor for class com.xuexiang.xhttp2.cache.RxCache
 
RxCache.Builder - Class in com.xuexiang.xhttp2.cache
 
RxSchedulers - Class in com.xuexiang.xhttp2.utils
描述:线程调度工具

S

save(String, T) - Method in class com.xuexiang.xhttp2.cache.core.BaseDiskCache
保存缓存
save(String, T) - Method in class com.xuexiang.xhttp2.cache.core.CacheCore
保存
save(String, T) - Method in interface com.xuexiang.xhttp2.cache.core.ICache
保存缓存
save(String, T) - Method in class com.xuexiang.xhttp2.cache.core.LruMemoryCache
保存缓存
save(String, T) - Method in class com.xuexiang.xhttp2.cache.RxCache
保存
saveFromResponse(HttpUrl, Cookie) - Method in class com.xuexiang.xhttp2.cookie.CookieManager
 
saveFromResponse(HttpUrl, List<Cookie>) - Method in class com.xuexiang.xhttp2.cookie.CookieManager
 
saveName(String) - Method in class com.xuexiang.xhttp2.request.DownloadRequest
设置下载文件名称
默认名字是时间戳生成的
savePath(String) - Method in class com.xuexiang.xhttp2.request.DownloadRequest
设置下载文件路径
SD卡不存在: /data/data/com.xxx.xxx/files;
存在: /storage/emulated/0/Android/data/com.xxx.xxx/files;
SchedulerType - Enum in com.xuexiang.xhttp2.model
线程类型
SerializableDiskConverter - Class in com.xuexiang.xhttp2.cache.converter
desc : 序列化对象的转换器 author : xuexiang time : 2018/4/23 下午10:14
SerializableDiskConverter() - Constructor for class com.xuexiang.xhttp2.cache.converter.SerializableDiskConverter
 
SerializableOkHttpCookies - Class in com.xuexiang.xhttp2.cookie
描述:对存储的cookie进行序列化
SerializableOkHttpCookies(Cookie) - Constructor for class com.xuexiang.xhttp2.cookie.SerializableOkHttpCookies
 
ServerException - Exception in com.xuexiang.xhttp2.exception
服务器处理异常
ServerException(int, String) - Constructor for exception com.xuexiang.xhttp2.exception.ServerException
 
setAcceptLanguage(String) - Static method in class com.xuexiang.xhttp2.model.HttpHeaders
 
setBaseUrl(String) - Method in class com.xuexiang.xhttp2.XHttp
全局设置baseUrl
setBaseUrl(String) - Static method in class com.xuexiang.xhttp2.XHttpSDK
全局设置baseUrl
setBodyString(String) - Method in class com.xuexiang.xhttp2.model.ExpiredInfo
 
setCache(boolean) - Method in class com.xuexiang.xhttp2.cache.model.CacheResult
 
setCacheDirectory(File) - Method in class com.xuexiang.xhttp2.XHttp
全局设置缓存的路径,默认是应用包下面的缓存
setCacheDiskConverter(IDiskConverter) - Method in class com.xuexiang.xhttp2.XHttp
全局设置缓存的转换器
setCacheMaxSize(long) - Method in class com.xuexiang.xhttp2.XHttp
设置全局的缓存大小,默认50M
setCacheMode(CacheMode) - Method in class com.xuexiang.xhttp2.XHttp
设置全局的缓存模式
setCacheTime(long) - Method in class com.xuexiang.xhttp2.XHttp
设置全局的缓存过期时间
setCacheVersion(int) - Method in class com.xuexiang.xhttp2.XHttp
全局设置缓存的版本,默认为1,缓存的版本号
setCallbackExecutor(Executor) - Method in class com.xuexiang.xhttp2.XHttp
全局设置Retrofit callbackExecutor
setCallFactory(okhttp3.Call.Factory) - Method in class com.xuexiang.xhttp2.XHttp
全局设置Retrofit对象Factory
setCancelable(boolean) - Method in interface com.xuexiang.xhttp2.subsciber.impl.IProgressLoader
设置是否可取消
setCancelable(boolean) - Method in class com.xuexiang.xhttp2.subsciber.ProgressDialogLoader
 
setCertificates(InputStream...) - Method in class com.xuexiang.xhttp2.XHttp
https的全局自签名证书
setCertificates(InputStream, String, InputStream...) - Method in class com.xuexiang.xhttp2.XHttp
https双向认证证书
setCode(int) - Method in class com.xuexiang.xhttp2.model.ApiResult
 
setCode(int) - Method in class com.xuexiang.xhttp2.model.ExpiredInfo
 
setConnectTimeout(long) - Method in class com.xuexiang.xhttp2.XHttp
全局设置连接超时时间
setContentLength(long) - Method in class com.xuexiang.xhttp2.callback.UIProgressResponseCallBack.ProgressModel
 
setCookieStore(CookieManager) - Method in class com.xuexiang.xhttp2.XHttp
全局cookie存取规则
setCurrentBytes(long) - Method in class com.xuexiang.xhttp2.callback.UIProgressResponseCallBack.ProgressModel
 
setData(T) - Method in class com.xuexiang.xhttp2.model.ApiResult
 
setDebug(boolean) - Static method in class com.xuexiang.xhttp2.logs.HttpLog
设置是否是调试模式
setDone(boolean) - Method in class com.xuexiang.xhttp2.callback.UIProgressResponseCallBack.ProgressModel
 
setExceptionHandler(IExceptionHandler) - Static method in class com.xuexiang.xhttp2.exception.ApiExceptionHandler
设置错误信息处理者
setExpired(boolean) - Method in class com.xuexiang.xhttp2.model.ExpiredInfo
 
setExpiredType(int) - Method in class com.xuexiang.xhttp2.model.ExpiredInfo
 
setHostnameVerifier(HostnameVerifier) - Method in class com.xuexiang.xhttp2.XHttp
https的全局访问规则
setHttpCache(Cache) - Method in class com.xuexiang.xhttp2.XHttp
全局设置OkHttp的缓存, 默认是3天
setICache(ICache) - Method in class com.xuexiang.xhttp2.cache.core.CacheCore
设置缓存实现接口
setIsDiskCache(boolean) - Method in class com.xuexiang.xhttp2.XHttp
设置是否是磁盘缓存
setLevel(HttpLoggingInterceptor.Level) - Method in class com.xuexiang.xhttp2.interceptor.HttpLoggingInterceptor
 
setLogger(ILogger) - Static method in class com.xuexiang.xhttp2.logs.HttpLog
设置日志记录者的接口
setMemoryMaxSize(int) - Method in class com.xuexiang.xhttp2.XHttp
设置内存缓存的最大数量
setMsg(String) - Method in class com.xuexiang.xhttp2.model.ApiResult
 
setOkclient(OkHttpClient) - Method in class com.xuexiang.xhttp2.XHttp
全局为Retrofit设置自定义的OkHttpClient
setOkconnectionPool(ConnectionPool) - Method in class com.xuexiang.xhttp2.XHttp
全局设置请求的连接池
setOkproxy(Proxy) - Method in class com.xuexiang.xhttp2.XHttp
全局设置代理
setOnProgressCancelListener(OnProgressCancelListener) - Method in interface com.xuexiang.xhttp2.subsciber.impl.IProgressLoader
设置取消的回掉监听
setOnProgressCancelListener(OnProgressCancelListener) - Method in class com.xuexiang.xhttp2.subsciber.ProgressDialogLoader
 
setPriority(int) - Static method in class com.xuexiang.xhttp2.logs.HttpLog
设置打印日志的等级(只打印改等级以上的日志)
setReadTimeOut(long) - Method in class com.xuexiang.xhttp2.XHttp
全局设置读取超时时间
setRequestBody(RequestBody) - Method in class com.xuexiang.xhttp2.request.body.UploadProgressRequestBody
 
setRetryCount(int) - Method in class com.xuexiang.xhttp2.XHttp
全局设置超时重试次数
setRetryDelay(int) - Method in class com.xuexiang.xhttp2.XHttp
全局设置超时重试延迟时间
setRetryIncreaseDelay(int) - Method in class com.xuexiang.xhttp2.XHttp
全局设置超时重试延迟叠加时间
setSubUrl(String) - Method in class com.xuexiang.xhttp2.XHttp
全局设置subUrl
setSubUrl(String) - Static method in class com.xuexiang.xhttp2.XHttpSDK
全局设置SubUrl
setTag(String) - Method in class com.xuexiang.xhttp2.interceptor.HttpLoggingInterceptor
 
setTag(String) - Static method in class com.xuexiang.xhttp2.logs.HttpLog
设置日志的tag
setTimeout(long) - Method in class com.xuexiang.xhttp2.XHttp
全局设置超时时间
setUserAgent(String) - Static method in class com.xuexiang.xhttp2.model.HttpHeaders
 
setWriteTimeOut(long) - Method in class com.xuexiang.xhttp2.XHttp
全局设置写入超时时间
showLoading() - Method in interface com.xuexiang.xhttp2.subsciber.impl.IProgressLoader
显示加载界面
showLoading() - Method in class com.xuexiang.xhttp2.subsciber.ProgressDialogLoader
 
sign(boolean) - Method in class com.xuexiang.xhttp2.interceptor.BaseDynamicInterceptor
 
sign(boolean) - Method in class com.xuexiang.xhttp2.request.BaseRequest
是否添加数字签名(默认false)
SimpleCallBack<T> - Class in com.xuexiang.xhttp2.callback
描述:简单的回调,默认可以使用该回调,不用关注其他回调方法
SimpleCallBack() - Constructor for class com.xuexiang.xhttp2.callback.SimpleCallBack
 
SSL_ERROR - Static variable in class com.xuexiang.xhttp2.exception.ApiException.ERROR
证书出错
SSLParams() - Constructor for class com.xuexiang.xhttp2.https.HttpsUtils.SSLParams
 
sSLSocketFactory - Variable in class com.xuexiang.xhttp2.https.HttpsUtils.SSLParams
 
subscription(Disposable) - Method in class com.xuexiang.xhttp2.callback.ProgressLoadingCallBack
 
subUrl(String) - Method in class com.xuexiang.xhttp2.request.BaseRequest
设置基础subUrl路径
syncRequest(boolean) - Method in class com.xuexiang.xhttp2.request.BaseRequest
是否是同步请求(不开子线程,默认是false)

T

tag - Variable in class com.xuexiang.xhttp2.interceptor.HttpLoggingInterceptor
 
ThreadType - Annotation Type in com.xuexiang.xhttp2.annotation
线程调度类型
threadType(String) - Method in class com.xuexiang.xhttp2.request.BaseRequest
设置请求的线程调度类型
timeOut(long) - Method in class com.xuexiang.xhttp2.request.BaseRequest
设置超时时间(读、写、服务器连接的超时时间)
TIMEOUT_ERROR - Static variable in class com.xuexiang.xhttp2.exception.ApiException.ERROR
连接超时
timeStamp(boolean) - Method in class com.xuexiang.xhttp2.interceptor.BaseDynamicInterceptor
 
timeStamp(boolean) - Method in class com.xuexiang.xhttp2.request.BaseRequest
是否添加时间戳(默认false)
TO_IO - Static variable in annotation type com.xuexiang.xhttp2.annotation.ThreadType
-> 网络请求前 -> 网络请求中 -> 网络请求响应
-> main -> io -> io
【注意】请确保网络请求在主线程中【实质是异步请求(切换到io线程),不过响应的线程不变,还是之前请求的那个io线程】
TO_MAIN - Static variable in annotation type com.xuexiang.xhttp2.annotation.ThreadType
-> 网络请求前 -> 网络请求中 -> 网络请求响应
-> main -> io -> main
【注意】请确保网络请求在主线程中【实质是异步请求(切换到io线程),且响应的线程又切换至主线程】
toJSONString() - Method in class com.xuexiang.xhttp2.model.HttpHeaders
 
toObservable(Observable, CallBackProxy<? extends ApiResult<T>, T>) - Method in class com.xuexiang.xhttp2.request.BaseRequest
执行请求,获取请求响应结果【Observable>】
toObservable(Observable, CallBackProxy<? extends ApiResult<T>, T>) - Method in class com.xuexiang.xhttp2.request.CustomRequest
 
toString() - Method in class com.xuexiang.xhttp2.cache.model.CacheResult
 
toString() - Method in class com.xuexiang.xhttp2.callback.UIProgressResponseCallBack.ProgressModel
 
toString() - Method in class com.xuexiang.xhttp2.model.ApiResult
 
toString() - Method in class com.xuexiang.xhttp2.model.HttpHeaders
 
toString() - Method in class com.xuexiang.xhttp2.model.HttpParams.FileWrapper
 
toString() - Method in class com.xuexiang.xhttp2.model.HttpParams
 
toString() - Method in class com.xuexiang.xhttp2.model.XHttpRequest
 
toString() - Method in class com.xuexiang.xhttp2.reflect.impl.ParameterizedTypeImpl
 
toString() - Method in class com.xuexiang.xhttp2.reflect.impl.WildcardTypeImpl
 
transformer(CacheMode, Type) - Method in class com.xuexiang.xhttp2.cache.RxCache
缓存transformer
trustManager - Variable in class com.xuexiang.xhttp2.https.HttpsUtils.SSLParams
 
TypeBuilder - Class in com.xuexiang.xhttp2.reflect
泛型生成工具,用法详细参见:https://github.com/ikidou/TypeBuilder 用法: *************************************************
TypeException - Exception in com.xuexiang.xhttp2.reflect
类型出错
TypeException() - Constructor for exception com.xuexiang.xhttp2.reflect.TypeException
 
TypeException(String) - Constructor for exception com.xuexiang.xhttp2.reflect.TypeException
 
TypeException(String, Throwable) - Constructor for exception com.xuexiang.xhttp2.reflect.TypeException
 
TypeException(Throwable) - Constructor for exception com.xuexiang.xhttp2.reflect.TypeException
 
TypeToken<T> - Class in com.xuexiang.xhttp2.reflect
获取范型的类型
TypeToken() - Constructor for class com.xuexiang.xhttp2.reflect.TypeToken
 
TypeUtils - Class in com.xuexiang.xhttp2.utils
类型工具类

U

UIProgressResponseCallBack - Class in com.xuexiang.xhttp2.callback
描述:可以直接更新UI的回调
UIProgressResponseCallBack() - Constructor for class com.xuexiang.xhttp2.callback.UIProgressResponseCallBack
 
UIProgressResponseCallBack.ProgressModel - Class in com.xuexiang.xhttp2.callback
 
UN_KNOWN_HOST_ERROR - Static variable in class com.xuexiang.xhttp2.exception.ApiException.ERROR
未知主机错误
UNKNOWN - Static variable in class com.xuexiang.xhttp2.exception.ApiException.ERROR
未知错误
upBytes(byte[]) - Method in class com.xuexiang.xhttp2.request.BaseBodyRequest
注意使用该方法上传字符串会清空实体中其他所有的参数,头信息不清除
update(long, long, boolean) - Method in class com.xuexiang.xhttp2.callback.DownloadProgressCallBack
更新进度条
updateDynamicParams(TreeMap<String, Object>) - Method in class com.xuexiang.xhttp2.interceptor.BaseDynamicInterceptor
更新请求的动态参数
updateMessage(String) - Method in interface com.xuexiang.xhttp2.subsciber.impl.IProgressLoader
设置loading提示信息
updateMessage(String) - Method in class com.xuexiang.xhttp2.subsciber.ProgressDialogLoader
 
updateRequestBody(Request, HashMap<String, Object>) - Static method in class com.xuexiang.xhttp2.utils.HttpUtils
更新请求body
updateUrlParams(Request, String, Object) - Static method in class com.xuexiang.xhttp2.utils.HttpUtils
刷新url上的请求参数
updateUrlParams(Request, Map<String, Object>) - Static method in class com.xuexiang.xhttp2.utils.HttpUtils
刷新url上的请求参数
upJson(String) - Method in class com.xuexiang.xhttp2.request.BaseBodyRequest
上传Json格式的数据请求(注意使用该方法上传字符串会清空实体中其他所有的参数,头信息不清除)
uploadFile(String, File, IProgressResponseCallBack) - Method in class com.xuexiang.xhttp2.request.BaseBodyRequest
上传文件
uploadFile(String, File, String, IProgressResponseCallBack) - Method in class com.xuexiang.xhttp2.request.BaseBodyRequest
上传文件
uploadFile(String, InputStream, String, IProgressResponseCallBack) - Method in class com.xuexiang.xhttp2.request.BaseBodyRequest
上传文件流
uploadFile(String, byte[], String, IProgressResponseCallBack) - Method in class com.xuexiang.xhttp2.request.BaseBodyRequest
上传文件bytes数组
uploadFiles(String, Map<String, RequestBody>) - Method in interface com.xuexiang.xhttp2.api.ApiService
 
uploadFiles(String, List<MultipartBody.Part>) - Method in interface com.xuexiang.xhttp2.api.ApiService
 
uploadFiles(String, List<File>, IProgressResponseCallBack) - Method in class com.xuexiang.xhttp2.request.BaseBodyRequest
上传多个文件
uploadFilesWithBodys() - Method in class com.xuexiang.xhttp2.request.BaseBodyRequest
 
uploadFilesWithParts() - Method in class com.xuexiang.xhttp2.request.BaseBodyRequest
 
UploadProgressRequestBody - Class in com.xuexiang.xhttp2.request.body
描述:上传请求体
UploadProgressRequestBody(IProgressResponseCallBack) - Constructor for class com.xuexiang.xhttp2.request.body.UploadProgressRequestBody
 
UploadProgressRequestBody(RequestBody, IProgressResponseCallBack) - Constructor for class com.xuexiang.xhttp2.request.body.UploadProgressRequestBody
 
UploadProgressRequestBody.CountingSink - Class in com.xuexiang.xhttp2.request.body
 
uploadType(BaseBodyRequest.UploadType) - Method in class com.xuexiang.xhttp2.request.BaseBodyRequest
上传文件的方式,默认part方式上传
upObject(Object) - Method in class com.xuexiang.xhttp2.request.BaseBodyRequest
 
upString(String) - Method in class com.xuexiang.xhttp2.request.BaseBodyRequest
上传text文本(注意使用该方法上传字符串会清空实体中其他所有的参数,头信息不清除)
upString(String, String) - Method in class com.xuexiang.xhttp2.request.BaseBodyRequest
上传String类型的数据(注意使用该方法上传字符串会清空实体中其他所有的参数,头信息不清除)
url(String) - Method in class com.xuexiang.xhttp2.request.BaseRequest
设置url路径
URL_GET - Static variable in annotation type com.xuexiang.xhttp2.annotation.NetMethod
直接拼接到get的url后面(URL/appId),只有get有效,且只有第一个参数为有效路径
urlParamsMap - Variable in class com.xuexiang.xhttp2.model.HttpParams
普通的键值对参数
UTF8 - Static variable in class com.xuexiang.xhttp2.utils.HttpUtils
 
Utils - Class in com.xuexiang.xhttp2.utils
通用工具类

V

v(String) - Static method in class com.xuexiang.xhttp2.logs.HttpLog
打印任何(所有)信息
valueOf(String) - Static method in enum com.xuexiang.xhttp2.cache.model.CacheMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.xuexiang.xhttp2.interceptor.HttpLoggingInterceptor.Level
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.xuexiang.xhttp2.model.SchedulerType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.xuexiang.xhttp2.request.BaseBodyRequest.UploadType
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.xuexiang.xhttp2.cache.model.CacheMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.xuexiang.xhttp2.interceptor.HttpLoggingInterceptor.Level
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.xuexiang.xhttp2.model.SchedulerType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.xuexiang.xhttp2.request.BaseBodyRequest.UploadType
Returns an array containing the constants of this enum type, in the order they are declared.
verify(String, SSLSession) - Method in class com.xuexiang.xhttp2.https.DefaultHostnameVerifier
 
verifyBaseUrl(String) - Static method in class com.xuexiang.xhttp2.XHttpSDK
验证BaseUrl是否合法

W

w(String) - Static method in class com.xuexiang.xhttp2.logs.HttpLog
打印warning警告信息
WildcardTypeImpl - Class in com.xuexiang.xhttp2.reflect.impl
通配符类型
WildcardTypeImpl(Class[], Class[]) - Constructor for class com.xuexiang.xhttp2.reflect.impl.WildcardTypeImpl
 
write(Buffer, long) - Method in class com.xuexiang.xhttp2.request.body.UploadProgressRequestBody.CountingSink
 
writer(OutputStream, Object) - Method in class com.xuexiang.xhttp2.cache.converter.GsonDiskConverter
 
writer(OutputStream, Object) - Method in interface com.xuexiang.xhttp2.cache.converter.IDiskConverter
写入
writer(OutputStream, Object) - Method in class com.xuexiang.xhttp2.cache.converter.SerializableDiskConverter
 
writeTimeOut(long) - Method in class com.xuexiang.xhttp2.request.BaseRequest
设置写的超时时间
writeTo(BufferedSink) - Method in class com.xuexiang.xhttp2.request.body.UploadProgressRequestBody
 
wtf(String) - Static method in class com.xuexiang.xhttp2.logs.HttpLog
打印严重的错误信息

X

XHttp - Class in com.xuexiang.xhttp2
描述:网络请求入口类
XHttpProxy - Class in com.xuexiang.xhttp2
网络请求代理[这里只是一种演示,可以模仿着自定义]
XHttpProxy() - Constructor for class com.xuexiang.xhttp2.XHttpProxy
构造方法
XHttpProxy(String) - Constructor for class com.xuexiang.xhttp2.XHttpProxy
构造方法
XHttpRequest - Class in com.xuexiang.xhttp2.model
基础网络请求实体
XHttpRequest() - Constructor for class com.xuexiang.xhttp2.model.XHttpRequest
 
XHttpRequestPool - Class in com.xuexiang.xhttp2
网络请求的订阅池管理
XHttpSDK - Class in com.xuexiang.xhttp2
网络请求工具

_

_io() - Static method in class com.xuexiang.xhttp2.utils.RxSchedulers
订阅发生在io线程 ( -> -> io) 使用compose操作符
_io_io() - Static method in class com.xuexiang.xhttp2.utils.RxSchedulers
处理在io线程,订阅也发生在io线程( -> io -> io)
_io_main() - Static method in class com.xuexiang.xhttp2.utils.RxSchedulers
处理在io线程,订阅发生在主线程( -> io -> main)
_main() - Static method in class com.xuexiang.xhttp2.utils.RxSchedulers
订阅发生在主线程 ( -> -> main) 使用compose操作符
A B C D E F G H I J K L M N O P R S T U V W X _ 
Skip navigation links