Package io.netty.handler.codec.spdy
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 io.netty.channel.ChannelHandler
ChannelHandler.Sharable -
Field Summary
Fields -
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 io.netty.handler.codec.MessageToMessageCodec
acceptOutboundMessage, channelRead, channelReadComplete, writeMethods inherited from class io.netty.channel.ChannelDuplexHandler
bind, close, connect, deregister, disconnect, flush, readMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Field Details
-
NO_ID
-
ids
-
-
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:
-