EmptyHttpHeaders Class — netty Architecture
Architecture documentation for the EmptyHttpHeaders class in EmptyHttpHeaders.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD c3416c4f_0454_471a_0465_745111bbf73a["EmptyHttpHeaders"] a26b5239_8609_c4bf_e267_45d31c8f88a6["EmptyHttpHeaders.java"] c3416c4f_0454_471a_0465_745111bbf73a -->|defined in| a26b5239_8609_c4bf_e267_45d31c8f88a6 8a2691fe_afda_498b_7475_238b37c98747["EmptyHttpHeaders()"] c3416c4f_0454_471a_0465_745111bbf73a -->|method| 8a2691fe_afda_498b_7475_238b37c98747 349de090_4131_c80f_34ca_0647c6f0da6c["String()"] c3416c4f_0454_471a_0465_745111bbf73a -->|method| 349de090_4131_c80f_34ca_0647c6f0da6c 9efb8ed4_f460_e7ab_084e_4bd4ab7a2456["Integer()"] c3416c4f_0454_471a_0465_745111bbf73a -->|method| 9efb8ed4_f460_e7ab_084e_4bd4ab7a2456 2aae8828_ac61_ce06_0e1c_00d2bc902f9d["getInt()"] c3416c4f_0454_471a_0465_745111bbf73a -->|method| 2aae8828_ac61_ce06_0e1c_00d2bc902f9d b3edaa6d_b57e_cb95_7aac_d1bad055ed6e["Short()"] c3416c4f_0454_471a_0465_745111bbf73a -->|method| b3edaa6d_b57e_cb95_7aac_d1bad055ed6e 24103bb1_c343_565a_bf85_0431c002dc71["getShort()"] c3416c4f_0454_471a_0465_745111bbf73a -->|method| 24103bb1_c343_565a_bf85_0431c002dc71 90466bea_271f_d460_f82e_36d09df345f4["Long()"] c3416c4f_0454_471a_0465_745111bbf73a -->|method| 90466bea_271f_d460_f82e_36d09df345f4 77db927e_9386_1c2f_3554_96f0ddc0c2f4["getTimeMillis()"] c3416c4f_0454_471a_0465_745111bbf73a -->|method| 77db927e_9386_1c2f_3554_96f0ddc0c2f4 88e92073_dae2_2018_79d3_90f904b70543["getAll()"] c3416c4f_0454_471a_0465_745111bbf73a -->|method| 88e92073_dae2_2018_79d3_90f904b70543 23d767fc_350f_d382_46a7_2886c847a83c["entries()"] c3416c4f_0454_471a_0465_745111bbf73a -->|method| 23d767fc_350f_d382_46a7_2886c847a83c 0fbfa5bd_68a9_18be_df7c_85556140361b["contains()"] c3416c4f_0454_471a_0465_745111bbf73a -->|method| 0fbfa5bd_68a9_18be_df7c_85556140361b 48a81371_b0c3_8a84_9d86_64d14e094b05["isEmpty()"] c3416c4f_0454_471a_0465_745111bbf73a -->|method| 48a81371_b0c3_8a84_9d86_64d14e094b05 42b65ff0_1908_6cb9_282e_ecb71d8bbb87["size()"] c3416c4f_0454_471a_0465_745111bbf73a -->|method| 42b65ff0_1908_6cb9_282e_ecb71d8bbb87
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/http/EmptyHttpHeaders.java lines 25–188
public class EmptyHttpHeaders extends HttpHeaders {
static final Iterator<Entry<CharSequence, CharSequence>> EMPTY_CHARS_ITERATOR =
Collections.<Entry<CharSequence, CharSequence>>emptyList().iterator();
public static final EmptyHttpHeaders INSTANCE = instance();
/**
* @see InstanceInitializer#EMPTY_HEADERS
* @deprecated Use {@link EmptyHttpHeaders#INSTANCE}
* <p>
* This is needed to break a cyclic static initialization loop between {@link HttpHeaders} and {@link
* EmptyHttpHeaders}.
*/
@Deprecated
static EmptyHttpHeaders instance() {
return InstanceInitializer.EMPTY_HEADERS;
}
protected EmptyHttpHeaders() {
}
@Override
public String get(String name) {
return null;
}
@Override
public Integer getInt(CharSequence name) {
return null;
}
@Override
public int getInt(CharSequence name, int defaultValue) {
return defaultValue;
}
@Override
public Short getShort(CharSequence name) {
return null;
}
@Override
public short getShort(CharSequence name, short defaultValue) {
return defaultValue;
}
@Override
public Long getTimeMillis(CharSequence name) {
return null;
}
@Override
public long getTimeMillis(CharSequence name, long defaultValue) {
return defaultValue;
}
@Override
public List<String> getAll(String name) {
return Collections.emptyList();
}
@Override
public List<Entry<String, String>> entries() {
return Collections.emptyList();
}
@Override
public boolean contains(String name) {
return false;
}
@Override
public boolean isEmpty() {
return true;
}
@Override
public int size() {
return 0;
}
Source
Frequently Asked Questions
What is the EmptyHttpHeaders class?
EmptyHttpHeaders is a class in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/EmptyHttpHeaders.java.
Where is EmptyHttpHeaders defined?
EmptyHttpHeaders is defined in codec-http/src/main/java/io/netty/handler/codec/http/EmptyHttpHeaders.java at line 25.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free