public class DefaultSpdyDataFrame extends DefaultSpdyStreamFrame 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 |
|---|---|
io.netty.buffer.ByteBuf |
content()
Returns the data payload of this frame.
|
SpdyDataFrame |
copy() |
SpdyDataFrame |
duplicate() |
int |
refCnt() |
boolean |
release() |
boolean |
release(int decrement) |
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() |
SpdyDataFrame |
touch() |
SpdyDataFrame |
touch(Object hint) |
isLast, streamIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisLast, streamIdpublic 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 SpdyDataFrame setStreamId(int streamId)
SpdyStreamFramesetStreamId in interface SpdyDataFramesetStreamId in interface SpdyStreamFramesetStreamId in class DefaultSpdyStreamFramepublic SpdyDataFrame setLast(boolean last)
SpdyStreamFramesetLast in interface SpdyDataFramesetLast in interface SpdyStreamFramesetLast in class DefaultSpdyStreamFramepublic io.netty.buffer.ByteBuf content()
SpdyDataFrameUnpooled.EMPTY_BUFFER is returned.
The data payload cannot exceed 16777215 bytes.content in interface io.netty.buffer.ByteBufHoldercontent in interface SpdyDataFramepublic SpdyDataFrame copy()
copy in interface io.netty.buffer.ByteBufHoldercopy in interface SpdyDataFramepublic SpdyDataFrame duplicate()
duplicate in interface io.netty.buffer.ByteBufHolderduplicate in interface SpdyDataFramepublic int refCnt()
refCnt in interface io.netty.util.ReferenceCountedpublic SpdyDataFrame retain()
retain in interface io.netty.buffer.ByteBufHolderretain in interface SpdyDataFrameretain in interface io.netty.util.ReferenceCountedpublic SpdyDataFrame retain(int increment)
retain in interface io.netty.buffer.ByteBufHolderretain in interface SpdyDataFrameretain in interface io.netty.util.ReferenceCountedpublic SpdyDataFrame touch()
touch in interface io.netty.buffer.ByteBufHoldertouch in interface SpdyDataFrametouch in interface io.netty.util.ReferenceCountedpublic SpdyDataFrame touch(Object hint)
touch in interface io.netty.buffer.ByteBufHoldertouch in interface SpdyDataFrametouch in interface io.netty.util.ReferenceCountedpublic boolean release()
release in interface io.netty.util.ReferenceCountedpublic boolean release(int decrement)
release in interface io.netty.util.ReferenceCountedCopyright © 2008–2015 The Netty Project. All rights reserved.