public class DefaultSpdyDataFrame extends DefaultSpdyStreamFrame implements SpdyDataFrame
SpdyDataFrame
implementation.构造器和说明 |
---|
DefaultSpdyDataFrame(int streamId)
Creates a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
ChannelBuffer |
getData()
Returns the data payload of this frame.
|
void |
setData(ChannelBuffer data)
Sets the data payload of this frame.
|
java.lang.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
在接口中 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
在接口中 SpdyDataFrame
public java.lang.String toString()
toString
在类中 java.lang.Object