public class UndertowOptions extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static org.xnio.Option<Boolean> | ALLOW_ENCODED_SLASHIf a request comes in with encoded / characters (i.e. | 
| static org.xnio.Option<Boolean> | ALLOW_EQUALS_IN_COOKIE_VALUEIf this is true then Undertow will allow non-escaped equals characters in unquoted cookie values. | 
| static org.xnio.Option<Boolean> | ALLOW_UNKNOWN_PROTOCOLSIf unknown protocols should be allowed. | 
| static org.xnio.Option<Boolean> | ALWAYS_SET_DATEIf this is true then a Date header will be added to all responses. | 
| static org.xnio.Option<Boolean> | ALWAYS_SET_KEEP_ALIVEIf this is true then a Connection: keep-alive header will be added to responses, even when it is not strictly required by the specification. | 
| static org.xnio.Option<Boolean> | BUFFER_PIPELINED_DATAIf we should buffer pipelined requests. | 
| static org.xnio.Option<Boolean> | DECODE_URLIf this is true then the parser will decode the URL and query parameters using the selected character encoding (UTF-8 by default). | 
| static int | DEFAULT_HTTP_HEADERS_CACHE_SIZE | 
| static int | DEFAULT_MAX_BUFFERED_REQUEST_SIZE | 
| static int | DEFAULT_MAX_CACHED_HEADER_SIZE | 
| static long | DEFAULT_MAX_ENTITY_SIZEWe do not have a default upload limit | 
| static int | DEFAULT_MAX_HEADER_SIZEThe default size we allow for the HTTP header. | 
| static int | DEFAULT_MAX_HEADERS | 
| static int | DEFAULT_MAX_PARAMETERS | 
| static org.xnio.Option<Boolean> | ENABLE_CONNECTOR_STATISTICSDeprecated.  | 
| static org.xnio.Option<Boolean> | ENABLE_HTTP2If we should attempt to use HTTP2 for HTTPS connections. | 
| static org.xnio.Option<Boolean> | ENABLE_SPDYDeprecated.  | 
| static org.xnio.Option<Boolean> | ENABLE_STATISTICSIf connector level statistics should be enabled. | 
| static org.xnio.Option<Integer> | HTTP_HEADERS_CACHE_SIZEThe maximum number of headers that are cached per connection. | 
| static org.xnio.Option<Integer> | HTTP2_HUFFMAN_CACHE_SIZEUndertow keeps a LRU cache of common huffman encodings. | 
| static org.xnio.Option<Integer> | HTTP2_PADDING_SIZEThe maximum amount of padding to send in a HTTP/2 frame. | 
| static org.xnio.Option<Boolean> | HTTP2_SETTINGS_ENABLE_PUSHIf push should be enabled for this connection. | 
| static org.xnio.Option<Integer> | HTTP2_SETTINGS_HEADER_TABLE_SIZEThe size of the header table that is used in the encoder | 
| static int | HTTP2_SETTINGS_HEADER_TABLE_SIZE_DEFAULT | 
| static org.xnio.Option<Integer> | HTTP2_SETTINGS_INITIAL_WINDOW_SIZE | 
| static org.xnio.Option<Integer> | HTTP2_SETTINGS_MAX_CONCURRENT_STREAMSThe maximum number of concurrent | 
| static org.xnio.Option<Integer> | HTTP2_SETTINGS_MAX_FRAME_SIZE | 
| static org.xnio.Option<Integer> | HTTP2_SETTINGS_MAX_HEADER_LIST_SIZE | 
| static org.xnio.Option<Integer> | IDLE_TIMEOUTThe idle timeout in milliseconds after which the channel will be closed. | 
| static org.xnio.Option<Integer> | MAX_AJP_PACKET_SIZEThe maximum AJP packet size, default is 8192 | 
| static org.xnio.Option<Integer> | MAX_BUFFERED_REQUEST_SIZEMaximum size of a buffered request, in bytes | 
| static org.xnio.Option<Integer> | MAX_CACHED_HEADER_SIZEThe maximum size of a header name+value combo that is cached in the per connection cache. | 
| static org.xnio.Option<Integer> | MAX_CONCURRENT_REQUESTS_PER_CONNECTIONThe maximum number of concurrent requests that will be processed at a time. | 
| static org.xnio.Option<Integer> | MAX_COOKIESThe maximum number of cookies that will be parsed. | 
| static org.xnio.Option<Long> | MAX_ENTITY_SIZEThe default maximum size of the HTTP entity body. | 
| static org.xnio.Option<Integer> | MAX_HEADER_SIZEThe maximum size in bytes of a http request header. | 
| static org.xnio.Option<Integer> | MAX_HEADERSThe maximum number of headers that will be parsed. | 
| static org.xnio.Option<Integer> | MAX_PARAMETERSThe maximum number of parameters that will be parsed. | 
| static org.xnio.Option<Integer> | MAX_QUEUED_READ_BUFFERSThe maximum number of buffers that will be used before reads are paused in framed protocols. | 
| static org.xnio.Option<Long> | MULTIPART_MAX_ENTITY_SIZEThe default maximum size of the HTTP entity body when using the mutiltipart parser. | 
| static org.xnio.Option<Integer> | NO_REQUEST_TIMEOUTThe amount of time the connection can be idle with no current requests before it is closed; | 
| static org.xnio.Option<Boolean> | RECORD_REQUEST_START_TIMEIf this is true then Undertow will record the request start time, to allow for request time to be logged This has a small but measurable performance impact default is false | 
| static org.xnio.Option<Integer> | REQUEST_PARSE_TIMEOUTThe maximum allowed time of reading HTTP request in milliseconds. | 
| static org.xnio.Option<Boolean> | REQUIRE_HOST_HTTP11If this is true then HTTP/1.1 requests will be failed if no host header is present. | 
| static org.xnio.Option<Boolean> | SSL_USER_CIPHER_SUITES_ORDERIf the SSLEngine should prefer the servers cipher version. | 
| static org.xnio.Option<String> | URL_CHARSETIf this is true then the parser will decode the URL and query parameters using the selected character encoding (UTF-8 by default). | 
public static final org.xnio.Option<Integer> MAX_HEADER_SIZE
public static final int DEFAULT_MAX_HEADER_SIZE
public static final org.xnio.Option<Long> MAX_ENTITY_SIZE
public static final org.xnio.Option<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 org.xnio.Option<Boolean> BUFFER_PIPELINED_DATA
public static final org.xnio.Option<Integer> IDLE_TIMEOUT
public static final org.xnio.Option<Integer> REQUEST_PARSE_TIMEOUT
-1 or missing value disables this functionality.public static final org.xnio.Option<Integer> NO_REQUEST_TIMEOUT
public static final int DEFAULT_MAX_PARAMETERS
public static final org.xnio.Option<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 org.xnio.Option<Integer> MAX_HEADERS
Defaults to 200
public static final org.xnio.Option<Integer> MAX_COOKIES
Defaults to 200
public static final org.xnio.Option<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 org.xnio.Option<Boolean> DECODE_URL
Defaults to true.
public static final org.xnio.Option<String> URL_CHARSET
Defaults to true.
public static final org.xnio.Option<Boolean> ALWAYS_SET_KEEP_ALIVE
Defaults to true
public static final org.xnio.Option<Boolean> ALWAYS_SET_DATE
Defaults to true
public static final org.xnio.Option<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 org.xnio.Option<Boolean> RECORD_REQUEST_START_TIME
public static final org.xnio.Option<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
@Deprecated public static final org.xnio.Option<Boolean> ENABLE_SPDY
public static final org.xnio.Option<Boolean> ENABLE_HTTP2
public static final org.xnio.Option<Boolean> ENABLE_STATISTICS
@Deprecated public static final org.xnio.Option<Boolean> ENABLE_CONNECTOR_STATISTICS
public static final org.xnio.Option<Boolean> ALLOW_UNKNOWN_PROTOCOLS
public static final org.xnio.Option<Integer> HTTP2_SETTINGS_HEADER_TABLE_SIZE
public static final int HTTP2_SETTINGS_HEADER_TABLE_SIZE_DEFAULT
public static final org.xnio.Option<Boolean> HTTP2_SETTINGS_ENABLE_PUSH
public static final org.xnio.Option<Integer> HTTP2_SETTINGS_MAX_CONCURRENT_STREAMS
public static final org.xnio.Option<Integer> HTTP2_SETTINGS_INITIAL_WINDOW_SIZE
public static final org.xnio.Option<Integer> HTTP2_SETTINGS_MAX_FRAME_SIZE
public static final org.xnio.Option<Integer> HTTP2_SETTINGS_MAX_HEADER_LIST_SIZE
public static final org.xnio.Option<Integer> HTTP2_PADDING_SIZE
public static final org.xnio.Option<Integer> HTTP2_HUFFMAN_CACHE_SIZE
public static final org.xnio.Option<Integer> MAX_CONCURRENT_REQUESTS_PER_CONNECTION
public static final org.xnio.Option<Integer> MAX_QUEUED_READ_BUFFERS
public static final org.xnio.Option<Integer> MAX_AJP_PACKET_SIZE
public static final org.xnio.Option<Boolean> REQUIRE_HOST_HTTP11
public static final int DEFAULT_MAX_CACHED_HEADER_SIZE
public static final org.xnio.Option<Integer> MAX_CACHED_HEADER_SIZE
public static final int DEFAULT_HTTP_HEADERS_CACHE_SIZE
public static final org.xnio.Option<Integer> HTTP_HEADERS_CACHE_SIZE
public static final org.xnio.Option<Boolean> SSL_USER_CIPHER_SUITES_ORDER
Copyright © 2017 JBoss by Red Hat. All rights reserved.