
public class DefaultSpdyDataFrame extends Object 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.
|
int |
getStreamId()
Returns the Stream-ID of this frame.
|
int |
getStreamID()
Deprecated.
|
boolean |
isCompressed()
Deprecated.
|
boolean |
isLast()
Returns
true if this frame is the last frame to be transmitted
on the stream. |
void |
setCompressed(boolean compressed)
Deprecated.
|
void |
setData(ChannelBuffer data)
Sets the data payload of this frame.
|
void |
setLast(boolean last)
Sets if this frame is the last frame to be transmitted on the stream.
|
void |
setStreamId(int streamId)
Sets the Stream-ID of this frame.
|
void |
setStreamID(int streamId)
Deprecated.
|
String |
toString() |
public DefaultSpdyDataFrame(int streamId)
streamId - the Stream-ID of this frame@Deprecated public int getStreamID()
getStreamID in interface SpdyDataFramepublic int getStreamId()
SpdyDataFramegetStreamId in interface SpdyDataFrame@Deprecated public void setStreamID(int streamId)
setStreamID in interface SpdyDataFramepublic void setStreamId(int streamId)
SpdyDataFramesetStreamId in interface SpdyDataFramepublic boolean isLast()
SpdyDataFrametrue if this frame is the last frame to be transmitted
on the stream.isLast in interface SpdyDataFramepublic void setLast(boolean last)
SpdyDataFramesetLast in interface SpdyDataFrame@Deprecated public boolean isCompressed()
isCompressed in interface SpdyDataFrame@Deprecated public void setCompressed(boolean compressed)
setCompressed in interface SpdyDataFramepublic ChannelBuffer getData()
SpdyDataFrameChannelBuffers.EMPTY_BUFFER is returned.getData in interface SpdyDataFramepublic void setData(ChannelBuffer data)
SpdyDataFramenull is specified,
the data payload will be set to ChannelBuffers.EMPTY_BUFFER.
The data payload cannot exceed 16777215 bytes.setData in interface SpdyDataFrameCopyright © 2008-2014 The Netty Project. All Rights Reserved.