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 defaultSpdyRstStreamFrame
implementation.
-
-
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 SpdyRstStreamFrame
setLast(boolean last)
Sets if this frame is the last frame to be transmitted on the stream.SpdyRstStreamFrame
setStatus(SpdyStreamStatus status)
Sets the status of this frame.SpdyRstStreamFrame
setStreamId(int streamId)
Sets the Stream-ID of this frame.SpdyStreamStatus
status()
Returns the status of this frame.java.lang.String
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
-
-
-
-
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: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
public SpdyRstStreamFrame setLast(boolean last)
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
public SpdyStreamStatus status()
Description copied from interface:SpdyRstStreamFrame
Returns the status of this frame.- Specified by:
status
in interfaceSpdyRstStreamFrame
-
setStatus
public SpdyRstStreamFrame setStatus(SpdyStreamStatus status)
Description copied from interface:SpdyRstStreamFrame
Sets the status of this frame.- Specified by:
setStatus
in interfaceSpdyRstStreamFrame
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-