Class DefaultSpdyStreamFrame
java.lang.Object
io.netty.handler.codec.spdy.DefaultSpdyStreamFrame
- All Implemented Interfaces:
SpdyFrame, SpdyStreamFrame
- Direct Known Subclasses:
DefaultSpdyDataFrame, DefaultSpdyHeadersFrame, DefaultSpdyRstStreamFrame
The default
SpdyStreamFrame implementation.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultSpdyStreamFrame(int streamId) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisLast()Returnstrueif this frame is the last frame to be transmitted on the stream.setLast(boolean last) Sets if this frame is the last frame to be transmitted on the stream.setStreamId(int streamId) Sets the Stream-ID of this frame.intstreamId()Returns the Stream-ID of this frame.
-
Constructor Details
-
DefaultSpdyStreamFrame
protected DefaultSpdyStreamFrame(int streamId) Creates a new instance.- Parameters:
streamId- the Stream-ID of this frame
-
-
Method Details
-
streamId
public int streamId()Description copied from interface:SpdyStreamFrameReturns the Stream-ID of this frame.- Specified by:
streamIdin interfaceSpdyStreamFrame
-
setStreamId
Description copied from interface:SpdyStreamFrameSets the Stream-ID of this frame. The Stream-ID must be positive.- Specified by:
setStreamIdin interfaceSpdyStreamFrame
-
isLast
public boolean isLast()Description copied from interface:SpdyStreamFrameReturnstrueif this frame is the last frame to be transmitted on the stream.- Specified by:
isLastin interfaceSpdyStreamFrame
-
setLast
Description copied from interface:SpdyStreamFrameSets if this frame is the last frame to be transmitted on the stream.- Specified by:
setLastin interfaceSpdyStreamFrame
-