public interface ServerConnection extends Attachable, org.xnio.channels.ConnectedChannel
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ServerConnection.CloseListener |
| Modifier and Type | Method and Description |
|---|---|
void |
addCloseListener(ServerConnection.CloseListener listener)
Adds a close listener, than will be invoked with the connection is closed
|
void |
close() |
org.xnio.Pool<ByteBuffer> |
getBufferPool() |
int |
getBufferSize() |
org.xnio.XnioIoThread |
getIoThread() |
SocketAddress |
getLocalAddress() |
<A extends SocketAddress> |
getLocalAddress(Class<A> type) |
<T> T |
getOption(org.xnio.Option<T> option) |
SocketAddress |
getPeerAddress()
Returns the actual address of the remote connection.
|
<A extends SocketAddress> |
getPeerAddress(Class<A> type)
Returns the actual address of the remote connection.
|
org.xnio.conduits.ConduitStreamSinkChannel |
getSinkChannel() |
org.xnio.conduits.ConduitStreamSourceChannel |
getSourceChannel() |
SSLSessionInfo |
getSslSessionInfo()
Gets SSL information about the connection.
|
org.xnio.OptionMap |
getUndertowOptions() |
org.xnio.XnioWorker |
getWorker() |
boolean |
isOpen() |
HttpServerExchange |
sendOutOfBandResponse(HttpServerExchange exchange)
Sends an out of band response, such as a HTTP 100-continue response.
|
<T> T |
setOption(org.xnio.Option<T> option,
T value) |
void |
setSslSessionInfo(SSLSessionInfo sessionInfo)
Sets the current SSL information.
|
boolean |
supportsOption(org.xnio.Option<?> option) |
org.xnio.StreamConnection |
upgradeChannel()
Upgrade the connection, if allowed
|
addToAttachmentList, getAttachment, getAttachmentList, putAttachment, removeAttachmentorg.xnio.Pool<ByteBuffer> getBufferPool()
org.xnio.XnioWorker getWorker()
getWorker in interface org.xnio.channels.CloseableChannelorg.xnio.XnioIoThread getIoThread()
getIoThread in interface org.xnio.channels.CloseableChannelHttpServerExchange sendOutOfBandResponse(HttpServerExchange exchange)
exchange - The current exchangeboolean isOpen()
boolean supportsOption(org.xnio.Option<?> option)
supportsOption in interface org.xnio.channels.Configurable<T> T getOption(org.xnio.Option<T> option)
throws IOException
getOption in interface org.xnio.channels.ConfigurableIOException<T> T setOption(org.xnio.Option<T> option,
T value)
throws IllegalArgumentException,
IOException
setOption in interface org.xnio.channels.ConfigurableIllegalArgumentExceptionIOExceptionvoid close()
throws IOException
close in interface AutoCloseableclose in interface Channelclose in interface Closeableclose in interface org.xnio.channels.CloseableChannelclose in interface InterruptibleChannelIOExceptionSocketAddress getPeerAddress()
getPeerAddress in interface org.xnio.channels.ConnectedChannel<A extends SocketAddress> A getPeerAddress(Class<A> type)
getPeerAddress in interface org.xnio.channels.ConnectedChannelA - The address typetype - The type of address to returnSocketAddress getLocalAddress()
getLocalAddress in interface org.xnio.channels.BoundChannel<A extends SocketAddress> A getLocalAddress(Class<A> type)
getLocalAddress in interface org.xnio.channels.BoundChannelorg.xnio.OptionMap getUndertowOptions()
int getBufferSize()
SSLSessionInfo getSslSessionInfo()
void setSslSessionInfo(SSLSessionInfo sessionInfo)
sessionInfo - The ssl session informationvoid addCloseListener(ServerConnection.CloseListener listener)
listener - The close listenerorg.xnio.StreamConnection upgradeChannel()
org.xnio.conduits.ConduitStreamSinkChannel getSinkChannel()
org.xnio.conduits.ConduitStreamSourceChannel getSourceChannel()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.