Package io.netty.handler.codec.spdy
Class SpdyFrameEncoder
- java.lang.Object
-
- io.netty.handler.codec.spdy.SpdyFrameEncoder
-
public class SpdyFrameEncoder extends 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 io.netty.buffer.ByteBufencodeDataFrame(io.netty.buffer.ByteBufAllocator allocator, int streamId, boolean last, io.netty.buffer.ByteBuf data)io.netty.buffer.ByteBufencodeGoAwayFrame(io.netty.buffer.ByteBufAllocator allocator, int lastGoodStreamId, int statusCode)io.netty.buffer.ByteBufencodeHeadersFrame(io.netty.buffer.ByteBufAllocator allocator, int streamId, boolean last, io.netty.buffer.ByteBuf headerBlock)io.netty.buffer.ByteBufencodePingFrame(io.netty.buffer.ByteBufAllocator allocator, int id)io.netty.buffer.ByteBufencodeRstStreamFrame(io.netty.buffer.ByteBufAllocator allocator, int streamId, int statusCode)io.netty.buffer.ByteBufencodeSettingsFrame(io.netty.buffer.ByteBufAllocator allocator, SpdySettingsFrame spdySettingsFrame)io.netty.buffer.ByteBufencodeSynReplyFrame(io.netty.buffer.ByteBufAllocator allocator, int streamId, boolean last, io.netty.buffer.ByteBuf headerBlock)io.netty.buffer.ByteBufencodeSynStreamFrame(io.netty.buffer.ByteBufAllocator allocator, int streamId, int associatedToStreamId, byte priority, boolean last, boolean unidirectional, io.netty.buffer.ByteBuf headerBlock)io.netty.buffer.ByteBufencodeUnknownFrame(io.netty.buffer.ByteBufAllocator allocator, int frameType, byte flags, io.netty.buffer.ByteBuf data)io.netty.buffer.ByteBufencodeWindowUpdateFrame(io.netty.buffer.ByteBufAllocator allocator, int streamId, int deltaWindowSize)protected voidwriteControlFrameHeader(io.netty.buffer.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(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)
-
-