| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBufferPool | |
| private final ClientStatistics | |
| private static final int | |
| private static final int | |
| private final List | |
| private final ChannelListener. | |
| private final AjpClientChannel | |
| private AjpClientExchange | |
| private static final Logger | |
| private final OptionMap | |
| private final Deque | |
| public final ChannelListener | |
| public final ChannelListener | |
| private int | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | AjpClientConnection(final AjpClientChannel connection, final OptionMap options, final ByteBufferPool bufferPool, ClientStatistics clientStatistics)
|
| 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. |
| public ByteBufferPool | |
| public ChannelListener. | |
| 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 boolean | |
| public StreamConnection | performUpgrade()
Implements io. Upgrade the connection, if the underlying protocol supports it. |
| public void | |
| public void | |
| public void | sendPing(ClientConnection.
Overrides default io.
|
| 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 | |
| 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 AjpClientChannel connection | |
| currentRequest | back to summary |
|---|---|
| private AjpClientExchange currentRequest | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| options | back to summary |
|---|---|
| private final OptionMap options | |
| pendingQueue | back to summary |
|---|---|
| private final Deque<AjpClientExchange> pendingQueue | |
| requestFinishListener | back to summary |
|---|---|
| public final ChannelListener<AjpClientRequestClientStreamSinkChannel> requestFinishListener | |
| responseFinishedListener | back to summary |
|---|---|
| public final ChannelListener<AjpClientResponseStreamSourceChannel> 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 | |
| AjpClientConnection | back to summary |
|---|---|
| pack-priv AjpClientConnection(final AjpClientChannel connection, final OptionMap options, final ByteBufferPool bufferPool, ClientStatistics clientStatistics) | |
| 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
| |
| getBufferPool | back to summary |
|---|---|
| public ByteBufferPool getBufferPool() Implements io.
| |
| getCloseSetter | back to summary |
|---|---|
| public ChannelListener. Implements io.
| |
| 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(IOException exception) | |
| handleFailedFlush | back to summary |
|---|---|
| private void handleFailedFlush(AjpClientRequestClientStreamSinkChannel sinkChannel) | |
| initiateRequest | back to summary |
|---|---|
| private void initiateRequest(AjpClientExchange AjpClientExchange) | |
| 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.
| |
| isPingSupported | back to summary |
|---|---|
| public boolean isPingSupported() Overrides default io.
| |
| 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.
| |
| requestClose | back to summary |
|---|---|
| public void requestClose() | |
| requestDone | back to summary |
|---|---|
| public void requestDone() Notification that the current request is finished | |
| sendPing | back to summary |
|---|---|
| public void sendPing(ClientConnection. Overrides default io.
| |
| 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(AjpClientChannel
the channel event channel)Implements org. Handle the event on this channel. |
| ClientReceiveListener | back to summary |
|---|---|
| pack-priv ClientReceiveListener() | |
| handleEvent | back to summary |
|---|---|
| public void handleEvent(AjpClientChannel channel) Implements org. Doc from org. Handle the event on this channel.
| |