Class SpdyHttpResponseStreamIdHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelDuplexHandler
io.netty.handler.codec.MessageToMessageCodec<Object, HttpMessage>
io.netty.handler.codec.spdy.SpdyHttpResponseStreamIdHandler
- All Implemented Interfaces:
ChannelHandler, ChannelInboundHandler, ChannelOutboundHandler
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.-
Nested Class Summary
Nested classes/interfaces inherited from interface ChannelHandler
ChannelHandler.Sharable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif and only if the specified message can be decoded by this codec.protected voiddecode(ChannelHandlerContext ctx, Object msg, List<Object> out) protected voidencode(ChannelHandlerContext ctx, HttpMessage msg, List<Object> out) Methods inherited from class MessageToMessageCodec
acceptOutboundMessage, channelRead, channelReadComplete, writeMethods inherited from class ChannelDuplexHandler
bind, close, connect, deregister, disconnect, flush, readMethods inherited from class ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredMethods inherited from class ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ChannelHandler
handlerAdded, handlerRemoved
-
Constructor Details
-
SpdyHttpResponseStreamIdHandler
public SpdyHttpResponseStreamIdHandler()
-
-
Method Details
-
acceptInboundMessage
Description copied from class:MessageToMessageCodecReturnstrueif and only if the specified message can be decoded by this codec.- Overrides:
acceptInboundMessagein classMessageToMessageCodec<Object, HttpMessage>- Parameters:
msg- the message- Throws:
Exception
-
encode
protected void encode(ChannelHandlerContext ctx, HttpMessage msg, List<Object> out) throws Exception - Specified by:
encodein classMessageToMessageCodec<Object, HttpMessage>- Throws:
Exception- See Also:
-
decode
- Specified by:
decodein classMessageToMessageCodec<Object, HttpMessage>- Throws:
Exception- See Also:
-