Class SpdyFrameEncoder


  • public class SpdyFrameEncoder
    extends Object
    Encodes a SPDY Frame into a ByteBuf.
    • Constructor Summary

      Constructors 
      Constructor Description
      SpdyFrameEncoder​(SpdyVersion spdyVersion)
      Creates a new instance with the specified spdyVersion.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.netty.buffer.ByteBuf encodeDataFrame​(io.netty.buffer.ByteBufAllocator allocator, int streamId, boolean last, io.netty.buffer.ByteBuf data)  
      io.netty.buffer.ByteBuf encodeGoAwayFrame​(io.netty.buffer.ByteBufAllocator allocator, int lastGoodStreamId, int statusCode)  
      io.netty.buffer.ByteBuf encodeHeadersFrame​(io.netty.buffer.ByteBufAllocator allocator, int streamId, boolean last, io.netty.buffer.ByteBuf headerBlock)  
      io.netty.buffer.ByteBuf encodePingFrame​(io.netty.buffer.ByteBufAllocator allocator, int id)  
      io.netty.buffer.ByteBuf encodeRstStreamFrame​(io.netty.buffer.ByteBufAllocator allocator, int streamId, int statusCode)  
      io.netty.buffer.ByteBuf encodeSettingsFrame​(io.netty.buffer.ByteBufAllocator allocator, SpdySettingsFrame spdySettingsFrame)  
      io.netty.buffer.ByteBuf encodeSynReplyFrame​(io.netty.buffer.ByteBufAllocator allocator, int streamId, boolean last, io.netty.buffer.ByteBuf headerBlock)  
      io.netty.buffer.ByteBuf encodeSynStreamFrame​(io.netty.buffer.ByteBufAllocator allocator, int streamId, int associatedToStreamId, byte priority, boolean last, boolean unidirectional, io.netty.buffer.ByteBuf headerBlock)  
      io.netty.buffer.ByteBuf encodeUnknownFrame​(io.netty.buffer.ByteBufAllocator allocator, int frameType, byte flags, io.netty.buffer.ByteBuf data)  
      io.netty.buffer.ByteBuf encodeWindowUpdateFrame​(io.netty.buffer.ByteBufAllocator allocator, int streamId, int deltaWindowSize)  
      protected void writeControlFrameHeader​(io.netty.buffer.ByteBuf buffer, int type, byte flags, int length)  
    • Constructor Detail

      • SpdyFrameEncoder

        public SpdyFrameEncoder​(SpdyVersion spdyVersion)
        Creates a new instance with the specified spdyVersion.
    • Method Detail

      • writeControlFrameHeader

        protected void writeControlFrameHeader​(io.netty.buffer.ByteBuf buffer,
                                               int type,
                                               byte flags,
                                               int length)
      • encodeDataFrame

        public io.netty.buffer.ByteBuf encodeDataFrame​(io.netty.buffer.ByteBufAllocator allocator,
                                                       int streamId,
                                                       boolean last,
                                                       io.netty.buffer.ByteBuf data)
      • encodeSynStreamFrame

        public io.netty.buffer.ByteBuf encodeSynStreamFrame​(io.netty.buffer.ByteBufAllocator allocator,
                                                            int streamId,
                                                            int associatedToStreamId,
                                                            byte priority,
                                                            boolean last,
                                                            boolean unidirectional,
                                                            io.netty.buffer.ByteBuf headerBlock)
      • encodeSynReplyFrame

        public io.netty.buffer.ByteBuf encodeSynReplyFrame​(io.netty.buffer.ByteBufAllocator allocator,
                                                           int streamId,
                                                           boolean last,
                                                           io.netty.buffer.ByteBuf headerBlock)
      • encodeRstStreamFrame

        public io.netty.buffer.ByteBuf encodeRstStreamFrame​(io.netty.buffer.ByteBufAllocator allocator,
                                                            int streamId,
                                                            int statusCode)
      • encodeSettingsFrame

        public io.netty.buffer.ByteBuf encodeSettingsFrame​(io.netty.buffer.ByteBufAllocator allocator,
                                                           SpdySettingsFrame spdySettingsFrame)
      • encodePingFrame

        public io.netty.buffer.ByteBuf encodePingFrame​(io.netty.buffer.ByteBufAllocator allocator,
                                                       int id)
      • encodeGoAwayFrame

        public io.netty.buffer.ByteBuf encodeGoAwayFrame​(io.netty.buffer.ByteBufAllocator allocator,
                                                         int lastGoodStreamId,
                                                         int statusCode)
      • encodeHeadersFrame

        public io.netty.buffer.ByteBuf encodeHeadersFrame​(io.netty.buffer.ByteBufAllocator allocator,
                                                          int streamId,
                                                          boolean last,
                                                          io.netty.buffer.ByteBuf headerBlock)
      • encodeWindowUpdateFrame

        public io.netty.buffer.ByteBuf encodeWindowUpdateFrame​(io.netty.buffer.ByteBufAllocator allocator,
                                                               int streamId,
                                                               int deltaWindowSize)
      • encodeUnknownFrame

        public io.netty.buffer.ByteBuf encodeUnknownFrame​(io.netty.buffer.ByteBufAllocator allocator,
                                                          int frameType,
                                                          byte flags,
                                                          io.netty.buffer.ByteBuf data)