public class DefaultSpdyDataFrame extends Object implements SpdyDataFrame
SpdyDataFrame implementation.| Constructor and Description |
|---|
DefaultSpdyDataFrame(int streamId)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
io.netty.buffer.ByteBuf |
getData()
Returns the data payload of this frame.
|
int |
getStreamId()
Returns the Stream-ID of this frame.
|
boolean |
isLast()
Returns
true if this frame is the last frame to be transmitted
on the stream. |
void |
setData(io.netty.buffer.ByteBuf data)
Sets the data payload of this frame.
|
void |
setLast(boolean last)
Sets if this frame is the last frame to be transmitted on the stream.
|
void |
setStreamId(int streamId)
Sets the Stream-ID of this frame.
|
String |
toString() |
public DefaultSpdyDataFrame(int streamId)
streamId - the Stream-ID of this framepublic int getStreamId()
SpdyDataFramegetStreamId in interface SpdyDataFramepublic void setStreamId(int streamId)
SpdyDataFramesetStreamId in interface SpdyDataFramepublic boolean isLast()
SpdyDataFrametrue if this frame is the last frame to be transmitted
on the stream.isLast in interface SpdyDataFramepublic void setLast(boolean last)
SpdyDataFramesetLast in interface SpdyDataFramepublic io.netty.buffer.ByteBuf getData()
SpdyDataFrameUnpooled.EMPTY_BUFFER is returned.getData in interface SpdyDataFramepublic void setData(io.netty.buffer.ByteBuf data)
SpdyDataFramenull is specified,
the data payload will be set to Unpooled.EMPTY_BUFFER.
The data payload cannot exceed 16777215 bytes.setData in interface SpdyDataFrameCopyright © 2008-2012 The Netty Project. All Rights Reserved.