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.void
setData
(ChannelBuffer data) Sets the data payload of this frame.toString()
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 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:SpdyDataFrame
Returns the data payload of this frame. If there is no data payloadChannelBuffers.EMPTY_BUFFER
is returned.- Specified by:
getData
in interfaceSpdyDataFrame
-
setData
Description copied from interface:SpdyDataFrame
Sets the data payload of this frame. Ifnull
is specified, the data payload will be set toChannelBuffers.EMPTY_BUFFER
. The data payload cannot exceed 16777215 bytes.- Specified by:
setData
in interfaceSpdyDataFrame
-
toString
-