Class SpdyFrameEncoder


  • public class SpdyFrameEncoder
    extends java.lang.Object
    Encodes a SPDY Frame into a ByteBuf.
    • Field Detail

      • version

        private final int version
    • Constructor Detail

      • SpdyFrameEncoder

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

      • writeControlFrameHeader

        private void writeControlFrameHeader​(ByteBuf buffer,
                                             int type,
                                             byte flags,
                                             int length)
      • encodeSynStreamFrame

        public ByteBuf encodeSynStreamFrame​(ByteBufAllocator allocator,
                                            int streamId,
                                            int associatedToStreamId,
                                            byte priority,
                                            boolean last,
                                            boolean unidirectional,
                                            ByteBuf headerBlock)
      • encodeRstStreamFrame

        public ByteBuf encodeRstStreamFrame​(ByteBufAllocator allocator,
                                            int streamId,
                                            int statusCode)
      • encodeGoAwayFrame

        public ByteBuf encodeGoAwayFrame​(ByteBufAllocator allocator,
                                         int lastGoodStreamId,
                                         int statusCode)
      • encodeWindowUpdateFrame

        public ByteBuf encodeWindowUpdateFrame​(ByteBufAllocator allocator,
                                               int streamId,
                                               int deltaWindowSize)