public interface ClientConnection extends Channel
Modifier and Type | Method and Description |
---|---|
org.xnio.Pool<ByteBuffer> |
getBufferPool() |
org.xnio.ChannelListener.Setter<? extends ClientConnection> |
getCloseSetter() |
org.xnio.XnioIoThread |
getIoThread() |
SocketAddress |
getLocalAddress() |
<A extends SocketAddress> |
getLocalAddress(Class<A> type) |
<T> T |
getOption(org.xnio.Option<T> option) |
SocketAddress |
getPeerAddress() |
<A extends SocketAddress> |
getPeerAddress(Class<A> type) |
org.xnio.XnioWorker |
getWorker() |
boolean |
isOpen() |
boolean |
isUpgraded() |
org.xnio.StreamConnection |
performUpgrade()
Upgrade the connection, if the underlying protocol supports it.
|
void |
sendRequest(ClientRequest request,
ClientCallback<ClientExchange> clientCallback)
Sends a client request.
|
<T> T |
setOption(org.xnio.Option<T> option,
T value) |
boolean |
supportsOption(org.xnio.Option<?> option) |
void sendRequest(ClientRequest request, ClientCallback<ClientExchange> clientCallback)
clientCallback
is invoked to provide the caller with the ClientExchange
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.request
- The request to send.org.xnio.StreamConnection performUpgrade() throws IOException
IOException
org.xnio.Pool<ByteBuffer> getBufferPool()
SocketAddress getPeerAddress()
<A extends SocketAddress> A getPeerAddress(Class<A> type)
org.xnio.ChannelListener.Setter<? extends ClientConnection> getCloseSetter()
SocketAddress getLocalAddress()
<A extends SocketAddress> A getLocalAddress(Class<A> type)
org.xnio.XnioWorker getWorker()
org.xnio.XnioIoThread getIoThread()
boolean supportsOption(org.xnio.Option<?> option)
<T> T getOption(org.xnio.Option<T> option) throws IOException
IOException
<T> T setOption(org.xnio.Option<T> option, T value) throws IllegalArgumentException, IOException
IllegalArgumentException
IOException
boolean isUpgraded()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.