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
The default
SpdyRstStreamFrame
implementation.-
Field Summary
Fields -
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 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
-
Field Details
-
status
-
-
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:SpdyStreamFrame
Sets the Stream-ID of this frame. The Stream-ID must be positive.- Specified by:
setStreamId
in interfaceSpdyRstStreamFrame
- Specified by:
setStreamId
in interfaceSpdyStreamFrame
- Overrides:
setStreamId
in classDefaultSpdyStreamFrame
-
setLast
Description copied from interface:SpdyStreamFrame
Sets if this frame is the last frame to be transmitted on the stream.- Specified by:
setLast
in interfaceSpdyRstStreamFrame
- Specified by:
setLast
in interfaceSpdyStreamFrame
- Overrides:
setLast
in classDefaultSpdyStreamFrame
-
status
Description copied from interface:SpdyRstStreamFrame
Returns the status of this frame.- Specified by:
status
in interfaceSpdyRstStreamFrame
-
setStatus
Description copied from interface:SpdyRstStreamFrame
Sets the status of this frame.- Specified by:
setStatus
in interfaceSpdyRstStreamFrame
-
toString
-