@Contract(threading=STATELESS) @Internal public final class AsyncProtocolExec extends Object implements AsyncExecChainHandler
Further responsibilities such as communication with the opposite endpoint is delegated to the next executor in the request execution chain.
| 限定符和类型 | 方法和说明 |
|---|---|
void |
execute(HttpRequest userRequest,
AsyncEntityProducer entityProducer,
AsyncExecChain.Scope scope,
AsyncExecChain chain,
AsyncExecCallback asyncExecCallback)
Executes the actual HTTP request.
|
public void execute(HttpRequest userRequest, AsyncEntityProducer entityProducer, AsyncExecChain.Scope scope, AsyncExecChain chain, AsyncExecCallback asyncExecCallback) throws HttpException, IOException
AsyncExecChainHandlerexecute 在接口中 AsyncExecChainHandleruserRequest - the actual request.entityProducer - the request entity producer or null if the request
does not enclose an entity.scope - the execution scope .chain - the next element in the request execution chain.asyncExecCallback - the execution callback.HttpExceptionIOExceptionCopyright © 2023. All rights reserved.