Class DefaultSpdyDataFrame
- java.lang.Object
-
- org.jboss.netty.handler.codec.spdy.DefaultSpdyStreamFrame
-
- org.jboss.netty.handler.codec.spdy.DefaultSpdyDataFrame
-
- All Implemented Interfaces:
SpdyDataFrame,SpdyFrame,SpdyStreamFrame
public class DefaultSpdyDataFrame extends DefaultSpdyStreamFrame implements SpdyDataFrame
The defaultSpdyDataFrameimplementation.
-
-
Field Summary
Fields Modifier and Type Field Description private ChannelBufferdata
-
Constructor Summary
Constructors Constructor Description DefaultSpdyDataFrame(int streamId)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelBuffergetData()Returns the data payload of this frame.voidsetData(ChannelBuffer data)Sets the data payload of this frame.java.lang.StringtoString()-
Methods inherited from class org.jboss.netty.handler.codec.spdy.DefaultSpdyStreamFrame
getStreamId, isLast, setLast, setStreamId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jboss.netty.handler.codec.spdy.SpdyStreamFrame
getStreamId, isLast, setLast, setStreamId
-
-
-
-
Field Detail
-
data
private ChannelBuffer data
-
-
Method Detail
-
getData
public ChannelBuffer getData()
Description copied from interface:SpdyDataFrameReturns the data payload of this frame. If there is no data payloadChannelBuffers.EMPTY_BUFFERis returned.- Specified by:
getDatain interfaceSpdyDataFrame
-
setData
public void setData(ChannelBuffer data)
Description copied from interface:SpdyDataFrameSets the data payload of this frame. Ifnullis specified, the data payload will be set toChannelBuffers.EMPTY_BUFFER. The data payload cannot exceed 16777215 bytes.- Specified by:
setDatain interfaceSpdyDataFrame
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-