DefaultSpdyGoAwayFrame Class — netty Architecture
Architecture documentation for the DefaultSpdyGoAwayFrame class in DefaultSpdyGoAwayFrame.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD b804e1b1_de9a_55b0_f064_59c97373d672["DefaultSpdyGoAwayFrame"] 1f18df4e_23d4_d70d_4db8_e1fe43e92275["DefaultSpdyGoAwayFrame.java"] b804e1b1_de9a_55b0_f064_59c97373d672 -->|defined in| 1f18df4e_23d4_d70d_4db8_e1fe43e92275 4a8eed7d_6c14_edc1_e1ae_4d4ee2a82754["DefaultSpdyGoAwayFrame()"] b804e1b1_de9a_55b0_f064_59c97373d672 -->|method| 4a8eed7d_6c14_edc1_e1ae_4d4ee2a82754 57d38e91_37dd_bb00_7c99_9924dcda61b0["lastGoodStreamId()"] b804e1b1_de9a_55b0_f064_59c97373d672 -->|method| 57d38e91_37dd_bb00_7c99_9924dcda61b0 6504c725_e514_edbd_f813_894abd1aa9bf["SpdyGoAwayFrame()"] b804e1b1_de9a_55b0_f064_59c97373d672 -->|method| 6504c725_e514_edbd_f813_894abd1aa9bf 89ca8ecb_5bd2_0e53_e9ce_5f84c4e55b46["SpdySessionStatus()"] b804e1b1_de9a_55b0_f064_59c97373d672 -->|method| 89ca8ecb_5bd2_0e53_e9ce_5f84c4e55b46 122921a0_2e1e_b8c6_de67_e8172b9b9ebd["String()"] b804e1b1_de9a_55b0_f064_59c97373d672 -->|method| 122921a0_2e1e_b8c6_de67_e8172b9b9ebd
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/spdy/DefaultSpdyGoAwayFrame.java lines 25–95
public class DefaultSpdyGoAwayFrame implements SpdyGoAwayFrame {
private int lastGoodStreamId;
private SpdySessionStatus status;
/**
* Creates a new instance.
*
* @param lastGoodStreamId the Last-good-stream-ID of this frame
*/
public DefaultSpdyGoAwayFrame(int lastGoodStreamId) {
this(lastGoodStreamId, 0);
}
/**
* Creates a new instance.
*
* @param lastGoodStreamId the Last-good-stream-ID of this frame
* @param statusCode the Status code of this frame
*/
public DefaultSpdyGoAwayFrame(int lastGoodStreamId, int statusCode) {
this(lastGoodStreamId, SpdySessionStatus.valueOf(statusCode));
}
/**
* Creates a new instance.
*
* @param lastGoodStreamId the Last-good-stream-ID of this frame
* @param status the status of this frame
*/
public DefaultSpdyGoAwayFrame(int lastGoodStreamId, SpdySessionStatus status) {
setLastGoodStreamId(lastGoodStreamId);
setStatus(status);
}
@Override
public int lastGoodStreamId() {
return lastGoodStreamId;
}
@Override
public SpdyGoAwayFrame setLastGoodStreamId(int lastGoodStreamId) {
checkPositiveOrZero(lastGoodStreamId, "lastGoodStreamId");
this.lastGoodStreamId = lastGoodStreamId;
return this;
}
@Override
public SpdySessionStatus status() {
return status;
}
@Override
public SpdyGoAwayFrame setStatus(SpdySessionStatus status) {
this.status = status;
return this;
}
@Override
public String toString() {
return new StringBuilder()
.append(StringUtil.simpleClassName(this))
.append(StringUtil.NEWLINE)
.append("--> Last-good-stream-ID = ")
.append(lastGoodStreamId())
.append(StringUtil.NEWLINE)
.append("--> Status: ")
.append(status())
.toString();
}
}
Source
Frequently Asked Questions
What is the DefaultSpdyGoAwayFrame class?
DefaultSpdyGoAwayFrame is a class in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/spdy/DefaultSpdyGoAwayFrame.java.
Where is DefaultSpdyGoAwayFrame defined?
DefaultSpdyGoAwayFrame is defined in codec-http/src/main/java/io/netty/handler/codec/spdy/DefaultSpdyGoAwayFrame.java at line 25.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free