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 TypeMethodDescriptionboolean
Returnstrue
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) 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:MessageToMessageCodec
Returnstrue
if and only if the specified message can be decoded by this codec.- Overrides:
acceptInboundMessage
in classMessageToMessageCodec<Object,
HttpMessage> - Parameters:
msg
- the message- Throws:
Exception
-
encode
protected void encode(ChannelHandlerContext ctx, HttpMessage msg, List<Object> out) throws Exception - Specified by:
encode
in classMessageToMessageCodec<Object,
HttpMessage> - Throws:
Exception
- See Also:
-
decode
- Specified by:
decode
in classMessageToMessageCodec<Object,
HttpMessage> - Throws:
Exception
- See Also:
-