public final class HttpServerConnection extends AbstractServerConnection implements ServerConnection
AbstractServerConnection.ConduitStateServerConnection.CloseListenerbufferPool, channel, closeListeners, closeSetter, extraBytes, originalSinkConduit, originalSourceConduit, rootHandler, undertowOptions| Constructor and Description |
|---|
HttpServerConnection(org.xnio.StreamConnection channel,
org.xnio.Pool<ByteBuffer> bufferPool,
HttpHandler rootHandler,
org.xnio.OptionMap undertowOptions,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
SSLSession |
getSslSession() |
SSLSessionInfo |
getSslSessionInfo()
Gets SSL information about the connection.
|
HttpServerExchange |
sendOutOfBandResponse(HttpServerExchange exchange)
Sends an out of band response, such as a HTTP 100-continue response.
|
void |
setSslSessionInfo(SSLSessionInfo sessionInfo)
Sets the current SSL information.
|
void |
ungetRequestBytes(org.xnio.Pooled<ByteBuffer> unget)
Pushes back the given data.
|
org.xnio.StreamConnection |
upgradeChannel()
Upgrade the connection, if allowed
|
addCloseListener, close, getBufferPool, getBufferSize, getChannel, getCloseSetter, getExtraBytes, getIoThread, getLocalAddress, getLocalAddress, getOption, getOriginalSinkConduit, getOriginalSourceConduit, getPeerAddress, getPeerAddress, getRootHandler, getSinkChannel, getSourceChannel, getUndertowOptions, getWorker, isOpen, resetChannel, restoreChannel, setExtraBytes, setOption, sink, source, supportsOptionaddToAttachmentList, getAttachment, getAttachmentList, putAttachment, removeAttachmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCloseListener, close, getBufferPool, getBufferSize, getIoThread, getLocalAddress, getLocalAddress, getOption, getPeerAddress, getPeerAddress, getSinkChannel, getSourceChannel, getUndertowOptions, getWorker, isOpen, setOption, supportsOptionaddToAttachmentList, getAttachment, getAttachmentList, putAttachment, removeAttachmentpublic HttpServerConnection(org.xnio.StreamConnection channel,
org.xnio.Pool<ByteBuffer> bufferPool,
HttpHandler rootHandler,
org.xnio.OptionMap undertowOptions,
int bufferSize)
public HttpServerExchange sendOutOfBandResponse(HttpServerExchange exchange)
ServerConnectionsendOutOfBandResponse in interface ServerConnectionexchange - The current exchangepublic void ungetRequestBytes(org.xnio.Pooled<ByteBuffer> unget)
unget - The buffer to push backpublic SSLSessionInfo getSslSessionInfo()
ServerConnectiongetSslSessionInfo in interface ServerConnectionpublic void setSslSessionInfo(SSLSessionInfo sessionInfo)
ServerConnectionsetSslSessionInfo in interface ServerConnectionsessionInfo - The ssl session informationpublic SSLSession getSslSession()
public org.xnio.StreamConnection upgradeChannel()
ServerConnectionupgradeChannel in interface ServerConnectionCopyright © 2013 JBoss by Red Hat. All Rights Reserved.