public final class HttpServerConnection extends AbstractServerConnection implements ServerConnection
AbstractServerConnection.ConduitState
ServerConnection.CloseListener
bufferPool, 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, supportsOption
addToAttachmentList, getAttachment, getAttachmentList, putAttachment, removeAttachment
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addCloseListener, close, getBufferPool, getBufferSize, getIoThread, getLocalAddress, getLocalAddress, getOption, getPeerAddress, getPeerAddress, getSinkChannel, getSourceChannel, getUndertowOptions, getWorker, isOpen, setOption, supportsOption
addToAttachmentList, getAttachment, getAttachmentList, putAttachment, removeAttachment
public HttpServerConnection(org.xnio.StreamConnection channel, org.xnio.Pool<ByteBuffer> bufferPool, HttpHandler rootHandler, org.xnio.OptionMap undertowOptions, int bufferSize)
public HttpServerExchange sendOutOfBandResponse(HttpServerExchange exchange)
ServerConnection
sendOutOfBandResponse
in interface ServerConnection
exchange
- The current exchangepublic void ungetRequestBytes(org.xnio.Pooled<ByteBuffer> unget)
unget
- The buffer to push backpublic SSLSessionInfo getSslSessionInfo()
ServerConnection
getSslSessionInfo
in interface ServerConnection
public void setSslSessionInfo(SSLSessionInfo sessionInfo)
ServerConnection
setSslSessionInfo
in interface ServerConnection
sessionInfo
- The ssl session informationpublic SSLSession getSslSession()
public org.xnio.StreamConnection upgradeChannel()
ServerConnection
upgradeChannel
in interface ServerConnection
Copyright © 2013 JBoss by Red Hat. All rights reserved.