HttpHeadersFactory instances, that itself implements HttpHeadersFactory.
The builder is immutable, and every with- method produce a new, modified instance.
The default builder you most likely want to start with is DefaultHttpHeadersFactory#headersFactory().
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private static final DefaultHttpHeadersFactory | |
| private static final DefaultHttpHeadersFactory | |
| private static final DefaultHeaders. | |
| private static final DefaultHttpHeadersFactory | |
| private static final DefaultHttpHeadersFactory | |
| private static final DefaultHeaders. | |
| private static final DefaultHeaders. | |
| private final DefaultHeaders. | |
| private static final DefaultHeaders. | |
| private static final DefaultHeaders. | |
| private final DefaultHeaders. |
| Access | Constructor and Description |
|---|---|
| private | DefaultHttpHeadersFactory(DefaultHeaders.
The name validator to use, not null. nameValidator,The value validator to use, not null. valueValidator,true if multi-valued headers should be combined into single lines.Create a header builder with the given settings. |
| Modifier and Type | Method and Description |
|---|---|
| public DefaultHeaders. | Returns: The configured name validator.Get the currently configured |
| public DefaultHeaders. | Returns: The configured value validator.Get the currently configured |
| public static DefaultHttpHeadersFactory | |
| public boolean | Returns: true if header value combining is enabled, otherwise false.Check whether header combining is enabled or not. |
| public boolean | Returns: true if header name validation is enabled, otherwise false.Check whether header name validation is enabled. |
| public boolean | Returns: true if header value validation is enabled, otherwise false.Check whether header value validation is enabled. |
| public HttpHeaders | newEmptyHeaders()
Implements io. HttpHeaders instance, but sized to be as small an object as possible.
|
| public HttpHeaders | newHeaders()
Implements io. HttpHeaders instance.
|
| public static DefaultHttpHeadersFactory | |
| public DefaultHttpHeadersFactory | Returns: The new builder.true if multi-valued headers should be combined, otherwise false.Create a new builder that will build |
| public DefaultHttpHeadersFactory | Returns: The new builder.If validation should be enabled or disabled. validation)Create a new builder that has HTTP header name validation enabled or disabled. |
| public DefaultHttpHeadersFactory | Returns: The new builder.The HTTP header name validator to use. validatorCreate a new builder that with the given |
| public DefaultHttpHeadersFactory | Returns: The new builder.If validation should be enabled or disabled. validation)Create a new builder that has HTTP header validation enabled or disabled. |
| public DefaultHttpHeadersFactory | Returns: The new builder.If validation should be enabled or disabled. validation)Create a new builder that has HTTP header value validation enabled or disabled. |
| public DefaultHttpHeadersFactory | Returns: The new builder.The HTTP header name validator to use. validatorCreate a new builder that with the given |
| combiningHeaders | back to summary |
|---|---|
| private final boolean combiningHeaders | |
| DEFAULT | back to summary |
|---|---|
| private static final DefaultHttpHeadersFactory DEFAULT | |
| DEFAULT_COMBINING | back to summary |
|---|---|
| private static final DefaultHttpHeadersFactory DEFAULT_COMBINING | |
| DEFAULT_NAME_VALIDATOR | back to summary |
|---|---|
| private static final DefaultHeaders. | |
| DEFAULT_NO_VALIDATION | back to summary |
|---|---|
| private static final DefaultHttpHeadersFactory DEFAULT_NO_VALIDATION | |
| DEFAULT_TRAILER | back to summary |
|---|---|
| private static final DefaultHttpHeadersFactory DEFAULT_TRAILER | |
| DEFAULT_TRAILER_NAME_VALIDATOR | back to summary |
|---|---|
| private static final DefaultHeaders. | |
| DEFAULT_VALUE_VALIDATOR | back to summary |
|---|---|
| private static final DefaultHeaders. | |
| nameValidator | back to summary |
|---|---|
| private final DefaultHeaders. | |
| NO_NAME_VALIDATOR | back to summary |
|---|---|
private static final DefaultHeaders.
| |
| NO_VALUE_VALIDATOR | back to summary |
|---|---|
private static final DefaultHeaders.
| |
| valueValidator | back to summary |
|---|---|
| private final DefaultHeaders. | |
| DefaultHttpHeadersFactory | back to summary |
|---|---|
| private DefaultHttpHeadersFactory(DefaultHeaders. Create a header builder with the given settings.
| |
| getNameValidator | back to summary |
|---|---|
| public DefaultHeaders. Get the currently configured
This method will be used by the
| |
| getValueValidator | back to summary |
|---|---|
| public DefaultHeaders. Get the currently configured
This method will be used by the
| |
| headersFactory | back to summary |
|---|---|
| public static DefaultHttpHeadersFactory headersFactory() Get the default implementation of
This | |
| isCombiningHeaders | back to summary |
|---|---|
| public boolean isCombiningHeaders() Check whether header combining is enabled or not.
| |
| isValidatingHeaderNames | back to summary |
|---|---|
| public boolean isValidatingHeaderNames() Check whether header name validation is enabled.
| |
| isValidatingHeaderValues | back to summary |
|---|---|
| public boolean isValidatingHeaderValues() Check whether header value validation is enabled.
| |
| newEmptyHeaders | back to summary |
|---|---|
| public HttpHeaders newEmptyHeaders() Implements io. Doc from io. Create a new
| |
| newHeaders | back to summary |
|---|---|
| public HttpHeaders newHeaders() Implements io. Doc from io. Create a new
| |
| trailersFactory | back to summary |
|---|---|
| public static DefaultHttpHeadersFactory trailersFactory() Get the default implementation of
This | |
| withCombiningHeaders | back to summary |
|---|---|
| public DefaultHttpHeadersFactory withCombiningHeaders(boolean combiningHeaders) Create a new builder that will build
| |
| withNameValidation | back to summary |
|---|---|
| public DefaultHttpHeadersFactory withNameValidation(boolean validation) Create a new builder that has HTTP header name validation enabled or disabled. Warning Setting
| |
| withNameValidator | back to summary |
|---|---|
| public DefaultHttpHeadersFactory withNameValidator(DefaultHeaders. Create a new builder that with the given Warning If the given validator does not check that the header names are standards compliant, Netty won't validate & protect against user-supplied headers that are malicious. This can leave your server implementation vulnerable to CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting') . When disabling this validation, it is the responsibility of the caller to ensure that the values supplied do not contain a non-url-escaped carriage return (CR) and/or line feed (LF) characters.
| |
| withValidation | back to summary |
|---|---|
| public DefaultHttpHeadersFactory withValidation(boolean validation) Create a new builder that has HTTP header validation enabled or disabled. Warning Setting
| |
| withValueValidation | back to summary |
|---|---|
| public DefaultHttpHeadersFactory withValueValidation(boolean validation) Create a new builder that has HTTP header value validation enabled or disabled. Warning Setting
| |
| withValueValidator | back to summary |
|---|---|
| public DefaultHttpHeadersFactory withValueValidator(DefaultHeaders. Create a new builder that with the given Warning If the given validator does not check that the header values are standards compliant, Netty won't validate & protect against user-supplied headers that are malicious. This can leave your server implementation vulnerable to CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting') . When disabling this validation, it is the responsibility of the caller to ensure that the values supplied do not contain a non-url-escaped carriage return (CR) and/or line feed (LF) characters.
| |