public class UndertowOptions extends Object
| Modifier and Type | Field and Description |
|---|---|
static UndertowOption<Boolean> |
ALLOW_ENCODED_SLASH
If a request comes in with encoded / characters (i.e.
|
static UndertowOption<Boolean> |
ALLOW_EQUALS_IN_COOKIE_VALUE
If this is true then Undertow will allow non-escaped equals characters in unquoted cookie values.
|
static UndertowOption<Boolean> |
ALWAYS_SET_DATE
If this is true then a Date header will be added to all responses.
|
static UndertowOption<Boolean> |
DECODE_URL
If this is true then the parser will decode the URL and query parameters using the selected character encoding (UTF-8 by default).
|
static boolean |
DEFAULT_ENABLE_RFC6265_COOKIE_VALIDATION |
static int |
DEFAULT_MAX_BUFFERED_REQUEST_SIZE |
static long |
DEFAULT_MAX_ENTITY_SIZE
We do not have a default upload limit
|
static int |
DEFAULT_MAX_HEADERS |
static int |
DEFAULT_MAX_PARAMETERS |
static long |
DEFAULT_READ_TIMEOUT |
static UndertowOption<Boolean> |
ENABLE_HTTP2
If we should attempt to use HTTP2 for HTTPS connections.
|
static UndertowOption<Boolean> |
ENABLE_RFC6265_COOKIE_VALIDATION
If this is true then Undertow will enable RFC6265 compliant cookie validation for Set-Cookie header instead of legacy backward compatible behavior.
|
static UndertowOption<Integer> |
MAX_BUFFERED_REQUEST_SIZE
Maximum size of a buffered request, in bytes
|
static UndertowOption<Integer> |
MAX_COOKIES
The maximum number of cookies that will be parsed.
|
static UndertowOption<Long> |
MAX_ENTITY_SIZE
The default maximum size of the HTTP entity body.
|
static UndertowOption<Integer> |
MAX_HEADER_SIZE
The maximum size in bytes of a http request header.
|
static UndertowOption<Integer> |
MAX_HEADERS
The maximum number of headers that will be parsed.
|
static UndertowOption<Integer> |
MAX_PARAMETERS
The maximum number of parameters that will be parsed.
|
static UndertowOption<Long> |
MULTIPART_MAX_ENTITY_SIZE
The default maximum size of the HTTP entity body when using the mutiltipart parser.
|
static UndertowOption<Long> |
READ_TIMEOUT
Blocking read timeout in milliseconds.
|
static UndertowOption<Boolean> |
RECORD_REQUEST_START_TIME
If this is true then Undertow will record the request start time, to allow for request time to be logged
|
static UndertowOption<Integer> |
SHUTDOWN_TIMEOUT
The server shutdown timeout in milliseconds after which the executor will be forcefully shut down interrupting
tasks which are still executing.
|
static UndertowOption<String> |
URL_CHARSET
If this is true then the parser will decode the URL and query parameters using the selected character encoding (UTF-8 by default).
|
static UndertowOption<Integer> |
WORKER_ACCEPT_THREADS
Deprecated.
|
public static final UndertowOption<Integer> MAX_HEADER_SIZE
public static final UndertowOption<Long> MAX_ENTITY_SIZE
public static final UndertowOption<Long> MULTIPART_MAX_ENTITY_SIZE
MAX_ENTITY_SIZE.
If this is not specified it will be the same as MAX_ENTITY_SIZE.
public static final long DEFAULT_MAX_ENTITY_SIZE
public static final int DEFAULT_MAX_PARAMETERS
public static final UndertowOption<Integer> MAX_PARAMETERS
This applies to both query parameters, and to POST data, but is not cumulative (i.e. you can potentially have max parameters * 2 total parameters).
Defaults to 1000
public static final int DEFAULT_MAX_HEADERS
public static final UndertowOption<Integer> MAX_HEADERS
Defaults to 200
public static final UndertowOption<Integer> MAX_COOKIES
Defaults to 200
public static final UndertowOption<Boolean> ALLOW_ENCODED_SLASH
This can cause security problems if a front end proxy does not perform the same decoding, and as a result this is disabled by default.
Defaults to false
See CVE-2007-0450
public static final UndertowOption<Boolean> DECODE_URL
Defaults to true.
public static final UndertowOption<String> URL_CHARSET
Defaults to true.
public static final UndertowOption<Boolean> ALWAYS_SET_DATE
Defaults to true
public static final UndertowOption<Integer> MAX_BUFFERED_REQUEST_SIZE
Requests are not usually buffered, the most common case is when performing SSL renegotiation for a POST request, and the post data must be fully buffered in order to perform the renegotiation.
Defaults to 16384.
public static final int DEFAULT_MAX_BUFFERED_REQUEST_SIZE
public static final UndertowOption<Boolean> RECORD_REQUEST_START_TIME
This has a small but measurable performance impact
default is false
public static final UndertowOption<Boolean> ALLOW_EQUALS_IN_COOKIE_VALUE
Unquoted cookie values may not contain equals characters. If present the value ends before the equals sign. The remainder of the cookie value will be dropped.
default is false
public static final UndertowOption<Boolean> ENABLE_RFC6265_COOKIE_VALIDATION
default is false
public static final boolean DEFAULT_ENABLE_RFC6265_COOKIE_VALIDATION
public static final UndertowOption<Boolean> ENABLE_HTTP2
public static final UndertowOption<Integer> SHUTDOWN_TIMEOUT
There is no timeout by default.
public static final UndertowOption<Long> READ_TIMEOUT
public static final long DEFAULT_READ_TIMEOUT
@Deprecated public static final UndertowOption<Integer> WORKER_ACCEPT_THREADS
Copyright © 2020 JBoss by Red Hat. All rights reserved.