Class ClientHttp1StreamHandler
java.lang.Object
org.apache.hc.core5.http.impl.nio.ClientHttp1StreamHandler
- All Implemented Interfaces:
ResourceHolder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate HttpRequestprivate final ConnectionReuseStrategyprivate final HttpCoreContextprivate final AtomicBooleanprivate final AsyncClientExchangeHandlerprivate final Http1Configprivate final HttpProcessorprivate final DataStreamChannelprivate booleanprivate final Http1StreamChannel<HttpRequest> private final AtomicBooleanprivate MessageStateprivate MessageStateprivate Timeout -
Constructor Summary
ConstructorsConstructorDescriptionClientHttp1StreamHandler(Http1StreamChannel<HttpRequest> outputChannel, HttpProcessor httpProcessor, Http1Config http1Config, ConnectionReuseStrategy connectionReuseStrategy, AsyncClientExchangeHandler exchangeHandler, HttpCoreContext context) -
Method Summary
Modifier and TypeMethodDescription(package private) voidappendState(StringBuilder buf) private voidcommitRequest(HttpRequest request, EntityDetails entityDetails) (package private) voidconsumeData(ByteBuffer src) (package private) voidconsumeHeader(HttpResponse response, EntityDetails entityDetails) (package private) void(package private) void(package private) String(package private) boolean(package private) boolean(package private) boolean(package private) boolean(package private) voidvoidtoString()(package private) voidupdateCapacity(CapacityChannel capacityChannel)
-
Field Details
-
outputChannel
-
internalDataChannel
-
httpProcessor
-
http1Config
-
connectionReuseStrategy
-
exchangeHandler
-
context
-
requestCommitted
-
done
-
keepAlive
private volatile boolean keepAlive -
timeout
-
committedRequest
-
requestState
-
responseState
-
-
Constructor Details
-
ClientHttp1StreamHandler
ClientHttp1StreamHandler(Http1StreamChannel<HttpRequest> outputChannel, HttpProcessor httpProcessor, Http1Config http1Config, ConnectionReuseStrategy connectionReuseStrategy, AsyncClientExchangeHandler exchangeHandler, HttpCoreContext context)
-
-
Method Details
-
isResponseFinal
boolean isResponseFinal() -
isCompleted
boolean isCompleted() -
getRequestMethod
String getRequestMethod() -
isOutputReady
boolean isOutputReady() -
commitRequest
private void commitRequest(HttpRequest request, EntityDetails entityDetails) throws IOException, HttpException - Throws:
IOExceptionHttpException
-
produceOutput
- Throws:
HttpExceptionIOException
-
consumeHeader
void consumeHeader(HttpResponse response, EntityDetails entityDetails) throws HttpException, IOException - Throws:
HttpExceptionIOException
-
consumeData
- Throws:
HttpExceptionIOException
-
updateCapacity
- Throws:
IOException
-
dataEnd
- Throws:
HttpExceptionIOException
-
handleTimeout
boolean handleTimeout() -
failed
-
releaseResources
public void releaseResources()- Specified by:
releaseResourcesin interfaceResourceHolder
-
appendState
-
toString
-