接口的使用
com.dtflys.forest.handler.LifeCycleHandler
使用LifeCycleHandler的程序包
程序包
说明
-
com.dtflys.forest.backend中LifeCycleHandler的使用
修饰符和类型方法说明voidBodyBuilder.buildBody(R req, ForestRequest request, LifeCycleHandler lifeCycleHandler) AbstractHttpBackend.createAsyncExecutor(ForestConnectionManager connectionManager, ForestRequest request, LifeCycleHandler lifeCycleHandler) AbstractHttpBackend.createExecutor(ForestRequest request, LifeCycleHandler lifeCycleHandler) HttpBackend.createExecutor(ForestRequest request, LifeCycleHandler lifeCycleHandler) 创建HTTP执行器HttpBackend.HttpExecutorCreator.createExecutor(ForestConnectionManager connectionManager, ForestRequest request, LifeCycleHandler lifeCycleHandler) 创建HTTP执行器AbstractHttpBackend.createKotlinCoroutineExecutor(ForestConnectionManager connectionManager, ForestRequest request, LifeCycleHandler lifeCycleHandler) abstract HttpExecutorAbstractHttpBackend.createSyncExecutor(ForestConnectionManager connectionManager, ForestRequest request, LifeCycleHandler lifeCycleHandler) abstract voidAbstractHttpExecutor.execute(LifeCycleHandler lifeCycleHandler) voidAsyncHttpExecutor.execute(LifeCycleHandler lifeCycleHandler) voidHttpExecutor.execute(LifeCycleHandler lifeCycleHandler) BackendClientProvider.getClient(ForestRequest request, LifeCycleHandler lifeCycleHandler) 参数类型为LifeCycleHandler的com.dtflys.forest.backend中的构造器限定符构造器说明AsyncTask(HttpExecutor executor, LifeCycleHandler lifeCycleHandler) ResponseHandler(ForestRequest request, LifeCycleHandler lifeCycleHandler) -
com.dtflys.forest.backend.body中LifeCycleHandler的使用
修饰符和类型方法说明voidAbstractBodyBuilder.buildBody(T httpRequest, ForestRequest request, LifeCycleHandler lifeCycleHandler) 构建请求体protected abstract voidAbstractBodyBuilder.setFileBody(T httpReq, ForestRequest request, Charset charset, String contentType, LifeCycleHandler lifeCycleHandler) 设置文件请求体 -
com.dtflys.forest.backend.httpclient中LifeCycleHandler的使用
修饰符和类型方法说明HttpclientBackend.createSyncExecutor(ForestConnectionManager connectionManager, ForestRequest request, LifeCycleHandler lifeCycleHandler) -
com.dtflys.forest.backend.httpclient.body中LifeCycleHandler的使用
修饰符和类型方法说明protected voidHttpclientBodyBuilder.setFileBody(T httpReq, ForestRequest request, Charset charset, String contentType, LifeCycleHandler lifeCycleHandler) 限定符构造器说明HttpclientMultipartCommonBody(ForestRequest request, ForestMultipart multipart, org.apache.http.entity.ContentType contentType, String filename, LifeCycleHandler handler) HttpclientMultipartFileBody(ForestRequest request, File file, org.apache.http.entity.ContentType contentType, String filename, LifeCycleHandler handler) -
com.dtflys.forest.backend.httpclient.conn中LifeCycleHandler的使用
修饰符和类型方法说明org.apache.http.client.HttpClientHttpclientConnectionManager.DefaultHttpClientProvider.getClient(ForestRequest request, LifeCycleHandler lifeCycleHandler) org.apache.http.client.HttpClientHttpclientConnectionManager.getHttpClient(ForestRequest request, LifeCycleHandler lifeCycleHandler) -
com.dtflys.forest.backend.httpclient.executor中LifeCycleHandler的使用
修饰符和类型方法说明voidHttpclientExecutor.execute(LifeCycleHandler lifeCycleHandler) protected voidHttpclientExecutor.prepare(LifeCycleHandler lifeCycleHandler) voidHttpclientExecutor.prepareBody(LifeCycleHandler lifeCycleHandler) -
com.dtflys.forest.backend.httpclient.request中LifeCycleHandler的使用
修饰符和类型方法说明protected org.apache.http.client.HttpClientSyncHttpclientRequestSender.getHttpClient(LifeCycleHandler lifeCycleHandler) voidHttpclientRequestSender.sendRequest(ForestRequest request, AbstractHttpExecutor executor, HttpclientResponseHandler responseHandler, org.apache.http.client.methods.HttpUriRequest httpRequest, LifeCycleHandler lifeCycleHandler, Date startDate) voidSyncHttpclientRequestSender.sendRequest(ForestRequest request, AbstractHttpExecutor executor, HttpclientResponseHandler responseHandler, org.apache.http.client.methods.HttpUriRequest httpRequest, LifeCycleHandler lifeCycleHandler, Date startDate) -
com.dtflys.forest.backend.httpclient.response中LifeCycleHandler的使用
修饰符和类型方法说明HttpclientForestResponseFactory.createResponse(ForestRequest<?> request, org.apache.http.HttpResponse httpResponse, LifeCycleHandler lifeCycleHandler, Throwable exception, Date requestTime) 限定符构造器说明HttpclientEntity(ForestRequest request, org.apache.http.HttpEntity entity, LifeCycleHandler handler) HttpclientForestFuture(ForestRequest request, Date requestTime, Class<T> innerType, LifeCycleHandler lifeCycleHandler, Future<R> httpResponseFuture, ForestResponseFactory forestResponseFactory) HttpclientResponseHandler(ForestRequest request, LifeCycleHandler lifeCycleHandler) -
com.dtflys.forest.backend.okhttp3中LifeCycleHandler的使用
修饰符和类型方法说明OkHttp3Backend.createSyncExecutor(ForestConnectionManager connectionManager, ForestRequest request, LifeCycleHandler lifeCycleHandler) -
com.dtflys.forest.backend.okhttp3.body中LifeCycleHandler的使用
修饰符和类型方法说明protected voidOkHttp3BodyBuilder.setFileBody(okhttp3.Request.Builder builder, ForestRequest request, Charset charset, String contentType, LifeCycleHandler lifeCycleHandler) 限定符构造器说明OkHttpMultipartBody(ForestRequest request, okhttp3.RequestBody requestBody, LifeCycleHandler handler) -
com.dtflys.forest.backend.okhttp3.conn中LifeCycleHandler的使用
修饰符和类型方法说明okhttp3.OkHttpClientOkHttp3ConnectionManager.DefaultOkHttpClientProvider.getClient(ForestRequest request, LifeCycleHandler lifeCycleHandler) okhttp3.OkHttpClientOkHttp3ConnectionManager.getClient(ForestRequest request, LifeCycleHandler lifeCycleHandler) -
com.dtflys.forest.backend.okhttp3.executor中LifeCycleHandler的使用
修饰符和类型方法说明voidOkHttp3Executor.execute(LifeCycleHandler lifeCycleHandler) voidOkHttp3Executor.execute(LifeCycleHandler lifeCycleHandler, int retryCount) protected okhttp3.OkHttpClientOkHttp3Executor.getClient(ForestRequest request, LifeCycleHandler lifeCycleHandler) protected voidOkHttp3Executor.prepareMethodAndBody(okhttp3.Request.Builder builder, LifeCycleHandler lifeCycleHandler) -
com.dtflys.forest.backend.okhttp3.response中LifeCycleHandler的使用
修饰符和类型方法说明OkHttp3ForestResponseFactory.createResponse(ForestRequest<?> request, okhttp3.Response res, LifeCycleHandler lifeCycleHandler, Throwable exception, Date requestTime) 限定符构造器说明OkHttp3ResponseHandler(ForestRequest request, LifeCycleHandler lifeCycleHandler) OkHttpResponseBody(ForestRequest request, okhttp3.ResponseBody responseBody, LifeCycleHandler handler) -
com.dtflys.forest.http中LifeCycleHandler的使用
参数类型为LifeCycleHandler的com.dtflys.forest.http中的方法修饰符和类型方法说明ForestResponseFactory.createResponse(ForestRequest<?> request, R res, LifeCycleHandler lifeCycleHandler, Throwable exception, Date requestTime) ForestRequest.execute(HttpBackend backend, LifeCycleHandler lifeCycleHandler) 执行请求发送过程ForestRequest.setLifeCycleHandler(LifeCycleHandler lifeCycleHandler) 设置生命周期处理器 -
com.dtflys.forest.reflection中LifeCycleHandler的使用