Package io.netty.handler.codec.spdy
Class DefaultSpdyRstStreamFrame
- java.lang.Object
-
- io.netty.handler.codec.spdy.DefaultSpdyStreamFrame
-
- io.netty.handler.codec.spdy.DefaultSpdyRstStreamFrame
-
- All Implemented Interfaces:
SpdyFrame,SpdyRstStreamFrame,SpdyStreamFrame
public class DefaultSpdyRstStreamFrame extends DefaultSpdyStreamFrame implements SpdyRstStreamFrame
The defaultSpdyRstStreamFrameimplementation.
-
-
Constructor Summary
Constructors Constructor Description DefaultSpdyRstStreamFrame(int streamId, int statusCode)Creates a new instance.DefaultSpdyRstStreamFrame(int streamId, SpdyStreamStatus status)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpdyRstStreamFramesetLast(boolean last)Sets if this frame is the last frame to be transmitted on the stream.SpdyRstStreamFramesetStatus(SpdyStreamStatus status)Sets the status of this frame.SpdyRstStreamFramesetStreamId(int streamId)Sets the Stream-ID of this frame.SpdyStreamStatusstatus()Returns the status of this frame.java.lang.StringtoString()-
Methods inherited from class io.netty.handler.codec.spdy.DefaultSpdyStreamFrame
isLast, streamId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.netty.handler.codec.spdy.SpdyStreamFrame
isLast, streamId
-
-
-
-
Constructor Detail
-
DefaultSpdyRstStreamFrame
public DefaultSpdyRstStreamFrame(int streamId, int statusCode)Creates a new instance.- Parameters:
streamId- the Stream-ID of this framestatusCode- the Status code of this frame
-
DefaultSpdyRstStreamFrame
public DefaultSpdyRstStreamFrame(int streamId, SpdyStreamStatus status)Creates a new instance.- Parameters:
streamId- the Stream-ID of this framestatus- the status of this frame
-
-
Method Detail
-
setStreamId
public SpdyRstStreamFrame setStreamId(int streamId)
Description copied from interface:SpdyStreamFrameSets the Stream-ID of this frame. The Stream-ID must be positive.- Specified by:
setStreamIdin interfaceSpdyRstStreamFrame- Specified by:
setStreamIdin interfaceSpdyStreamFrame- Overrides:
setStreamIdin classDefaultSpdyStreamFrame
-
setLast
public SpdyRstStreamFrame setLast(boolean last)
Description copied from interface:SpdyStreamFrameSets if this frame is the last frame to be transmitted on the stream.- Specified by:
setLastin interfaceSpdyRstStreamFrame- Specified by:
setLastin interfaceSpdyStreamFrame- Overrides:
setLastin classDefaultSpdyStreamFrame
-
status
public SpdyStreamStatus status()
Description copied from interface:SpdyRstStreamFrameReturns the status of this frame.- Specified by:
statusin interfaceSpdyRstStreamFrame
-
setStatus
public SpdyRstStreamFrame setStatus(SpdyStreamStatus status)
Description copied from interface:SpdyRstStreamFrameSets the status of this frame.- Specified by:
setStatusin interfaceSpdyRstStreamFrame
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-