类 AbstractHttpBackend
java.lang.Object
com.dtflys.forest.backend.AbstractHttpBackend
- 所有已实现的接口:
HttpBackend
- 直接已知子类:
HttpclientBackend,OkHttp3Backend
- 从以下版本开始:
- 2018-02-27 15:41
- 作者:
- gongjun[jun.gong@thebeastshop.com]
-
嵌套类概要
从接口继承的嵌套类/接口 com.dtflys.forest.backend.HttpBackend
HttpBackend.HttpExecutorCreator -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明createAsyncExecutor(ForestConnectionManager connectionManager, ForestRequest request, LifeCycleHandler lifeCycleHandler) createExecutor(ForestRequest request, LifeCycleHandler lifeCycleHandler) 创建HTTP执行器createKotlinCoroutineExecutor(ForestConnectionManager connectionManager, ForestRequest request, LifeCycleHandler lifeCycleHandler) abstract HttpExecutorcreateSyncExecutor(ForestConnectionManager connectionManager, ForestRequest request, LifeCycleHandler lifeCycleHandler) 获取连接池voidinit(ForestConfiguration configuration) 初始化后端框架从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.dtflys.forest.backend.HttpBackend
getName, isAllowEncodeBraceInQueryValue
-
构造器详细资料
-
AbstractHttpBackend
-
-
方法详细资料
-
init
从接口复制的说明:HttpBackend初始化后端框架- 指定者:
init在接口中HttpBackend- 参数:
configuration- Forest全局配置
-
getConnectionManager
从接口复制的说明:HttpBackend获取连接池- 指定者:
getConnectionManager在接口中HttpBackend- 返回:
ForestConnectionManager实例
-
createSyncExecutor
public abstract HttpExecutor createSyncExecutor(ForestConnectionManager connectionManager, ForestRequest request, LifeCycleHandler lifeCycleHandler) -
createAsyncExecutor
public HttpExecutor createAsyncExecutor(ForestConnectionManager connectionManager, ForestRequest request, LifeCycleHandler lifeCycleHandler) -
createKotlinCoroutineExecutor
public HttpExecutor createKotlinCoroutineExecutor(ForestConnectionManager connectionManager, ForestRequest request, LifeCycleHandler lifeCycleHandler) -
createExecutor
从接口复制的说明:HttpBackend创建HTTP执行器- 指定者:
createExecutor在接口中HttpBackend- 参数:
request- Forest请求对象lifeCycleHandler- 生命周期处理器- 返回:
- HTTP执行器
-