Class DefaultSpdyGoAwayFrame
- java.lang.Object
-
- org.jboss.netty.handler.codec.spdy.DefaultSpdyGoAwayFrame
-
- All Implemented Interfaces:
SpdyFrame
,SpdyGoAwayFrame
public class DefaultSpdyGoAwayFrame extends 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
getLastGoodStreamId()
Returns the Last-good-stream-ID of this frame.SpdySessionStatus
getStatus()
Returns the status of this frame.void
setLastGoodStreamId(int lastGoodStreamId)
Sets the Last-good-stream-ID of this frame.void
setStatus(SpdySessionStatus status)
Sets the status of this frame.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
-
getLastGoodStreamId
public int getLastGoodStreamId()
Description copied from interface:SpdyGoAwayFrame
Returns the Last-good-stream-ID of this frame.- Specified by:
getLastGoodStreamId
in interfaceSpdyGoAwayFrame
-
setLastGoodStreamId
public void 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
-
getStatus
public SpdySessionStatus getStatus()
Description copied from interface:SpdyGoAwayFrame
Returns the status of this frame.- Specified by:
getStatus
in interfaceSpdyGoAwayFrame
-
setStatus
public void setStatus(SpdySessionStatus status)
Description copied from interface:SpdyGoAwayFrame
Sets the status of this frame.- Specified by:
setStatus
in interfaceSpdyGoAwayFrame
-
-