public final class AjpServerConnection extends AbstractServerConnection
AbstractServerConnection.ConduitState
ServerConnection.CloseListener
bufferPool, channel, closeListeners, closeSetter, current, extraBytes, originalSinkConduit, originalSourceConduit, rootHandler, undertowOptions
Constructor and Description |
---|
AjpServerConnection(org.xnio.StreamConnection channel, ByteBufferPool bufferPool, HttpHandler rootHandler, org.xnio.OptionMap undertowOptions, int bufferSize) |
Modifier and Type | Method and Description |
---|---|
void | clearChannel() Resets the channel to its original state, effectively disabling all current conduit wrappers. |
protected void | exchangeComplete(HttpServerExchange exchange) Invoked when the exchange is complete. |
protected org.xnio.conduits.StreamSinkConduit | getSinkConduit(HttpServerExchange exchange, org.xnio.conduits.StreamSinkConduit conduit) Gets the sink conduit that should be used for this request. |
SSLSessionInfo | getSslSessionInfo() Gets SSL information about the connection. |
String | getTransportProtocol() Returns a string representation describing the protocol used to transmit messages on this connection. |
protected boolean | isConnectSupported() |
boolean | isContinueResponseSupported() |
boolean | isRequestTrailerFieldsSupported() |
protected boolean | isUpgradeSupported() |
AbstractServerConnection.ConduitState | resetChannel() Resets the channel to its original state, effectively disabling all current conduit wrappers. |
void | restoreChannel(AbstractServerConnection.ConduitState state) Restores the channel conduits to a previous state. |
HttpServerExchange | sendOutOfBandResponse(HttpServerExchange exchange) Sends an out of band response, such as a HTTP 100-continue response. |
protected void | setConnectListener(HttpUpgradeListener connectListener) |
void | setSslSessionInfo(SSLSessionInfo sessionInfo) Sets the current SSL information. |
void | terminateRequestChannel(HttpServerExchange exchange) Invoked when the exchange is complete, and there is still data in the request channel. |
protected org.xnio.StreamConnection | upgradeChannel() Upgrade the connection, if allowed |
addCloseListener, close, getBufferPool, getBufferSize, getByteBufferPool, getChannel, getCloseSetter, getExtraBytes, getIoThread, getLocalAddress, getLocalAddress, getOption, getOriginalSinkConduit, getOriginalSourceConduit, getPeerAddress, getPeerAddress, getRootHandler, getSinkChannel, getSourceChannel, getUndertowOptions, getWorker, isOpen, maxEntitySizeUpdated, setExtraBytes, setOption, setUpgradeListener, sink, source, supportsOption
getSslSession, isPushSupported, pushResource, pushResource
addToAttachmentList, createAttachmentMap, getAttachment, getAttachmentList, putAttachment, removeAttachment
public AjpServerConnection(org.xnio.StreamConnection channel, ByteBufferPool bufferPool, HttpHandler rootHandler, org.xnio.OptionMap undertowOptions, int bufferSize)
public HttpServerExchange sendOutOfBandResponse(HttpServerExchange exchange)
ServerConnection
sendOutOfBandResponse
in class ServerConnection
exchange
- The current exchangepublic boolean isContinueResponseSupported()
isContinueResponseSupported
in class ServerConnection
true
if this connection supports sending a 100-continue responsepublic void terminateRequestChannel(HttpServerExchange exchange)
ServerConnection
terminateRequestChannel
in class ServerConnection
exchange
- The current exchange.public void restoreChannel(AbstractServerConnection.ConduitState state)
AbstractServerConnection
restoreChannel
in class AbstractServerConnection
state
- The original stateAbstractServerConnection.resetChannel()
public AbstractServerConnection.ConduitState resetChannel()
AbstractServerConnection
AbstractServerConnection.ConduitState
object that can be used the restore the channel.resetChannel
in class AbstractServerConnection
public void clearChannel()
AbstractServerConnection
clearChannel
in class AbstractServerConnection
public SSLSessionInfo getSslSessionInfo()
ServerConnection
getSslSessionInfo
in class ServerConnection
public void setSslSessionInfo(SSLSessionInfo sessionInfo)
ServerConnection
setSslSessionInfo
in class ServerConnection
sessionInfo
- The ssl session informationprotected 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 boolean isConnectSupported()
isConnectSupported
in class ServerConnection
true
if this connection supports the HTTP CONNECT verbprotected void exchangeComplete(HttpServerExchange exchange)
ServerConnection
exchangeComplete
in class ServerConnection
protected void setConnectListener(HttpUpgradeListener connectListener)
setConnectListener
in class ServerConnection
public String getTransportProtocol()
ServerConnection
getTransportProtocol
in class ServerConnection
public boolean isRequestTrailerFieldsSupported()
isRequestTrailerFieldsSupported
in class ServerConnection
Copyright © 2020 JBoss by Red Hat. All rights reserved.