ProtocolIOSession that implements
client side HTTP/1.1 messaging protocol with full support for
duplexed message transmission and message pipelining.
| Modifier and Type | Field and Description |
|---|---|
| private final ConnectionReuseStrategy | |
| private final Http1Config | |
| private final HttpProcessor | |
| private volatile ClientHttp1StreamHandler | |
| private volatile ClientHttp1StreamHandler | |
| private final Http1StreamChannel | |
| private final Queue | |
| private final Http1StreamListener |
| Access | Constructor and Description |
|---|---|
| public | ClientHttp1StreamDuplexer(final ProtocolIOSession ioSession, final HttpProcessor httpProcessor, final Http1Config http1Config, final CharCodingConfig charCodingConfig, final ConnectionReuseStrategy connectionReuseStrategy, final NHttpMessageParser<HttpResponse> incomingMessageParser, final NHttpMessageWriter<HttpRequest> outgoingMessageWriter, final ContentLengthStrategy incomingContentStrategy, final ContentLengthStrategy outgoingContentStrategy, final Http1StreamListener streamListener)
|
| connectionReuseStrategy | back to summary |
|---|---|
| private final ConnectionReuseStrategy connectionReuseStrategy | |
| http1Config | back to summary |
|---|---|
| private final Http1Config http1Config Hides org. | |
| httpProcessor | back to summary |
|---|---|
| private final HttpProcessor httpProcessor | |
| incoming | back to summary |
|---|---|
| private volatile ClientHttp1StreamHandler incoming | |
| outgoing | back to summary |
|---|---|
| private volatile ClientHttp1StreamHandler outgoing | |
| outputChannel | back to summary |
|---|---|
| private final Http1StreamChannel<HttpRequest> outputChannel | |
| pipeline | back to summary |
|---|---|
| private final Queue<ClientHttp1StreamHandler> pipeline | |
| streamListener | back to summary |
|---|---|
| private final Http1StreamListener streamListener | |
| ClientHttp1StreamDuplexer | back to summary |
|---|---|
| public ClientHttp1StreamDuplexer(final ProtocolIOSession ioSession, final HttpProcessor httpProcessor, final Http1Config http1Config, final CharCodingConfig charCodingConfig, final ConnectionReuseStrategy connectionReuseStrategy, final NHttpMessageParser<HttpResponse> incomingMessageParser, final NHttpMessageWriter<HttpRequest> outgoingMessageWriter, final ContentLengthStrategy incomingContentStrategy, final ContentLengthStrategy outgoingContentStrategy, final Http1StreamListener streamListener) | |
| appendState | back to summary |
|---|---|
| pack-priv void appendState(final StringBuilder buf) Overrides org.
| |
| consumeData | back to summary |
|---|---|
| pack-priv void consumeData(final ByteBuffer src) throws HttpException, IOException Implements abstract org.
| |
| consumeHeader | back to summary |
|---|---|
| pack-priv void consumeHeader(final HttpResponse response, final EntityDetails entityDetails) throws HttpException, IOException Implements abstract org.
| |
| createContentDecoder | back to summary |
|---|---|
| protected ContentDecoder createContentDecoder(final long len, final ReadableByteChannel channel, final SessionInputBuffer buffer, final BasicHttpTransportMetrics metrics) throws HttpException Implements abstract org.
| |
| createContentEncoder | back to summary |
|---|---|
| protected ContentEncoder createContentEncoder(final long len, final WritableByteChannel channel, final SessionOutputBuffer buffer, final BasicHttpTransportMetrics metrics) throws HttpException Implements abstract org.
| |
| dataEnd | back to summary |
|---|---|
| pack-priv void dataEnd(final List<? extends Header> trailers) throws HttpException, IOException Implements abstract org.
| |
| disconnected | back to summary |
|---|---|
| pack-priv void disconnected() Implements abstract org.
| |
| execute | back to summary |
|---|---|
| pack-priv void execute(final RequestExecutionCommand executionCommand) throws HttpException, IOException Implements abstract org.
| |
| handleIncomingMessage | back to summary |
|---|---|
| protected boolean handleIncomingMessage(final HttpResponse response) throws HttpException Implements abstract org.
| |
| handleOutgoingMessage | back to summary |
|---|---|
| protected boolean handleOutgoingMessage(final HttpRequest request) throws HttpException Implements abstract org.
| |
| handleTimeout | back to summary |
|---|---|
| pack-priv boolean handleTimeout() Implements abstract org.
| |
| inputEnd | back to summary |
|---|---|
| pack-priv void inputEnd() throws HttpException, IOException Implements abstract org.
| |
| inputIdle | back to summary |
|---|---|
| pack-priv boolean inputIdle() Implements abstract org.
| |
| isOutputReady | back to summary |
|---|---|
| pack-priv boolean isOutputReady() Implements abstract org.
| |
| outputEnd | back to summary |
|---|---|
| pack-priv void outputEnd() throws HttpException, IOException Implements abstract org.
| |
| outputIdle | back to summary |
|---|---|
| pack-priv boolean outputIdle() Implements abstract org.
| |
| produceOutput | back to summary |
|---|---|
| pack-priv void produceOutput() throws HttpException, IOException Implements abstract org.
| |
| terminate | back to summary |
|---|---|
| pack-priv void terminate(final Exception exception) Implements abstract org.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| updateCapacity | back to summary |
|---|---|
| pack-priv void updateCapacity(final CapacityChannel capacityChannel) throws HttpException, IOException Implements abstract org.
| |
| updateInputMetrics | back to summary |
|---|---|
| pack-priv void updateInputMetrics(final HttpResponse response, final BasicHttpConnectionMetrics connMetrics) Implements abstract org.
| |
| updateOutputMetrics | back to summary |
|---|---|
| pack-priv void updateOutputMetrics(final HttpRequest request, final BasicHttpConnectionMetrics connMetrics) Implements abstract org.
| |