Package io.netty.handler.codec.spdy
Class DefaultSpdyStreamFrame
- java.lang.Object
-
- io.netty.handler.codec.spdy.DefaultSpdyStreamFrame
-
- All Implemented Interfaces:
SpdyFrame
,SpdyStreamFrame
- Direct Known Subclasses:
DefaultSpdyDataFrame
,DefaultSpdyHeadersFrame
,DefaultSpdyRstStreamFrame
public abstract class DefaultSpdyStreamFrame extends java.lang.Object implements SpdyStreamFrame
The defaultSpdyStreamFrame
implementation.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DefaultSpdyStreamFrame(int streamId)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isLast()
Returnstrue
if this frame is the last frame to be transmitted on the stream.SpdyStreamFrame
setLast(boolean last)
Sets if this frame is the last frame to be transmitted on the stream.SpdyStreamFrame
setStreamId(int streamId)
Sets the Stream-ID of this frame.int
streamId()
Returns the Stream-ID of this frame.
-
-
-
Method Detail
-
streamId
public int streamId()
Description copied from interface:SpdyStreamFrame
Returns the Stream-ID of this frame.- Specified by:
streamId
in interfaceSpdyStreamFrame
-
setStreamId
public SpdyStreamFrame setStreamId(int streamId)
Description copied from interface:SpdyStreamFrame
Sets the Stream-ID of this frame. The Stream-ID must be positive.- Specified by:
setStreamId
in interfaceSpdyStreamFrame
-
isLast
public boolean isLast()
Description copied from interface:SpdyStreamFrame
Returnstrue
if this frame is the last frame to be transmitted on the stream.- Specified by:
isLast
in interfaceSpdyStreamFrame
-
setLast
public SpdyStreamFrame setLast(boolean last)
Description copied from interface:SpdyStreamFrame
Sets if this frame is the last frame to be transmitted on the stream.- Specified by:
setLast
in interfaceSpdyStreamFrame
-
-