Top Fields Constructors Methods
org.apache.hc.core5.http.impl.nio

pack-priv Class ClientHttp1StreamHandler

extends Object
implements ResourceHolder
Class Inheritance
All Implemented Interfaces
org.apache.hc.core5.http.nio.ResourceHolder
Imports
java.io.IOException, java.nio.ByteBuffer, java.util.List, java.util.concurrent.atomic.AtomicBoolean, org.apache.hc.core5.http.ConnectionReuseStrategy, .EntityDetails, .Header, .HeaderElements, .HttpException, .HttpHeaders, .HttpRequest, .HttpResponse, .HttpStatus, .HttpVersion, .ProtocolException, .ProtocolVersion, .UnsupportedHttpVersionException, org.apache.hc.core5.http.config.Http1Config, org.apache.hc.core5.http.message.StatusLine, org.apache.hc.core5.http.nio.AsyncClientExchangeHandler, .CapacityChannel, .DataStreamChannel, .ResourceHolder, org.apache.hc.core5.http.protocol.HttpCoreContext, .HttpProcessor, org.apache.hc.core5.util.Timeout

Field Summary

Modifier and TypeField and Description
private volatile HttpRequest
private final ConnectionReuseStrategy
private final HttpCoreContext
private final AtomicBoolean
private final AsyncClientExchangeHandler
private final Http1Config
private final HttpProcessor
private final DataStreamChannel
private volatile boolean
private final Http1StreamChannel<HttpRequest>
private final AtomicBoolean
private volatile MessageState
private volatile MessageState
private volatile Timeout

Constructor Summary

AccessConstructor and Description
pack-priv
ClientHttp1StreamHandler(final Http1StreamChannel<HttpRequest> outputChannel, final HttpProcessor httpProcessor, final Http1Config http1Config, final ConnectionReuseStrategy connectionReuseStrategy, final AsyncClientExchangeHandler exchangeHandler, final HttpCoreContext context)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
private void
commitRequest(final HttpRequest request, final EntityDetails entityDetails)

pack-priv void
pack-priv void
consumeHeader(final HttpResponse response, final EntityDetails entityDetails)

pack-priv void
dataEnd(final List<? extends Header> trailers)

pack-priv void
failed(final Exception cause)

pack-priv String
pack-priv boolean
pack-priv boolean
pack-priv boolean
pack-priv boolean
pack-priv void
public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
pack-priv void
updateCapacity(final CapacityChannel capacityChannel)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

committedRequestback to summary
private volatile HttpRequest committedRequest
connectionReuseStrategyback to summary
private final ConnectionReuseStrategy connectionReuseStrategy
contextback to summary
private final HttpCoreContext context
doneback to summary
private final AtomicBoolean done
exchangeHandlerback to summary
private final AsyncClientExchangeHandler exchangeHandler
http1Configback to summary
private final Http1Config http1Config
httpProcessorback to summary
private final HttpProcessor httpProcessor
internalDataChannelback to summary
private final DataStreamChannel internalDataChannel
keepAliveback to summary
private volatile boolean keepAlive
outputChannelback to summary
private final Http1StreamChannel<HttpRequest> outputChannel
requestCommittedback to summary
private final AtomicBoolean requestCommitted
requestStateback to summary
private volatile MessageState requestState
responseStateback to summary
private volatile MessageState responseState
timeoutback to summary
private volatile Timeout timeout

Constructor Detail

ClientHttp1StreamHandlerback to summary
pack-priv ClientHttp1StreamHandler(final Http1StreamChannel<HttpRequest> outputChannel, final HttpProcessor httpProcessor, final Http1Config http1Config, final ConnectionReuseStrategy connectionReuseStrategy, final AsyncClientExchangeHandler exchangeHandler, final HttpCoreContext context)

Method Detail

appendStateback to summary
pack-priv void appendState(final StringBuilder buf)
commitRequestback to summary
private void commitRequest(final HttpRequest request, final EntityDetails entityDetails) throws IOException, HttpException
consumeDataback to summary
pack-priv void consumeData(final ByteBuffer src) throws HttpException, IOException
consumeHeaderback to summary
pack-priv void consumeHeader(final HttpResponse response, final EntityDetails entityDetails) throws HttpException, IOException
dataEndback to summary
pack-priv void dataEnd(final List<? extends Header> trailers) throws HttpException, IOException
failedback to summary
pack-priv void failed(final Exception cause)
getRequestMethodback to summary
pack-priv String getRequestMethod()
handleTimeoutback to summary
pack-priv boolean handleTimeout()
isCompletedback to summary
pack-priv boolean isCompleted()
isOutputReadyback to summary
pack-priv boolean isOutputReady()
isResponseFinalback to summary
pack-priv boolean isResponseFinal()
produceOutputback to summary
pack-priv void produceOutput() throws HttpException, IOException
releaseResourcesback to summary
public void releaseResources()

Implements org.apache.hc.core5.http.nio.ResourceHolder.releaseResources.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
updateCapacityback to summary
pack-priv void updateCapacity(final CapacityChannel capacityChannel) throws IOException