| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBufferPool | |
| private final HttpClientConnection. | |
| private final ClientStatistics | |
| private static final int | |
| private static final int | |
| private final List | |
| private final ChannelListener. | |
| private final StreamConnection | |
| private HttpClientExchange | |
| private ClientConnection | http2Delegate
The actual connection if this has been upgraded to h2c |
| private boolean | |
| private boolean | |
| private static final Logger | |
| private final OptionMap | |
| private final StreamSinkConduit | |
| private final Deque | |
| private HttpResponseBuilder | |
| private PooledByteBuffer | |
| private final PushBackStreamSourceConduit | |
| private int | |
| private int | |
| public final ConduitListener | |
| public final ConduitListener | |
| private int | |
| private static final int | |
| private static final int | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv | HttpClientConnection(final StreamConnection connection, final OptionMap options, final ByteBufferPool bufferPool)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | addCloseListener(ChannelListener<ClientConnection>
The close listener listener)Implements io. Adds a close listener, than will be invoked with the connection is closed |
| public void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| protected void | |
| public void | |
| public ByteBufferPool | |
| public ChannelListener. | |
| pack-priv StreamConnection | |
| public XnioIoThread | |
| public SocketAddress | |
| public <A extends SocketAddress> A | |
| public <T> T | |
| public SocketAddress | |
| public <A extends SocketAddress> A | |
| public ClientStatistics | |
| public XnioWorker | |
| private void | |
| private void | |
| private void | |
| public boolean | |
| public boolean | isOpen()
Implements io. Tells whether or not this channel is open. |
| public boolean | |
| public boolean | |
| public boolean | |
| public StreamConnection | performUpgrade()
Implements io. Upgrade the connection, if the underlying protocol supports it. |
| private void | |
| public void | |
| public void | sendRequest(final ClientRequest
The request to send. request, final ClientCallback<ClientExchange> clientCallback)Implements io. Sends a client request. |
| public <T> T | |
| public boolean |
| bufferPool | back to summary |
|---|---|
| private final ByteBufferPool bufferPool | |
| clientReadListener | back to summary |
|---|---|
| private final HttpClientConnection. | |
| clientStatistics | back to summary |
|---|---|
| private final ClientStatistics clientStatistics | |
| CLOSE_REQ | back to summary |
|---|---|
| private static final int CLOSE_REQ | |
| CLOSED | back to summary |
|---|---|
| private static final int CLOSED | |
| closeListeners | back to summary |
|---|---|
| private final List<ChannelListener<ClientConnection>> closeListeners | |
| closeSetter | back to summary |
|---|---|
| private final ChannelListener. | |
| connection | back to summary |
|---|---|
| private final StreamConnection connection | |
| currentRequest | back to summary |
|---|---|
| private HttpClientExchange currentRequest | |
| http2Delegate | back to summary |
|---|---|
| private ClientConnection http2Delegate The actual connection if this has been upgraded to h2c | |
| http2Tried | back to summary |
|---|---|
| private boolean http2Tried | |
| http2UpgradeReceived | back to summary |
|---|---|
| private boolean http2UpgradeReceived | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| options | back to summary |
|---|---|
| private final OptionMap options | |
| originalSinkConduit | back to summary |
|---|---|
| private final StreamSinkConduit originalSinkConduit | |
| pendingQueue | back to summary |
|---|---|
| private final Deque<HttpClientExchange> pendingQueue | |
| pendingResponse | back to summary |
|---|---|
| private HttpResponseBuilder pendingResponse | |
| pooledBuffer | back to summary |
|---|---|
| private PooledByteBuffer pooledBuffer | |
| pushBackStreamSourceConduit | back to summary |
|---|---|
| private final PushBackStreamSourceConduit pushBackStreamSourceConduit | |
| read | back to summary |
|---|---|
| private int read | |
| requestCount | back to summary |
|---|---|
| private int requestCount | |
| requestFinishListener | back to summary |
|---|---|
| public final ConduitListener<StreamSinkConduit> requestFinishListener | |
| responseFinishedListener | back to summary |
|---|---|
| public final ConduitListener<StreamSourceConduit> responseFinishedListener | |
| state | back to summary |
|---|---|
| private int state | |
| UPGRADE_REQUESTED | back to summary |
|---|---|
| private static final int UPGRADE_REQUESTED | |
| UPGRADED | back to summary |
|---|---|
| private static final int UPGRADED | |
| written | back to summary |
|---|---|
| private int written | |
| HttpClientConnection | back to summary |
|---|---|
| pack-priv HttpClientConnection(final StreamConnection connection, final OptionMap options, final ByteBufferPool bufferPool) | |
| addCloseListener | back to summary |
|---|---|
| public void addCloseListener(ChannelListener<ClientConnection> listener) Implements io. Doc from io. Adds a close listener, than will be invoked with the connection is closed
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| doHttp2Upgrade | back to summary |
|---|---|
| protected void doHttp2Upgrade() | |
| exchangeDone | back to summary |
|---|---|
| public void exchangeDone() Notification that the current request is finished | |
| getBufferPool | back to summary |
|---|---|
| public ByteBufferPool getBufferPool() Implements io.
| |
| getCloseSetter | back to summary |
|---|---|
| public ChannelListener. Implements io.
| |
| getConnection | back to summary |
|---|---|
| pack-priv StreamConnection getConnection() | |
| getIoThread | back to summary |
|---|---|
| public XnioIoThread getIoThread() Implements io.
| |
| getLocalAddress | back to summary |
|---|---|
| public SocketAddress getLocalAddress() Implements io.
| |
| getLocalAddress | back to summary |
|---|---|
| public <A extends SocketAddress> A getLocalAddress(Class<A> type) Implements io.
| |
| getOption | back to summary |
|---|---|
| public <T> T getOption(Option<T> option) throws IOException Implements io.
| |
| getPeerAddress | back to summary |
|---|---|
| public SocketAddress getPeerAddress() Implements io.
| |
| getPeerAddress | back to summary |
|---|---|
| public <A extends SocketAddress> A getPeerAddress(Class<A> type) Implements io.
| |
| getStatistics | back to summary |
|---|---|
| public ClientStatistics getStatistics() Implements io.
| |
| getWorker | back to summary |
|---|---|
| public XnioWorker getWorker() Implements io.
| |
| handleError | back to summary |
|---|---|
| private void handleError(Throwable exception) | |
| handleError | back to summary |
|---|---|
| private void handleError(IOException exception) | |
| initiateRequest | back to summary |
|---|---|
| private void initiateRequest(HttpClientExchange httpClientExchange) | |
| isMultiplexingSupported | back to summary |
|---|---|
| public boolean isMultiplexingSupported() Implements io.
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements io. Doc from java. Tells whether or not this channel is open.
| |
| isPushSupported | back to summary |
|---|---|
| public boolean isPushSupported() Implements io.
| |
| isUpgraded | back to summary |
|---|---|
| public boolean isUpgraded() Implements io.
| |
| isUpgradeSupported | back to summary |
|---|---|
| public boolean isUpgradeSupported() Implements io.
| |
| performUpgrade | back to summary |
|---|---|
| public StreamConnection performUpgrade() throws IOException Implements io. Doc from io. Upgrade the connection, if the underlying protocol supports it. This should only be called after an upgrade request has been submitted and the target server has accepted the upgrade.
| |
| prepareResponseChannel | back to summary |
|---|---|
| private void prepareResponseChannel(ClientResponse response, ClientExchange exchange) | |
| requestDataSent | back to summary |
|---|---|
| public void requestDataSent() | |
| sendRequest | back to summary |
|---|---|
| public void sendRequest(final ClientRequest request, final ClientCallback<ClientExchange> clientCallback) Implements io. Doc from io. Sends a client request. The request object should not be modified after it has been submitted to the connection.
Request objects can be queued. Once the request is in a state that it is ready to be sent the
If Note that the request header may not be written out until after the callback has been invoked. This allows the client to write out a header with a gathering write if the request contains content.
| |
| setOption | back to summary |
|---|---|
| public <T> T setOption(Option<T> option, T value) throws IllegalArgumentException, IOException Implements io.
| |
| supportsOption | back to summary |
|---|---|
| public boolean supportsOption(Option<?> option) Implements io.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | handleEvent(StreamSourceChannel
the channel event channel)Implements org. Handle the event on this channel. |
| ClientReadListener | back to summary |
|---|---|
| pack-priv ClientReadListener() | |
| handleEvent | back to summary |
|---|---|
| public void handleEvent(StreamSourceChannel channel) Implements org. Doc from org. Handle the event on this channel.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public long | |
| public long | |
| public void |
| ClientStatisticsImpl | back to summary |
|---|---|
| private ClientStatisticsImpl() | |
| getRead | back to summary |
|---|---|
| public long getRead() Implements io.
| |
| getRequests | back to summary |
|---|---|
| public long getRequests() Implements io.
| |
| getWritten | back to summary |
|---|---|
| public long getWritten() Implements io.
| |
| reset | back to summary |
|---|---|
| public void reset() Implements io.
| |