Please refer to section RFC 7230, 3.2.2.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| public | CombinedHttpHeaders(boolean
Should Netty validate header values to ensure they aren't malicious. validate)
Deprecated
Prefer instead to configuring a
Create a combined HTTP header object, with optional validation.
HttpHeadersFactory
by calling withCombiningHeaders(true)
on DefaultHttpHeadersFactory#headersFactory().
|
| pack-priv | CombinedHttpHeaders(DefaultHeaders.
|
| pack-priv | CombinedHttpHeaders(DefaultHeaders.
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | containsValue(CharSequence
the name of the header to find name, CharSequence the value of the header to find value, boolean true then a case insensitive compare is run to compare values.
otherwise a case sensitive compare is run to compare values.Overrides io. true if a header with the name and value exists, false otherwise.
|
| CombinedHttpHeaders | back to summary |
|---|---|
| public CombinedHttpHeaders(boolean validate)
Deprecated Prefer instead to configuring a Create a combined HTTP header object, with optional validation.
| |
| CombinedHttpHeaders | back to summary |
|---|---|
| pack-priv CombinedHttpHeaders(DefaultHeaders. | |
| CombinedHttpHeaders | back to summary |
|---|---|
| pack-priv CombinedHttpHeaders(DefaultHeaders. | |
| containsValue | back to summary |
|---|---|
| public boolean containsValue(CharSequence name, CharSequence value, boolean ignoreCase) Overrides io. Doc from io. Returns
If
| |
| Modifier and Type | Class and Description |
|---|---|
| private static interface | CombinedHttpHeaders.
The type that a concrete implementation handles T>Escapes comma separated values (CSV). |
| Modifier and Type | Field and Description |
|---|---|
| private CombinedHttpHeaders. | |
| private CombinedHttpHeaders. | |
| private static final int | VALUE_LENGTH_ESTIMATE
An estimate of the size of a header value. |
| Access | Constructor and Description |
|---|---|
| pack-priv | CombinedHttpHeadersImpl(HashingStrategy<CharSequence> nameHashingStrategy, ValueConverter<CharSequence> valueConverter, DefaultHeaders.
|
| pack-priv | CombinedHttpHeadersImpl(HashingStrategy<CharSequence> nameHashingStrategy, ValueConverter<CharSequence> valueConverter, DefaultHeaders.
|
| charSequenceEscaper | back to summary |
|---|---|
| private CombinedHttpHeaders. | |
| objectEscaper | back to summary |
|---|---|
| private CombinedHttpHeaders. | |
| VALUE_LENGTH_ESTIMATE | back to summary |
|---|---|
| private static final int VALUE_LENGTH_ESTIMATE An estimate of the size of a header value. | |
| CombinedHttpHeadersImpl | back to summary |
|---|---|
| pack-priv CombinedHttpHeadersImpl(HashingStrategy<CharSequence> nameHashingStrategy, ValueConverter<CharSequence> valueConverter, DefaultHeaders. | |
| CombinedHttpHeadersImpl | back to summary |
|---|---|
| pack-priv CombinedHttpHeadersImpl(HashingStrategy<CharSequence> nameHashingStrategy, ValueConverter<CharSequence> valueConverter, DefaultHeaders. | |
| add | back to summary |
|---|---|
| public CombinedHttpHeaders. Overrides io. Implements io. Doc from io. Adds all header names and values of
| |
| add | back to summary |
|---|---|
| public CombinedHttpHeaders. Overrides io. Implements io. Doc from io. Adds a new header with the specified
| |
| add | back to summary |
|---|---|
| public CombinedHttpHeaders. Overrides io. Implements io. Doc from io. Adds new headers with the specified
for (T value : values) {
headers.add(name, value);
}
| |
| add | back to summary |
|---|---|
| public CombinedHttpHeaders. Overrides io. Implements io. Doc from io. Adds new headers with the specified
for (T value : values) {
headers.add(name, value);
}
| |
| addEscapedValue | back to summary |
|---|---|
| private CombinedHttpHeaders. | |
| addObject | back to summary |
|---|---|
| public CombinedHttpHeaders. Overrides io. Implements io. Doc from io. Adds a new header. Before the
| |
| addObject | back to summary |
|---|---|
| public CombinedHttpHeaders. Overrides io. Implements io. Doc from io. Adds a new header with the specified name and values. This method is equivalent to
for (Object v : values) {
headers.addObject(name, v);
}
| |
| addObject | back to summary |
|---|---|
| public CombinedHttpHeaders. Overrides io. Implements io. Doc from io. Adds a new header with the specified name and values. This method is equivalent to
for (Object v : values) {
headers.addObject(name, v);
}
| |
| cannotBeCombined | back to summary |
|---|---|
| private static boolean cannotBeCombined(CharSequence name) | |
| charSequenceEscaper | back to summary |
|---|---|
| private CombinedHttpHeaders. | |
| commaSeparate | back to summary |
|---|---|
| private static <T> CharSequence commaSeparate(CharSequence name, CombinedHttpHeaders. | |
| commaSeparate | back to summary |
|---|---|
| private static <T> CharSequence commaSeparate(CharSequence name, CombinedHttpHeaders. | |
| commaSeparateEscapedValues | back to summary |
|---|---|
| private static CharSequence commaSeparateEscapedValues(CharSequence currentValue, CharSequence value) | |
| getAll | back to summary |
|---|---|
| public List Overrides io. Implements io. Doc from io. Returns all values for the header with the specified name. The returned
| |
| objectEscaper | back to summary |
|---|---|
| private CombinedHttpHeaders. | |
| set | back to summary |
|---|---|
| public CombinedHttpHeaders. Overrides io. Implements io. Doc from io. Clears the current header entries and copies all header entries of the specified
| |
| set | back to summary |
|---|---|
| public CombinedHttpHeaders. Overrides io. Implements io. Doc from io. Sets a header with the specified name and values. Any existing headers with this name are removed. This method is equivalent to:
headers.remove(name);
for (T v : values) {
headers.add(name, v);
}
| |
| set | back to summary |
|---|---|
| public CombinedHttpHeaders. Overrides io. Implements io. Doc from io. Sets a new header with the specified name and values. This method is equivalent to
for (T v : values) {
headers.addObject(name, v);
}
| |
| setAll | back to summary |
|---|---|
| public CombinedHttpHeaders. Overrides io. Implements io. Doc from io. Retains all current headers but calls
| |
| setObject | back to summary |
|---|---|
| public CombinedHttpHeaders. Overrides io. Implements io. Doc from io. Sets a new header. Any existing headers with this name are removed. Before the
| |
| setObject | back to summary |
|---|---|
| public CombinedHttpHeaders. Overrides io. Implements io. Doc from io. Sets a header with the specified name and values. Any existing headers with this name are removed. This method is equivalent to:
headers.remove(name);
for (Object v : values) {
headers.addObject(name, v);
}
| |
| setObject | back to summary |
|---|---|
| public CombinedHttpHeaders. Overrides io. Implements io. Doc from io. Sets a header with the specified name and values. Any existing headers with this name are removed. This method is equivalent to:
headers.remove(name);
for (Object v : values) {
headers.addObject(name, v);
}
| |
| valueIterator | back to summary |
|---|---|
| public Iterator Overrides io. Doc from io. Equivalent to
| |
| Modifier and Type | Method and Description |
|---|---|
| public CharSequence | escape(CharSequence
the name of the header for the value being escaped name, T the value to be appended, escaped if necessary value)Appends the value to the specified |
| escape | back to summary |
|---|---|
| public CharSequence escape(CharSequence name, T value) Appends the value to the specified
| |