public final class HttpServerConnection extends AbstractServerConnection
AbstractServerConnection.ConduitState
ServerConnection.CloseListener
bufferPool, channel, closeListeners, closeSetter, current, 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 |
---|---|
protected void |
exchangeComplete(HttpServerExchange exchange)
Invoked when the exchange is complete.
|
PipeliningBufferingStreamSinkConduit |
getPipelineBuffer() |
io.undertow.server.protocol.http.HttpResponseConduit |
getResponseConduit() |
protected org.xnio.conduits.StreamSinkConduit |
getSinkConduit(HttpServerExchange exchange,
org.xnio.conduits.StreamSinkConduit conduit)
Gets the sink conduit that should be used for this request.
|
SSLSession |
getSslSession() |
SSLSessionInfo |
getSslSessionInfo()
Gets SSL information about the connection.
|
protected HttpUpgradeListener |
getUpgradeListener() |
protected boolean |
isUpgradeSupported() |
HttpServerExchange |
sendOutOfBandResponse(HttpServerExchange exchange)
Sends an out of band response, such as a HTTP 100-continue response.
|
void |
setPipelineBuffer(PipeliningBufferingStreamSinkConduit pipelineBuffer) |
void |
setSslSessionInfo(SSLSessionInfo sessionInfo)
Sets the current SSL information.
|
protected void |
setUpgradeListener(HttpUpgradeListener upgradeListener) |
void |
ungetRequestBytes(org.xnio.Pooled<ByteBuffer> unget)
Pushes back the given data.
|
protected org.xnio.StreamConnection |
upgradeChannel()
Upgrade the connection, if allowed
|
addCloseListener, clearChannel, 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
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 class ServerConnection
exchange
- The current exchangepublic void ungetRequestBytes(org.xnio.Pooled<ByteBuffer> unget)
unget
- The buffer to push backpublic SSLSessionInfo getSslSessionInfo()
ServerConnection
getSslSessionInfo
in class ServerConnection
public void setSslSessionInfo(SSLSessionInfo sessionInfo)
ServerConnection
setSslSessionInfo
in class ServerConnection
sessionInfo
- The ssl session informationpublic SSLSession getSslSession()
protected org.xnio.StreamConnection upgradeChannel()
ServerConnection
upgradeChannel
in class ServerConnection
protected org.xnio.conduits.StreamSinkConduit getSinkConduit(HttpServerExchange exchange, org.xnio.conduits.StreamSinkConduit conduit)
ServerConnection
getSinkConduit
in class ServerConnection
protected boolean isUpgradeSupported()
isUpgradeSupported
in class ServerConnection
protected void exchangeComplete(HttpServerExchange exchange)
ServerConnection
exchangeComplete
in class ServerConnection
public PipeliningBufferingStreamSinkConduit getPipelineBuffer()
public io.undertow.server.protocol.http.HttpResponseConduit getResponseConduit()
protected HttpUpgradeListener getUpgradeListener()
protected void setUpgradeListener(HttpUpgradeListener upgradeListener)
setUpgradeListener
in class AbstractServerConnection
public void setPipelineBuffer(PipeliningBufferingStreamSinkConduit pipelineBuffer)
Copyright © 2014 JBoss by Red Hat. All rights reserved.