| Modifier and Type | Field and Description |
|---|---|
| private AjpReadListener | |
| private SSLSessionInfo | |
| private WriteReadyHandler. |
| Access | Constructor and Description |
|---|---|
| public | AjpServerConnection(StreamConnection channel, ByteBufferPool bufferPool, HttpHandler rootHandler, OptionMap undertowOptions, int bufferSize)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | clearChannel()
Overrides io. Resets the channel to its original state, effectively disabling all current conduit wrappers. |
| protected void | exchangeComplete(HttpServerExchange exchange)
Implements abstract io. Invoked when the exchange is complete. |
| protected StreamSinkConduit | getSinkConduit(HttpServerExchange exchange, StreamSinkConduit conduit)
Implements abstract io. Gets the sink conduit that should be used for this request. |
| public SSLSessionInfo | getSslSessionInfo()
Implements abstract io. Gets SSL information about the connection. |
| public String | getTransportProtocol()
Implements abstract io. Returns a string representation describing the protocol used to transmit messages on this connection. |
| protected boolean | |
| public boolean | isContinueResponseSupported()
Implements abstract io.
|
| public boolean | |
| protected boolean | |
| public AbstractServerConnection. | resetChannel()
Overrides io. Resets the channel to its original state, effectively disabling all current conduit wrappers. |
| public void | restoreChannel(AbstractServerConnection.
The original state stateOverrides io. Restores the channel conduits to a previous state. |
| public HttpServerExchange | sendOutOfBandResponse(HttpServerExchange
The current exchange exchange)Implements abstract io. Sends an out of band response, such as a HTTP 100-continue response. |
| pack-priv void | |
| protected void | setConnectListener(HttpUpgradeListener connectListener)
Implements abstract io.
|
| pack-priv void | |
| public void | setSslSessionInfo(SSLSessionInfo
The ssl session information sessionInfo)Implements abstract io. Sets the current SSL information. |
| pack-priv void | |
| public void | terminateRequestChannel(HttpServerExchange
The current exchange. exchange)Implements abstract io. Invoked when the exchange is complete, and there is still data in the request channel. |
| protected StreamConnection | upgradeChannel()
Implements abstract io. Upgrade the connection, if allowed |
| ajpReadListener | back to summary |
|---|---|
| private AjpReadListener ajpReadListener | |
| sslSessionInfo | back to summary |
|---|---|
| private SSLSessionInfo sslSessionInfo | |
| writeReadyHandler | back to summary |
|---|---|
| private WriteReadyHandler. | |
| AjpServerConnection | back to summary |
|---|---|
| public AjpServerConnection(StreamConnection channel, ByteBufferPool bufferPool, HttpHandler rootHandler, OptionMap undertowOptions, int bufferSize) | |
| clearChannel | back to summary |
|---|---|
| public void clearChannel() Overrides io. Doc from io. Resets the channel to its original state, effectively disabling all current conduit wrappers. The current state is lost.
| |
| exchangeComplete | back to summary |
|---|---|
| protected void exchangeComplete(HttpServerExchange exchange) Implements abstract io. Doc from io. Invoked when the exchange is complete.
| |
| getSinkConduit | back to summary |
|---|---|
| protected StreamSinkConduit getSinkConduit(HttpServerExchange exchange, StreamSinkConduit conduit) Implements abstract io. Doc from io. Gets the sink conduit that should be used for this request. This allows the connection to apply any per-request conduit wrapping that is required, without adding to the response wrappers array. There is no corresponding method for source conduits, as in general conduits can be directly inserted into the connection after the request has been read.
| |
| getSslSessionInfo | back to summary |
|---|---|
| public SSLSessionInfo getSslSessionInfo() Implements abstract io. Doc from io. Gets SSL information about the connection. This could represent the actual client connection, or could be providing SSL information that was provided by a front end proxy.
| |
| getTransportProtocol | back to summary |
|---|---|
| public String getTransportProtocol() Implements abstract io. Doc from io. Returns a string representation describing the protocol used to transmit messages on this connection. | |
| isConnectSupported | back to summary |
|---|---|
| protected boolean isConnectSupported() Implements abstract io.
| |
| isContinueResponseSupported | back to summary |
|---|---|
| public boolean isContinueResponseSupported() Implements abstract io.
| |
| isRequestTrailerFieldsSupported | back to summary |
|---|---|
| public boolean isRequestTrailerFieldsSupported() Implements abstract io.
| |
| isUpgradeSupported | back to summary |
|---|---|
| protected boolean isUpgradeSupported() Implements abstract io.
| |
| resetChannel | back to summary |
|---|---|
| public AbstractServerConnection. Overrides io. Doc from io. Resets the channel to its original state, effectively disabling all current conduit
wrappers. The current state is encapsulated inside a
| |
| restoreChannel | back to summary |
|---|---|
| public void restoreChannel(AbstractServerConnection. Overrides io. Doc from io. Restores the channel conduits to a previous state.
| |
| sendOutOfBandResponse | back to summary |
|---|---|
| public HttpServerExchange sendOutOfBandResponse(HttpServerExchange exchange) Implements abstract io. Doc from io. Sends an out of band response, such as a HTTP 100-continue response. Warning do not attempt to write to the current exchange until the out of band exchange has been fully written. Doing so may have unexpected results. Todo this needs more thought.
| |
| setAjpReadListener | back to summary |
|---|---|
| pack-priv void setAjpReadListener(AjpReadListener ajpReadListener) | |
| setConnectListener | back to summary |
|---|---|
| protected void setConnectListener(HttpUpgradeListener connectListener) Implements abstract io.
| |
| setCurrentExchange | back to summary |
|---|---|
| pack-priv void setCurrentExchange(HttpServerExchange exchange) | |
| setSslSessionInfo | back to summary |
|---|---|
| public void setSslSessionInfo(SSLSessionInfo sessionInfo) Implements abstract io. Doc from io. Sets the current SSL information. This can be used by handlers to setup SSL information that was provided by a front end proxy. If this is being set of a per request basis then you must ensure that it is either cleared by an exchange completion listener at the end of the request, or is always set for every request. Otherwise it is possible to SSL information to 'leak' between requests.
| |
| setSSLSessionInfo | back to summary |
|---|---|
| pack-priv void setSSLSessionInfo(BasicSSLSessionInfo sslSessionInfo) | |
| terminateRequestChannel | back to summary |
|---|---|
| public void terminateRequestChannel(HttpServerExchange exchange) Implements abstract io. Doc from io. Invoked when the exchange is complete, and there is still data in the request channel. Some implementations (such as SPDY and HTTP2) have more efficient ways to drain the request than simply reading all data (e.g. RST_STREAM). After this method is invoked the stream will be drained normally.
| |
| upgradeChannel | back to summary |
|---|---|
| protected StreamConnection upgradeChannel() Implements abstract io. Doc from io. Upgrade the connection, if allowed
| |