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() |
boolean |
isCompressed() |
boolean |
isLast()
Returns
true if this frame is the last frame to be transmitted
on the stream. |
void |
setCompressed(boolean compressed) |
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) |
String |
toString() |
public DefaultSpdyDataFrame(int streamId)
streamId
- the Stream-ID of this framepublic int getStreamID()
getStreamID
in interface SpdyDataFrame
public int getStreamId()
SpdyDataFrame
getStreamId
in interface SpdyDataFrame
public void setStreamID(int streamId)
setStreamID
in interface SpdyDataFrame
public void setStreamId(int streamId)
SpdyDataFrame
setStreamId
in interface SpdyDataFrame
public boolean isLast()
SpdyDataFrame
true
if this frame is the last frame to be transmitted
on the stream.isLast
in interface SpdyDataFrame
public void setLast(boolean last)
SpdyDataFrame
setLast
in interface SpdyDataFrame
public boolean isCompressed()
isCompressed
in interface SpdyDataFrame
public void setCompressed(boolean compressed)
setCompressed
in interface SpdyDataFrame
public ChannelBuffer getData()
SpdyDataFrame
ChannelBuffers.EMPTY_BUFFER
is returned.getData
in interface 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
in interface SpdyDataFrame
Copyright © 2008-2013 The Netty Project. All Rights Reserved.