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:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
,io.netty.channel.ChannelOutboundHandler
public class SpdyHttpResponseStreamIdHandler extends io.netty.handler.codec.MessageToMessageCodec<Object,HttpMessage>
MessageToMessageCodec
that takes care of adding the rightSpdyHttpHeaders.Names.STREAM_ID
to theHttpMessage
if one is not present. This makes it possible to just re-use plan handlers current used for HTTP.
-
-
Constructor Summary
Constructors Constructor Description SpdyHttpResponseStreamIdHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class io.netty.handler.codec.MessageToMessageCodec
acceptOutboundMessage, channelRead, channelReadComplete, write
-
Methods inherited from class io.netty.channel.ChannelDuplexHandler
bind, close, connect, deregister, disconnect, flush, read
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Method Detail
-
acceptInboundMessage
public boolean acceptInboundMessage(Object msg) throws Exception
- Overrides:
acceptInboundMessage
in classio.netty.handler.codec.MessageToMessageCodec<Object,HttpMessage>
- Throws:
Exception
-
encode
protected void encode(io.netty.channel.ChannelHandlerContext ctx, HttpMessage msg, List<Object> out) throws Exception
- Specified by:
encode
in classio.netty.handler.codec.MessageToMessageCodec<Object,HttpMessage>
- Throws:
Exception
-
-