Class DefaultSpdyStreamFrame
- java.lang.Object
-
- org.jboss.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 defaultSpdyStreamFrameimplementation.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultSpdyStreamFrame(int streamId)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetStreamId()Returns the Stream-ID of this frame.booleanisLast()Returnstrueif this frame is the last frame to be transmitted on the stream.voidsetLast(boolean last)Sets if this frame is the last frame to be transmitted on the stream.voidsetStreamId(int streamId)Sets the Stream-ID of this frame.
-
-
-
Method Detail
-
getStreamId
public int getStreamId()
Description copied from interface:SpdyStreamFrameReturns the Stream-ID of this frame.- Specified by:
getStreamIdin interfaceSpdyStreamFrame
-
setStreamId
public void setStreamId(int streamId)
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
public void setLast(boolean last)
Description copied from interface:SpdyStreamFrameSets if this frame is the last frame to be transmitted on the stream.- Specified by:
setLastin interfaceSpdyStreamFrame
-
-