DefaultSpdySynStreamFrame Class — netty Architecture
Architecture documentation for the DefaultSpdySynStreamFrame class in DefaultSpdySynStreamFrame.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD b3cdf559_e73e_ed2d_ab74_871526f92ccd["DefaultSpdySynStreamFrame"] 85b03525_eac8_be09_2711_1c575823e754["DefaultSpdySynStreamFrame.java"] b3cdf559_e73e_ed2d_ab74_871526f92ccd -->|defined in| 85b03525_eac8_be09_2711_1c575823e754 604ccd5b_7623_f62e_a355_448f19500064["DefaultSpdySynStreamFrame()"] b3cdf559_e73e_ed2d_ab74_871526f92ccd -->|method| 604ccd5b_7623_f62e_a355_448f19500064 618a9702_6f2b_62a2_6221_7b1f8f7d4c27["SpdySynStreamFrame()"] b3cdf559_e73e_ed2d_ab74_871526f92ccd -->|method| 618a9702_6f2b_62a2_6221_7b1f8f7d4c27 b3225ec7_ffc4_ca31_849d_df53090143a8["associatedStreamId()"] b3cdf559_e73e_ed2d_ab74_871526f92ccd -->|method| b3225ec7_ffc4_ca31_849d_df53090143a8 b9b34405_e94c_3bde_8a7e_c9d0fc55ca5d["priority()"] b3cdf559_e73e_ed2d_ab74_871526f92ccd -->|method| b9b34405_e94c_3bde_8a7e_c9d0fc55ca5d 88e376e2_7bda_0068_efe3_e98c40394f6b["isUnidirectional()"] b3cdf559_e73e_ed2d_ab74_871526f92ccd -->|method| 88e376e2_7bda_0068_efe3_e98c40394f6b 5a8d0f17_8d1e_eab4_75cb_46047c0a5fc6["String()"] b3cdf559_e73e_ed2d_ab74_871526f92ccd -->|method| 5a8d0f17_8d1e_eab4_75cb_46047c0a5fc6
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/spdy/DefaultSpdySynStreamFrame.java lines 25–142
public class DefaultSpdySynStreamFrame extends DefaultSpdyHeadersFrame
implements SpdySynStreamFrame {
private int associatedStreamId;
private byte priority;
private boolean unidirectional;
/**
* Creates a new instance.
*
* @param streamId the Stream-ID of this frame
* @param associatedStreamId the Associated-To-Stream-ID of this frame
* @param priority the priority of the stream
*/
public DefaultSpdySynStreamFrame(int streamId, int associatedStreamId, byte priority) {
this(streamId, associatedStreamId, priority, true);
}
/**
* Creates a new instance.
*
* @param streamId the Stream-ID of this frame
* @param associatedStreamId the Associated-To-Stream-ID of this frame
* @param priority the priority of the stream
* @param validateHeaders validate the header names and values when adding them to the {@link SpdyHeaders}
*/
public DefaultSpdySynStreamFrame(int streamId, int associatedStreamId, byte priority, boolean validateHeaders) {
super(streamId, validateHeaders);
setAssociatedStreamId(associatedStreamId);
setPriority(priority);
}
@Override
public SpdySynStreamFrame setStreamId(int streamId) {
super.setStreamId(streamId);
return this;
}
@Override
public SpdySynStreamFrame setLast(boolean last) {
super.setLast(last);
return this;
}
@Override
public SpdySynStreamFrame setInvalid() {
super.setInvalid();
return this;
}
@Override
public int associatedStreamId() {
return associatedStreamId;
}
@Override
public SpdySynStreamFrame setAssociatedStreamId(int associatedStreamId) {
checkPositiveOrZero(associatedStreamId, "associatedStreamId");
this.associatedStreamId = associatedStreamId;
return this;
}
@Override
public byte priority() {
return priority;
}
@Override
public SpdySynStreamFrame setPriority(byte priority) {
if (priority < 0 || priority > 7) {
throw new IllegalArgumentException(
"Priority must be between 0 and 7 inclusive: " + priority);
}
this.priority = priority;
return this;
}
@Override
public boolean isUnidirectional() {
return unidirectional;
}
Source
Frequently Asked Questions
What is the DefaultSpdySynStreamFrame class?
DefaultSpdySynStreamFrame is a class in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/spdy/DefaultSpdySynStreamFrame.java.
Where is DefaultSpdySynStreamFrame defined?
DefaultSpdySynStreamFrame is defined in codec-http/src/main/java/io/netty/handler/codec/spdy/DefaultSpdySynStreamFrame.java at line 25.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free