public class DefaultSpdyDataFrame extends DefaultSpdyStreamFrame implements SpdyDataFrame
SpdyDataFrame implementation.| Constructor and Description |
|---|
DefaultSpdyDataFrame(int streamId)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ChannelBuffer |
getData()
Returns the data payload of this frame.
|
void |
setData(ChannelBuffer data)
Sets the data payload of this frame.
|
String |
toString() |
getStreamId, isLast, setLast, setStreamIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetStreamId, isLast, setLast, setStreamIdpublic DefaultSpdyDataFrame(int streamId)
streamId - the Stream-ID of this framepublic ChannelBuffer getData()
SpdyDataFrameChannelBuffers.EMPTY_BUFFER is returned.getData in interface SpdyDataFramepublic void setData(ChannelBuffer data)
SpdyDataFramenull is specified,
the data payload will be set to ChannelBuffers.EMPTY_BUFFER.
The data payload cannot exceed 16777215 bytes.setData in interface SpdyDataFrameCopyright © 2008-2016 The Netty Project. All Rights Reserved.