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
The default
SpdyDataFrame implementation.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetData()Returns the data payload of this frame.voidsetData(ChannelBuffer data) Sets the data payload of this frame.toString()Methods inherited from class org.jboss.netty.handler.codec.spdy.DefaultSpdyStreamFrame
getStreamId, isLast, setLast, setStreamIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jboss.netty.handler.codec.spdy.SpdyStreamFrame
getStreamId, isLast, setLast, setStreamId
-
Field Details
-
data
-
-
Constructor Details
-
DefaultSpdyDataFrame
public DefaultSpdyDataFrame(int streamId) Creates a new instance.- Parameters:
streamId- the Stream-ID of this frame
-
-
Method Details
-
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
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
-