DefaultHttp3SettingsFrame Class — netty Architecture
Architecture documentation for the DefaultHttp3SettingsFrame class in DefaultHttp3SettingsFrame.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 78765f50_fdb3_88f0_891e_7065b780f9e5["DefaultHttp3SettingsFrame"] 1f71cfb6_2876_1c3b_cadb_503f5aac17fd["DefaultHttp3SettingsFrame.java"] 78765f50_fdb3_88f0_891e_7065b780f9e5 -->|defined in| 1f71cfb6_2876_1c3b_cadb_503f5aac17fd cdde2907_c30f_9456_c8b2_56706fbf4d13["DefaultHttp3SettingsFrame()"] 78765f50_fdb3_88f0_891e_7065b780f9e5 -->|method| cdde2907_c30f_9456_c8b2_56706fbf4d13 5f92459f_43a2_61e1_0636_7b0c43f7e943["Http3Settings()"] 78765f50_fdb3_88f0_891e_7065b780f9e5 -->|method| 5f92459f_43a2_61e1_0636_7b0c43f7e943 0395181e_1a78_6b77_819c_c23f122fd31c["Long()"] 78765f50_fdb3_88f0_891e_7065b780f9e5 -->|method| 0395181e_1a78_6b77_819c_c23f122fd31c bfc043c9_23d0_8e9a_1834_cdc23e6280ba["iterator()"] 78765f50_fdb3_88f0_891e_7065b780f9e5 -->|method| bfc043c9_23d0_8e9a_1834_cdc23e6280ba 21cc61a5_5d37_8a88_3ace_b895ed4ff068["hashCode()"] 78765f50_fdb3_88f0_891e_7065b780f9e5 -->|method| 21cc61a5_5d37_8a88_3ace_b895ed4ff068 d9e5fc3e_59d9_83c9_4296_a64c3e29f71d["equals()"] 78765f50_fdb3_88f0_891e_7065b780f9e5 -->|method| d9e5fc3e_59d9_83c9_4296_a64c3e29f71d cd4d1d8e_b2ec_4ccf_dee0_e1bacfc27326["String()"] 78765f50_fdb3_88f0_891e_7065b780f9e5 -->|method| cd4d1d8e_b2ec_4ccf_dee0_e1bacfc27326
Relationship Graph
Source Code
codec-http3/src/main/java/io/netty/handler/codec/http3/DefaultHttp3SettingsFrame.java lines 29–122
public final class DefaultHttp3SettingsFrame implements Http3SettingsFrame {
private final Http3Settings settings;
public DefaultHttp3SettingsFrame(Http3Settings settings) {
this.settings = ObjectUtil.checkNotNull(settings, "settings");
}
public DefaultHttp3SettingsFrame() {
this.settings = new Http3Settings();
}
@Override
public Http3Settings settings() {
return settings;
}
/**
* Get a setting by its key.
*
* @param key the HTTP/3 setting key
* @return the value, or {@code null} if not set
* @deprecated use {@link #settings()} and manipulate the {@link Http3Settings} directly
*/
@Override
@Deprecated
@Nullable
public Long get(long key) {
// Legacy behavior: direct map access.
return settings.get(key);
}
/**
* Set a setting value by key.
*
* @param key the HTTP/3 setting key
* @param value the value to set
* @return the previous value, or {@code null} if none
* @throws IllegalArgumentException if the key is reserved for HTTP/2
* @deprecated use {@link #settings()} and manipulate the {@link Http3Settings} directly
*/
@Override
@Deprecated
@Nullable
public Long put(long key, Long value) {
return settings.put(key, value);
}
@Override
public Iterator<Map.Entry<Long, Long>> iterator() {
return settings.iterator();
}
@Override
public int hashCode() {
return settings.hashCode();
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DefaultHttp3SettingsFrame that = (DefaultHttp3SettingsFrame) o;
return that.settings.equals(settings);
}
@Override
public String toString() {
return StringUtil.simpleClassName(this) + "(settings=" + settings + ')';
}
/**
* Creates a new {@link DefaultHttp3SettingsFrame} which is a copy of the given settings.
*
* @param settingsFrame the frame to copy.
* @return the newly created copy.
*/
Source
Frequently Asked Questions
What is the DefaultHttp3SettingsFrame class?
DefaultHttp3SettingsFrame is a class in the netty codebase, defined in codec-http3/src/main/java/io/netty/handler/codec/http3/DefaultHttp3SettingsFrame.java.
Where is DefaultHttp3SettingsFrame defined?
DefaultHttp3SettingsFrame is defined in codec-http3/src/main/java/io/netty/handler/codec/http3/DefaultHttp3SettingsFrame.java at line 29.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free