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() |
<A extends SocketAddress> |
getPeerAddress(Class<A> type) |
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, removeAttachment
org.xnio.Pool<ByteBuffer> getBufferPool()
org.xnio.XnioWorker getWorker()
getWorker
in interface org.xnio.channels.CloseableChannel
org.xnio.XnioIoThread getIoThread()
getIoThread
in interface org.xnio.channels.CloseableChannel
HttpServerExchange 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.Configurable
IOException
<T> T setOption(org.xnio.Option<T> option, T value) throws IllegalArgumentException, IOException
setOption
in interface org.xnio.channels.Configurable
IllegalArgumentException
IOException
void close() throws IOException
close
in interface AutoCloseable
close
in interface Channel
close
in interface Closeable
close
in interface org.xnio.channels.CloseableChannel
close
in interface InterruptibleChannel
IOException
SocketAddress getPeerAddress()
getPeerAddress
in interface org.xnio.channels.ConnectedChannel
<A extends SocketAddress> A getPeerAddress(Class<A> type)
getPeerAddress
in interface org.xnio.channels.ConnectedChannel
SocketAddress getLocalAddress()
getLocalAddress
in interface org.xnio.channels.BoundChannel
<A extends SocketAddress> A getLocalAddress(Class<A> type)
getLocalAddress
in interface org.xnio.channels.BoundChannel
org.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.