Class DefaultSpdyRstStreamFrame
java.lang.Object
io.netty.handler.codec.spdy.DefaultSpdyStreamFrame
io.netty.handler.codec.spdy.DefaultSpdyRstStreamFrame
- All Implemented Interfaces:
SpdyFrame, SpdyRstStreamFrame, SpdyStreamFrame
The default
SpdyRstStreamFrame implementation.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSpdyRstStreamFrame(int streamId, int statusCode) Creates a new instance.DefaultSpdyRstStreamFrame(int streamId, SpdyStreamStatus status) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionsetLast(boolean last) Sets if this frame is the last frame to be transmitted on the stream.setStatus(SpdyStreamStatus status) Sets the status of this frame.setStreamId(int streamId) Sets the Stream-ID of this frame.status()Returns the status of this frame.toString()Methods inherited from class DefaultSpdyStreamFrame
isLast, streamIdMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface SpdyStreamFrame
isLast, streamId
-
Constructor Details
-
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
Creates a new instance.- Parameters:
streamId- the Stream-ID of this framestatus- the status of this frame
-
-
Method Details
-
setStreamId
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
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
Description copied from interface:SpdyRstStreamFrameReturns the status of this frame.- Specified by:
statusin interfaceSpdyRstStreamFrame
-
setStatus
Description copied from interface:SpdyRstStreamFrameSets the status of this frame.- Specified by:
setStatusin interfaceSpdyRstStreamFrame
-
toString
-