Package io.netty.handler.codec.spdy
Class DefaultSpdyGoAwayFrame
- java.lang.Object
-
- io.netty.handler.codec.spdy.DefaultSpdyGoAwayFrame
-
- All Implemented Interfaces:
SpdyFrame
,SpdyGoAwayFrame
public class DefaultSpdyGoAwayFrame extends java.lang.Object implements SpdyGoAwayFrame
The defaultSpdyGoAwayFrame
implementation.
-
-
Constructor Summary
Constructors Constructor Description DefaultSpdyGoAwayFrame(int lastGoodStreamId)
Creates a new instance.DefaultSpdyGoAwayFrame(int lastGoodStreamId, int statusCode)
Creates a new instance.DefaultSpdyGoAwayFrame(int lastGoodStreamId, SpdySessionStatus status)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
lastGoodStreamId()
Returns the Last-good-stream-ID of this frame.SpdyGoAwayFrame
setLastGoodStreamId(int lastGoodStreamId)
Sets the Last-good-stream-ID of this frame.SpdyGoAwayFrame
setStatus(SpdySessionStatus status)
Sets the status of this frame.SpdySessionStatus
status()
Returns the status of this frame.java.lang.String
toString()
-
-
-
Constructor Detail
-
DefaultSpdyGoAwayFrame
public DefaultSpdyGoAwayFrame(int lastGoodStreamId)
Creates a new instance.- Parameters:
lastGoodStreamId
- the Last-good-stream-ID of this frame
-
DefaultSpdyGoAwayFrame
public DefaultSpdyGoAwayFrame(int lastGoodStreamId, int statusCode)
Creates a new instance.- Parameters:
lastGoodStreamId
- the Last-good-stream-ID of this framestatusCode
- the Status code of this frame
-
DefaultSpdyGoAwayFrame
public DefaultSpdyGoAwayFrame(int lastGoodStreamId, SpdySessionStatus status)
Creates a new instance.- Parameters:
lastGoodStreamId
- the Last-good-stream-ID of this framestatus
- the status of this frame
-
-
Method Detail
-
lastGoodStreamId
public int lastGoodStreamId()
Description copied from interface:SpdyGoAwayFrame
Returns the Last-good-stream-ID of this frame.- Specified by:
lastGoodStreamId
in interfaceSpdyGoAwayFrame
-
setLastGoodStreamId
public SpdyGoAwayFrame setLastGoodStreamId(int lastGoodStreamId)
Description copied from interface:SpdyGoAwayFrame
Sets the Last-good-stream-ID of this frame. The Last-good-stream-ID cannot be negative.- Specified by:
setLastGoodStreamId
in interfaceSpdyGoAwayFrame
-
status
public SpdySessionStatus status()
Description copied from interface:SpdyGoAwayFrame
Returns the status of this frame.- Specified by:
status
in interfaceSpdyGoAwayFrame
-
setStatus
public SpdyGoAwayFrame setStatus(SpdySessionStatus status)
Description copied from interface:SpdyGoAwayFrame
Sets the status of this frame.- Specified by:
setStatus
in interfaceSpdyGoAwayFrame
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-