public class SpdyHttpResponseStreamIdHandler extends 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.ChannelHandler.Sharable, ChannelHandler.Skip
Constructor and Description |
---|
SpdyHttpResponseStreamIdHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptInboundMessage(Object msg)
Returns
true if and only if the specified message can be decoded by this codec. |
protected void |
decode(ChannelHandlerContext ctx,
Object msg,
List<Object> out) |
protected void |
encode(ChannelHandlerContext ctx,
HttpMessage msg,
List<Object> out) |
acceptOutboundMessage, channelRead, write
bind, channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, close, connect, deregister, disconnect, exceptionCaught, flush, handlerAdded, handlerRemoved, isSharable, read, userEventTriggered
public boolean acceptInboundMessage(Object msg) throws Exception
MessageToMessageCodec
true
if and only if the specified message can be decoded by this codec.acceptInboundMessage
in class MessageToMessageCodec<Object,HttpMessage>
msg
- the messageException
protected void encode(ChannelHandlerContext ctx, HttpMessage msg, List<Object> out) throws Exception
encode
in class MessageToMessageCodec<Object,HttpMessage>
Exception
MessageToMessageEncoder.encode(ChannelHandlerContext, Object, List)
protected void decode(ChannelHandlerContext ctx, Object msg, List<Object> out) throws Exception
decode
in class MessageToMessageCodec<Object,HttpMessage>
Exception
MessageToMessageDecoder.decode(ChannelHandlerContext, Object, List)
Copyright © 2008–2015 The Netty Project. All rights reserved.