Class SpdyFrameEncoder

java.lang.Object
io.netty.handler.codec.spdy.SpdyFrameEncoder

public class SpdyFrameEncoder extends Object
Encodes a SPDY Frame into a ByteBuf.
  • Field Details

    • version

      private final int version
  • Constructor Details

    • SpdyFrameEncoder

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

    • writeControlFrameHeader

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

      public ByteBuf encodeDataFrame(ByteBufAllocator allocator, int streamId, boolean last, ByteBuf data)
    • encodeSynStreamFrame

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

      public ByteBuf encodeSynReplyFrame(ByteBufAllocator allocator, int streamId, boolean last, ByteBuf headerBlock)
    • encodeRstStreamFrame

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

      public ByteBuf encodeSettingsFrame(ByteBufAllocator allocator, SpdySettingsFrame spdySettingsFrame)
    • encodePingFrame

      public ByteBuf encodePingFrame(ByteBufAllocator allocator, int id)
    • encodeGoAwayFrame

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

      public ByteBuf encodeHeadersFrame(ByteBufAllocator allocator, int streamId, boolean last, ByteBuf headerBlock)
    • encodeWindowUpdateFrame

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