Package io.netty.handler.codec.spdy
Class SpdyFrameEncoder
- java.lang.Object
-
- io.netty.handler.codec.spdy.SpdyFrameEncoder
-
public class SpdyFrameEncoder extends java.lang.Object
Encodes a SPDY Frame into aByteBuf
.
-
-
Constructor Summary
Constructors Constructor Description SpdyFrameEncoder(SpdyVersion spdyVersion)
Creates a new instance with the specifiedspdyVersion
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteBuf
encodeDataFrame(ByteBufAllocator allocator, int streamId, boolean last, ByteBuf data)
ByteBuf
encodeGoAwayFrame(ByteBufAllocator allocator, int lastGoodStreamId, int statusCode)
ByteBuf
encodeHeadersFrame(ByteBufAllocator allocator, int streamId, boolean last, ByteBuf headerBlock)
ByteBuf
encodePingFrame(ByteBufAllocator allocator, int id)
ByteBuf
encodeRstStreamFrame(ByteBufAllocator allocator, int streamId, int statusCode)
ByteBuf
encodeSettingsFrame(ByteBufAllocator allocator, SpdySettingsFrame spdySettingsFrame)
ByteBuf
encodeSynReplyFrame(ByteBufAllocator allocator, int streamId, boolean last, ByteBuf headerBlock)
ByteBuf
encodeSynStreamFrame(ByteBufAllocator allocator, int streamId, int associatedToStreamId, byte priority, boolean last, boolean unidirectional, ByteBuf headerBlock)
ByteBuf
encodeUnknownFrame(ByteBufAllocator allocator, int frameType, byte flags, ByteBuf data)
ByteBuf
encodeWindowUpdateFrame(ByteBufAllocator allocator, int streamId, int deltaWindowSize)
protected void
writeControlFrameHeader(ByteBuf buffer, int type, byte flags, int length)
-
-
-
Constructor Detail
-
SpdyFrameEncoder
public SpdyFrameEncoder(SpdyVersion spdyVersion)
Creates a new instance with the specifiedspdyVersion
.
-
-
Method Detail
-
writeControlFrameHeader
protected 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)
-
encodeUnknownFrame
public ByteBuf encodeUnknownFrame(ByteBufAllocator allocator, int frameType, byte flags, ByteBuf data)
-
-