Package io.netty.handler.codec.spdy
Class SpdyFrameEncoder
java.lang.Object
io.netty.handler.codec.spdy.SpdyFrameEncoder
Encodes a SPDY Frame into a
ByteBuf
.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSpdyFrameEncoder
(SpdyVersion spdyVersion) Creates a new instance with the specifiedspdyVersion
. -
Method Summary
Modifier and TypeMethodDescriptionencodeDataFrame
(ByteBufAllocator allocator, int streamId, boolean last, ByteBuf data) encodeGoAwayFrame
(ByteBufAllocator allocator, int lastGoodStreamId, int statusCode) encodeHeadersFrame
(ByteBufAllocator allocator, int streamId, boolean last, ByteBuf headerBlock) encodePingFrame
(ByteBufAllocator allocator, int id) encodeRstStreamFrame
(ByteBufAllocator allocator, int streamId, int statusCode) encodeSettingsFrame
(ByteBufAllocator allocator, SpdySettingsFrame spdySettingsFrame) encodeSynReplyFrame
(ByteBufAllocator allocator, int streamId, boolean last, ByteBuf headerBlock) encodeSynStreamFrame
(ByteBufAllocator allocator, int streamId, int associatedToStreamId, byte priority, boolean last, boolean unidirectional, ByteBuf headerBlock) encodeUnknownFrame
(ByteBufAllocator allocator, int frameType, byte flags, ByteBuf data) encodeWindowUpdateFrame
(ByteBufAllocator allocator, int streamId, int deltaWindowSize) protected void
writeControlFrameHeader
(ByteBuf buffer, int type, byte flags, int length)
-
Field Details
-
version
private final int version
-
-
Constructor Details
-
SpdyFrameEncoder
Creates a new instance with the specifiedspdyVersion
.
-
-
Method Details
-
writeControlFrameHeader
-
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
-
encodeSettingsFrame
-
encodePingFrame
-
encodeGoAwayFrame
-
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)
-