public class SpdyHttpResponseStreamIdHandler extends MessageToMessageCodec<java.lang.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| 构造器和说明 |
|---|
SpdyHttpResponseStreamIdHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
acceptInboundMessage(java.lang.Object msg)
Returns
true if and only if the specified message can be decoded by this codec. |
protected void |
decode(ChannelHandlerContext ctx,
java.lang.Object msg,
java.util.List<java.lang.Object> out) |
protected void |
encode(ChannelHandlerContext ctx,
HttpMessage msg,
java.util.List<java.lang.Object> out) |
acceptOutboundMessage, channelRead, writebind, close, connect, deregister, disconnect, flush, readchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexceptionCaught, handlerAdded, handlerRemovedpublic boolean acceptInboundMessage(java.lang.Object msg)
throws java.lang.Exception
MessageToMessageCodectrue if and only if the specified message can be decoded by this codec.acceptInboundMessage 在类中 MessageToMessageCodec<java.lang.Object,HttpMessage>msg - the messagejava.lang.Exceptionprotected void encode(ChannelHandlerContext ctx, HttpMessage msg, java.util.List<java.lang.Object> out) throws java.lang.Exception
encode 在类中 MessageToMessageCodec<java.lang.Object,HttpMessage>java.lang.ExceptionMessageToMessageEncoder.encode(ChannelHandlerContext, Object, List)protected void decode(ChannelHandlerContext ctx, java.lang.Object msg, java.util.List<java.lang.Object> out) throws java.lang.Exception
decode 在类中 MessageToMessageCodec<java.lang.Object,HttpMessage>java.lang.ExceptionMessageToMessageDecoder.decode(ChannelHandlerContext, Object, List)