public class HttpClientToConnectionBridge<C> extends AbstractHttpConnectionBridge<C>
AbstractHttpConnectionBridge.ConnectionInputSubscriber, AbstractHttpConnectionBridge.State| Modifier and Type | Field and Description |
|---|---|
static io.netty.util.AttributeKey<java.lang.Long> |
KEEP_ALIVE_TIMEOUT_MILLIS_ATTR
This attribute stores the value of any dynamic idle timeout value sent via an HTTP keep alive header.
|
CONNECTION_UPGRADED, connectionInputSubscriber| Constructor and Description |
|---|
HttpClientToConnectionBridge() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
beforeOutboundHeaderWrite(io.netty.handler.codec.http.HttpMessage httpMsg,
io.netty.channel.ChannelPromise promise,
long startTimeNanos) |
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
handlerAdded(io.netty.channel.ChannelHandlerContext ctx) |
protected boolean |
isInboundHeader(java.lang.Object nextItem) |
protected boolean |
isOutboundHeader(java.lang.Object nextItem) |
protected java.lang.Object |
newHttpObject(java.lang.Object nextItem,
io.netty.channel.Channel channel) |
protected void |
onClosedBeforeReceiveComplete(io.netty.channel.Channel channel) |
protected void |
onContentReceiveComplete(long receiveStartTimeNanos) |
protected void |
onContentReceived() |
protected void |
onOutboundLastContentWrite(io.netty.handler.codec.http.LastHttpContent msg,
io.netty.channel.ChannelPromise promise,
long headerWriteStartTimeNanos) |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Object evt) |
getHeaderWriteStartTimeNanos, newConnectionInputSubscriber, onChannelClose, onNewContentSubscriber, resetSubscriptionState, writebind, close, connect, deregister, disconnect, flush, readchannelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaughtpublic static final io.netty.util.AttributeKey<java.lang.Long> KEEP_ALIVE_TIMEOUT_MILLIS_ATTR
HttpClientResponseImpl.getKeepAliveTimeoutSeconds()public void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
throws java.lang.Exception
handlerAdded in interface io.netty.channel.ChannelHandlerhandlerAdded in class io.netty.channel.ChannelHandlerAdapterjava.lang.Exceptionpublic void channelActive(io.netty.channel.ChannelHandlerContext ctx)
throws java.lang.Exception
channelActive in interface io.netty.channel.ChannelInboundHandlerchannelActive in class io.netty.channel.ChannelInboundHandlerAdapterjava.lang.Exceptionprotected void beforeOutboundHeaderWrite(io.netty.handler.codec.http.HttpMessage httpMsg,
io.netty.channel.ChannelPromise promise,
long startTimeNanos)
beforeOutboundHeaderWrite in class AbstractHttpConnectionBridge<C>protected void onOutboundLastContentWrite(io.netty.handler.codec.http.LastHttpContent msg,
io.netty.channel.ChannelPromise promise,
long headerWriteStartTimeNanos)
onOutboundLastContentWrite in class AbstractHttpConnectionBridge<C>public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Object evt)
throws java.lang.Exception
userEventTriggered in interface io.netty.channel.ChannelInboundHandleruserEventTriggered in class AbstractHttpConnectionBridge<C>java.lang.Exceptionprotected void onClosedBeforeReceiveComplete(io.netty.channel.Channel channel)
onClosedBeforeReceiveComplete in class AbstractHttpConnectionBridge<C>protected boolean isInboundHeader(java.lang.Object nextItem)
isInboundHeader in class AbstractHttpConnectionBridge<C>protected boolean isOutboundHeader(java.lang.Object nextItem)
isOutboundHeader in class AbstractHttpConnectionBridge<C>protected java.lang.Object newHttpObject(java.lang.Object nextItem,
io.netty.channel.Channel channel)
newHttpObject in class AbstractHttpConnectionBridge<C>protected void onContentReceived()
onContentReceived in class AbstractHttpConnectionBridge<C>protected void onContentReceiveComplete(long receiveStartTimeNanos)
onContentReceiveComplete in class AbstractHttpConnectionBridge<C>