Top Description Fields Constructors Methods
io.netty.handler.codec.spdy

public Class SpdyFrameEncoder

extends Object
Class Inheritance
Imports
io.netty.buffer.ByteBuf, .ByteBufAllocator, io.netty.util.internal.ObjectUtil, java.nio.ByteOrder, java.util.Set

Encodes a SPDY Frame into a ByteBuf.

Field Summary

Modifier and TypeField and Description
private final int

Constructor Summary

AccessConstructor and Description
public
SpdyFrameEncoder(SpdyVersion spdyVersion)

Creates a new instance with the specified spdyVersion.

Method Summary

Modifier and TypeMethod and Description
public ByteBuf
encodeDataFrame(ByteBufAllocator allocator, int streamId, boolean last, ByteBuf data)

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

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

public ByteBuf
encodePingFrame(ByteBufAllocator allocator, int id)

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

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

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

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

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

versionback to summary
private final int version

Constructor Detail

SpdyFrameEncoderback to summary
public SpdyFrameEncoder(SpdyVersion spdyVersion)

Creates a new instance with the specified spdyVersion.

Method Detail

encodeDataFrameback to summary
public ByteBuf encodeDataFrame(ByteBufAllocator allocator, int streamId, boolean last, ByteBuf data)
encodeGoAwayFrameback to summary
public ByteBuf encodeGoAwayFrame(ByteBufAllocator allocator, int lastGoodStreamId, int statusCode)
encodeHeadersFrameback to summary
public ByteBuf encodeHeadersFrame(ByteBufAllocator allocator, int streamId, boolean last, ByteBuf headerBlock)
encodePingFrameback to summary
public ByteBuf encodePingFrame(ByteBufAllocator allocator, int id)
encodeRstStreamFrameback to summary
public ByteBuf encodeRstStreamFrame(ByteBufAllocator allocator, int streamId, int statusCode)
encodeSettingsFrameback to summary
public ByteBuf encodeSettingsFrame(ByteBufAllocator allocator, SpdySettingsFrame spdySettingsFrame)
encodeSynReplyFrameback to summary
public ByteBuf encodeSynReplyFrame(ByteBufAllocator allocator, int streamId, boolean last, ByteBuf headerBlock)
encodeSynStreamFrameback to summary
public ByteBuf encodeSynStreamFrame(ByteBufAllocator allocator, int streamId, int associatedToStreamId, byte priority, boolean last, boolean unidirectional, ByteBuf headerBlock)
encodeWindowUpdateFrameback to summary
public ByteBuf encodeWindowUpdateFrame(ByteBufAllocator allocator, int streamId, int deltaWindowSize)
writeControlFrameHeaderback to summary
private void writeControlFrameHeader(ByteBuf buffer, int type, byte flags, int length)