Package io.netty.handler.codec.spdy
Class DefaultSpdyGoAwayFrame
java.lang.Object
io.netty.handler.codec.spdy.DefaultSpdyGoAwayFrame
- All Implemented Interfaces:
SpdyFrame
,SpdyGoAwayFrame
The default
SpdyGoAwayFrame
implementation.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultSpdyGoAwayFrame
(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
Modifier and TypeMethodDescriptionint
Returns the Last-good-stream-ID of this frame.setLastGoodStreamId
(int lastGoodStreamId) Sets the Last-good-stream-ID of this frame.setStatus
(SpdySessionStatus status) Sets the status of this frame.status()
Returns the status of this frame.toString()
-
Field Details
-
lastGoodStreamId
private int lastGoodStreamId -
status
-
-
Constructor Details
-
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
Creates a new instance.- Parameters:
lastGoodStreamId
- the Last-good-stream-ID of this framestatus
- the status of this frame
-
-
Method Details
-
lastGoodStreamId
public int lastGoodStreamId()Description copied from interface:SpdyGoAwayFrame
Returns the Last-good-stream-ID of this frame.- Specified by:
lastGoodStreamId
in interfaceSpdyGoAwayFrame
-
setLastGoodStreamId
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
Description copied from interface:SpdyGoAwayFrame
Returns the status of this frame.- Specified by:
status
in interfaceSpdyGoAwayFrame
-
setStatus
Description copied from interface:SpdyGoAwayFrame
Sets the status of this frame.- Specified by:
setStatus
in interfaceSpdyGoAwayFrame
-
toString
-