Modifier and Type | Field and Description |
---|---|
protected LifeCycleHandler |
AbstractBackendResponseHandler.lifeCycleHandler |
Modifier and Type | Method and Description |
---|---|
void |
BodyBuilder.buildBody(R req,
ForestRequest request,
LifeCycleHandler lifeCycleHandler) |
protected abstract HttpExecutor |
AbstractHttpBackend.createDeleteExecutor(ForestConnectionManager connectionManager,
ForestRequest request,
LifeCycleHandler lifeCycleHandler) |
HttpExecutor |
HttpBackend.HttpExecutorCreator.createExecutor(ForestConnectionManager connectionManager,
ForestRequest request,
LifeCycleHandler lifeCycleHandler) |
HttpExecutor |
AbstractHttpBackend.createExecutor(ForestRequest request,
LifeCycleHandler lifeCycleHandler) |
HttpExecutor |
HttpBackend.createExecutor(ForestRequest request,
LifeCycleHandler lifeCycleHandler) |
protected abstract HttpExecutor |
AbstractHttpBackend.createGetExecutor(ForestConnectionManager connectionManager,
ForestRequest request,
LifeCycleHandler lifeCycleHandler) |
protected abstract HttpExecutor |
AbstractHttpBackend.createHeadExecutor(ForestConnectionManager connectionManager,
ForestRequest request,
LifeCycleHandler lifeCycleHandler) |
protected abstract HttpExecutor |
AbstractHttpBackend.createOptionsExecutor(ForestConnectionManager connectionManager,
ForestRequest request,
LifeCycleHandler lifeCycleHandler) |
protected abstract HttpExecutor |
AbstractHttpBackend.createPatchExecutor(ForestConnectionManager connectionManager,
ForestRequest request,
LifeCycleHandler lifeCycleHandler) |
protected abstract HttpExecutor |
AbstractHttpBackend.createPostExecutor(ForestConnectionManager connectionManager,
ForestRequest request,
LifeCycleHandler lifeCycleHandler) |
protected abstract HttpExecutor |
AbstractHttpBackend.createPutExecutor(ForestConnectionManager connectionManager,
ForestRequest request,
LifeCycleHandler lifeCycleHandler) |
protected abstract HttpExecutor |
AbstractHttpBackend.createTraceExecutor(ForestConnectionManager connectionManager,
ForestRequest request,
LifeCycleHandler lifeCycleHandler) |
void |
HttpExecutor.execute(LifeCycleHandler lifeCycleHandler) |
abstract void |
AbstractHttpExecutor.execute(LifeCycleHandler lifeCycleHandler) |
Constructor and Description |
---|
AbstractBackendResponseHandler(ForestRequest request,
LifeCycleHandler lifeCycleHandler) |
Modifier and Type | Method and Description |
---|---|
void |
NoneBodyBuilder.buildBody(Object req,
ForestRequest request,
LifeCycleHandler lifeCycleHandler) |
void |
AbstractBodyBuilder.buildBody(T httpRequest,
ForestRequest request,
LifeCycleHandler lifeCycleHandler)
构建请求体
|
protected abstract void |
AbstractBodyBuilder.setFileBody(T httpReq,
ForestRequest request,
String charset,
String contentType,
List<RequestNameValue> nameValueList,
List<ForestMultipart> multiparts,
LifeCycleHandler lifeCycleHandler)
设置文件请求体
|
Modifier and Type | Method and Description |
---|---|
protected void |
HttpclientBodyBuilder.setFileBody(T httpReq,
ForestRequest request,
String charset,
String contentType,
List<RequestNameValue> nameValueList,
List<ForestMultipart> multiparts,
LifeCycleHandler lifeCycleHandler) |
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractHttpclientExecutor.execute(int retryCount,
LifeCycleHandler lifeCycleHandler) |
void |
AbstractHttpclientExecutor.execute(LifeCycleHandler lifeCycleHandler) |
protected void |
AbstractHttpclientExecutor.prepare(LifeCycleHandler lifeCycleHandler) |
void |
AbstractHttpclientExecutor.prepareBody(LifeCycleHandler lifeCycleHandler) |
void |
AbstractHttpclientExecutor.prepareCookies(LifeCycleHandler lifeCycleHandler) |
Modifier and Type | Method and Description |
---|---|
void |
HttpclientRequestSender.sendRequest(ForestRequest request,
HttpclientResponseHandler responseHandler,
org.apache.http.client.methods.HttpUriRequest httpRequest,
LifeCycleHandler lifeCycleHandler,
org.apache.http.client.CookieStore cookieStore,
long startTime,
int retryCount) |
void |
AsyncHttpclientRequestSender.sendRequest(ForestRequest request,
HttpclientResponseHandler responseHandler,
org.apache.http.client.methods.HttpUriRequest httpRequest,
LifeCycleHandler lifeCycleHandler,
org.apache.http.client.CookieStore cookieStore,
long startTime,
int retryCount) |
void |
SyncHttpclientRequestSender.sendRequest(ForestRequest request,
HttpclientResponseHandler responseHandler,
org.apache.http.client.methods.HttpUriRequest httpRequest,
LifeCycleHandler lifeCycleHandler,
org.apache.http.client.CookieStore cookieStore,
long startTime,
int retryCount) |
Modifier and Type | Method and Description |
---|---|
ForestResponse |
HttpclientForestResponseFactory.createResponse(ForestRequest request,
org.apache.http.HttpResponse httpResponse,
LifeCycleHandler lifeCycleHandler,
Throwable exception) |
Constructor and Description |
---|
HttpclientEntity(ForestRequest request,
org.apache.http.HttpEntity entity,
LifeCycleHandler handler) |
HttpclientForestFuture(ForestRequest request,
Class<T> innerType,
LifeCycleHandler lifeCycleHandler,
Future<R> httpResponseFuture,
ForestResponseFactory forestResponseFactory) |
HttpclientResponseHandler(ForestRequest request,
LifeCycleHandler lifeCycleHandler) |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractOkHttp3BodyBuilder.setFileBody(okhttp3.Request.Builder builder,
ForestRequest request,
String charset,
String contentType,
List<RequestNameValue> nameValueList,
List<ForestMultipart> multiparts,
LifeCycleHandler lifeCycleHandler) |
Constructor and Description |
---|
OkHttpMultipartBody(ForestRequest request,
okhttp3.RequestBody requestBody,
LifeCycleHandler handler) |
Modifier and Type | Method and Description |
---|---|
okhttp3.OkHttpClient |
OkHttp3ConnectionManager.getClient(ForestRequest request,
LifeCycleHandler lifeCycleHandler) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractOkHttp3Executor.execute(LifeCycleHandler lifeCycleHandler) |
void |
AbstractOkHttp3Executor.execute(LifeCycleHandler lifeCycleHandler,
int retryCount) |
protected okhttp3.OkHttpClient |
AbstractOkHttp3Executor.getClient(ForestRequest request,
LifeCycleHandler lifeCycleHandler) |
protected void |
AbstractOkHttp3Executor.prepareBody(okhttp3.Request.Builder builder,
LifeCycleHandler lifeCycleHandler) |
Modifier and Type | Method and Description |
---|---|
ForestResponse |
OkHttp3ForestResponseFactory.createResponse(ForestRequest request,
okhttp3.Response res,
LifeCycleHandler lifeCycleHandler,
Throwable exception) |
Constructor and Description |
---|
OkHttp3ResponseHandler(ForestRequest request,
LifeCycleHandler lifeCycleHandler) |
OkHttpResponseBody(ForestRequest request,
okhttp3.ResponseBody responseBody,
LifeCycleHandler handler) |
Modifier and Type | Method and Description |
---|---|
LifeCycleHandler |
ForestRequest.getLifeCycleHandler()
获取生命周期处理器
|
Modifier and Type | Method and Description |
---|---|
ForestResponse |
ForestResponseFactory.createResponse(ForestRequest request,
R res,
LifeCycleHandler lifeCycleHandler,
Throwable exception) |
Object |
ForestRequest.execute(HttpBackend backend,
LifeCycleHandler lifeCycleHandler)
执行请求发送过程
|
ForestRequest |
ForestRequest.setLifeCycleHandler(LifeCycleHandler lifeCycleHandler)
设置生命周期处理器
|
Modifier and Type | Class and Description |
---|---|
class |
MethodLifeCycleHandler<T>
请求方法生命周期处理器
|
class |
NoneLifeCycleHandler |
Copyright © 2020. All rights reserved.