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, setStreamId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getStreamId, isLast, setLast, setStreamId
public DefaultSpdyDataFrame(int streamId)
streamId
- the Stream-ID of this framepublic ChannelBuffer getData()
SpdyDataFrame
ChannelBuffers.EMPTY_BUFFER
is returned.getData
in interface SpdyDataFrame
public void setData(ChannelBuffer data)
SpdyDataFrame
null
is specified,
the data payload will be set to ChannelBuffers.EMPTY_BUFFER
.
The data payload cannot exceed 16777215 bytes.setData
in interface SpdyDataFrame
Copyright © 2008-2016 The Netty Project. All Rights Reserved.