public class SpdyHttpResponseStreamIdHandler extends io.netty.handler.codec.MessageToMessageCodec<Object,HttpMessage>
MessageToMessageCodec that takes care of adding the right SpdyHttpHeaders.Names.STREAM_ID to the
HttpMessage if one is not present. This makes it possible to just re-use plan handlers current used
for HTTP.| Constructor and Description |
|---|
SpdyHttpResponseStreamIdHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptInboundMessage(Object msg) |
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
List<Object> out) |
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
HttpMessage msg,
List<Object> out) |
acceptOutboundMessage, channelRead, writebind, close, connect, deregister, disconnect, flush, readchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic boolean acceptInboundMessage(Object msg) throws Exception
acceptInboundMessage in class io.netty.handler.codec.MessageToMessageCodec<Object,HttpMessage>Exceptionprotected void encode(io.netty.channel.ChannelHandlerContext ctx,
HttpMessage msg,
List<Object> out)
throws Exception
encode in class io.netty.handler.codec.MessageToMessageCodec<Object,HttpMessage>ExceptionCopyright © 2008–2022 The Netty Project. All rights reserved.