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 defaultSpdyGoAwayFrameimplementation.
-
-
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 intlastGoodStreamId()Returns the Last-good-stream-ID of this frame.SpdyGoAwayFramesetLastGoodStreamId(int lastGoodStreamId)Sets the Last-good-stream-ID of this frame.SpdyGoAwayFramesetStatus(SpdySessionStatus status)Sets the status of this frame.SpdySessionStatusstatus()Returns the status of this frame.java.lang.StringtoString()
-
-
-
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:SpdyGoAwayFrameReturns the Last-good-stream-ID of this frame.- Specified by:
lastGoodStreamIdin interfaceSpdyGoAwayFrame
-
setLastGoodStreamId
public SpdyGoAwayFrame setLastGoodStreamId(int lastGoodStreamId)
Description copied from interface:SpdyGoAwayFrameSets the Last-good-stream-ID of this frame. The Last-good-stream-ID cannot be negative.- Specified by:
setLastGoodStreamIdin interfaceSpdyGoAwayFrame
-
status
public SpdySessionStatus status()
Description copied from interface:SpdyGoAwayFrameReturns the status of this frame.- Specified by:
statusin interfaceSpdyGoAwayFrame
-
setStatus
public SpdyGoAwayFrame setStatus(SpdySessionStatus status)
Description copied from interface:SpdyGoAwayFrameSets the status of this frame.- Specified by:
setStatusin interfaceSpdyGoAwayFrame
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-