public class SpdyFrameEncoder
extends java.lang.Object
ByteBuf
。
Constructor and Description |
---|
SpdyFrameEncoder(SpdyVersion spdyVersion)
用指定的
spdyVersion 创建一个新实例。
|
Modifier and Type | Method and 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 |
encodeWindowUpdateFrame(ByteBufAllocator allocator, int streamId, int deltaWindowSize) |
public SpdyFrameEncoder(SpdyVersion spdyVersion)
spdyVersion
创建一个新的实例。
public ByteBuf encodeDataFrame(ByteBufAllocator allocator, int streamId, boolean last, ByteBuf data)
public ByteBuf encodeSynStreamFrame(ByteBufAllocator allocator, int streamId, int associatedToStreamId, byte priority, boolean last, boolean unidirectional, ByteBuf headerBlock)
public ByteBuf encodeSynReplyFrame(ByteBufAllocator allocator, int streamId, boolean last, ByteBuf headerBlock)
public ByteBuf encodeRstStreamFrame(ByteBufAllocator allocator, int streamId, int statusCode)
public ByteBuf encodeSettingsFrame(ByteBufAllocator allocator, SpdySettingsFrame spdySettingsFrame)
public ByteBuf encodePingFrame(ByteBufAllocator allocator, int id)
public ByteBuf encodeGoAwayFrame(ByteBufAllocator allocator, int lastGoodStreamId, int statusCode)
public ByteBuf encodeHeadersFrame(ByteBufAllocator allocator, int streamId, boolean last, ByteBuf headerBlock)
public ByteBuf encodeWindowUpdateFrame(ByteBufAllocator allocator, int streamId, int deltaWindowSize)
Copyright © 2008–2018 The Netty Project. All rights reserved.