public class DefaultSpdyDataFrame extends io.netty.buffer.DefaultByteBufHolder implements SpdyDataFrame
SpdyDataFrame implementation.| Constructor and Description |
|---|
DefaultSpdyDataFrame(int streamId)
Creates a new instance.
|
DefaultSpdyDataFrame(int streamId,
io.netty.buffer.ByteBuf data)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
DefaultSpdyDataFrame |
copy() |
int |
getStreamId()
Returns the Stream-ID of this frame.
|
boolean |
isLast()
Returns
true if this frame is the last frame to be transmitted
on the stream. |
SpdyDataFrame |
retain() |
SpdyDataFrame |
retain(int increment) |
SpdyDataFrame |
setLast(boolean last)
Sets if this frame is the last frame to be transmitted on the stream.
|
SpdyDataFrame |
setStreamId(int streamId)
Sets the Stream-ID of this frame.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdatapublic DefaultSpdyDataFrame(int streamId)
streamId - the Stream-ID of this framepublic DefaultSpdyDataFrame(int streamId,
io.netty.buffer.ByteBuf data)
streamId - the Stream-ID of this framedata - the payload of the frame. Can not exceed SpdyCodecUtil.SPDY_MAX_LENGTHpublic int getStreamId()
SpdyStreamFramegetStreamId in interface SpdyStreamFramepublic SpdyDataFrame setStreamId(int streamId)
SpdyStreamFramesetStreamId in interface SpdyDataFramesetStreamId in interface SpdyStreamFramepublic boolean isLast()
SpdyStreamFrametrue if this frame is the last frame to be transmitted
on the stream.isLast in interface SpdyStreamFramepublic SpdyDataFrame setLast(boolean last)
SpdyStreamFramesetLast in interface SpdyDataFramesetLast in interface SpdyStreamFramepublic DefaultSpdyDataFrame copy()
copy in interface io.netty.buffer.ByteBufHoldercopy in interface SpdyDataFramecopy in class io.netty.buffer.DefaultByteBufHolderpublic SpdyDataFrame retain()
retain in interface io.netty.buffer.ByteBufHolderretain in interface io.netty.buffer.ReferenceCountedretain in interface SpdyDataFrameretain in class io.netty.buffer.DefaultByteBufHolderpublic SpdyDataFrame retain(int increment)
retain in interface io.netty.buffer.ByteBufHolderretain in interface io.netty.buffer.ReferenceCountedretain in interface SpdyDataFrameretain in class io.netty.buffer.DefaultByteBufHolderpublic String toString()
toString in class io.netty.buffer.DefaultByteBufHolderCopyright © 2008-2013 The Netty Project. All Rights Reserved.