Package server.restful.common
Schnittstelle IServletSystemProperties.JSIDPlay2Server
- Umschließende Schnittstelle:
IServletSystemProperties
public static interface IServletSystemProperties.JSIDPlay2Server
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final StringServer base (default: http://127.0.0.1:8080)static final StringServlet response header to set the maximum age of cacheable resources in s (default: public, max-age=86400)static final StringServlet response header to disable caching for non-cacheable resources (default: private, no-store, no-cache, must-revalidate)static final StringThe HTTP/2 protocol may use compression in an attempt to save server bandwidth (default: on).static final intJSIDPlay2Server Socket connection timeout in ms of the HTTP(s) connection (default: 20s)static final intThe time, in milliseconds, that Tomcat will wait between HTTP/2 frames when there is no active Stream before closing the connection (default: 60min).static final intThe factor to apply when counting overhead frames to determine if a connection has too high an overhead and should be closed (default: 10).static final intThe threshold below which the average payload size of the current and previous non-final DATA frames will trigger an increase in the overhead count (see overheadCountFactor, default: 1024).static final intThe threshold below which the average size of current and previous WINDOW_UPDATE frame will trigger an increase in the overhead count (see overheadCountFactor, default: 1024).static final intThe time, in milliseconds, that Tomcat will wait for additional data when a partial HTTP/2 frame has been received (default: 10min).static final booleanUse this boolean attribute to enable or disable sendfile capability (default: false).static final intThe time, in milliseconds, that Tomcat will wait to write additional data when an HTTP/2 frame has been partially written (default: 60min).static final intCPU monitoring default refresh interval in ms (0 means disable, default: 1s)static final booleanShow uncaught exceptions with full exception stack trace (default: false)static final booleanJSIDPlay2Server uses HTTP/2 (or HTTP/1.1) protocol (default: true)
-
Felddetails
-
CONNECTION_TIMEOUT
static final int CONNECTION_TIMEOUTJSIDPlay2Server Socket connection timeout in ms of the HTTP(s) connection (default: 20s)- System Property:
- jsidplay2.connection.timeout
-
USE_HTTP2
static final boolean USE_HTTP2JSIDPlay2Server uses HTTP/2 (or HTTP/1.1) protocol (default: true)- System Property:
- jsidplay2.protocol.h2.enable
-
HTTP2_READ_TIMEOUT
static final int HTTP2_READ_TIMEOUTThe time, in milliseconds, that Tomcat will wait for additional data when a partial HTTP/2 frame has been received (default: 10min). Negative values will be treated as an infinite timeout- System Property:
- jsidplay2.protocol.h2.read.timeout
-
HTTP2_WRITE_TIMEOUT
static final int HTTP2_WRITE_TIMEOUTThe time, in milliseconds, that Tomcat will wait to write additional data when an HTTP/2 frame has been partially written (default: 60min). Negative values will be treated as an infinite timeout- System Property:
- jsidplay2.protocol.h2.write.timeout
-
HTTP2_KEEP_ALIVE_TIMEOUT
static final int HTTP2_KEEP_ALIVE_TIMEOUTThe time, in milliseconds, that Tomcat will wait between HTTP/2 frames when there is no active Stream before closing the connection (default: 60min). Negative values will be treated as an infinite timeout- System Property:
- jsidplay2.protocol.h2.keepalive.timeout
-
COMPRESSION
The HTTP/2 protocol may use compression in an attempt to save server bandwidth (default: on). The acceptable values for the parameter is "off" (disable compression), "on" (allow compression, which causes text data to be compressed), "force" (forces compression in all cases), or a numerical integer value (which is equivalent to "on", but specifies the minimum amount of data before the output is compressed). If the content-length is not known and compression is set to "on" or more aggressive, the output will also be compressed. If not specified, this attribute is set to "off". Note: There is a tradeoff between using compression (saving your bandwidth) and using the sendfile feature (saving your CPU cycles). If the connector supports the sendfile feature, e.g. the NIO2 connector, using sendfile will take precedence over compression. The symptoms will be that static files greater that 48 Kb will be sent uncompressed. You can turn off sendfile by setting useSendfile attribute of the protocol, as documented below, or change the sendfile usage threshold in the configuration of the DefaultServlet in the default conf/web.xml or in the web.xml of your web application- System Property:
- jsidplay2.protocol.h2.compression
-
HTTP2_USE_SENDFILE
static final boolean HTTP2_USE_SENDFILEUse this boolean attribute to enable or disable sendfile capability (default: false). The default value is true. This setting is ignored, and the sendfile capability disabled, if the useAsyncIO attribute of the associated Connector is set to false. The HTTP/2 sendfile capability uses MappedByteBuffer which is known to cause file locking on Windows- System Property:
- jsidplay2.protocol.h2.sendfile
-
HTTP2_OVERHEAD_COUNT_FACTOR
static final int HTTP2_OVERHEAD_COUNT_FACTORThe factor to apply when counting overhead frames to determine if a connection has too high an overhead and should be closed (default: 10). The overhead count starts at -10 * overheadCountFactor. The count is decreased by 20 for each data frame sent or received and each headers frame received. The count is increased by the overheadCountFactor for each setting received, priority frame received and ping received. If the overhead count exceeds zero, the connection is closed. A value of less than 1 disables this protection. In normal usage a value of approximately 20 or higher will close the connection before any streams can complete. If not specified, a default value of 10 will be used- System Property:
- jsidplay2.protocol.h2.overhead.count.factor
-
HTTP2_OVERHEAD_DATA_THRESHOLD
static final int HTTP2_OVERHEAD_DATA_THRESHOLDThe threshold below which the average payload size of the current and previous non-final DATA frames will trigger an increase in the overhead count (see overheadCountFactor, default: 1024). The overhead count will be increased by overheadDataThreshold/average so that the smaller the average, the greater the increase in the overhead count. A value of zero or less disables the checking of non-final DATA frames. If not specified, a default value of 1024 will be used- System Property:
- jsidplay2.protocol.h2.overhead.data.threshold
-
HTTP2_OVERHEAD_WINDOW_UPDATE_THRESHOLD
static final int HTTP2_OVERHEAD_WINDOW_UPDATE_THRESHOLDThe threshold below which the average size of current and previous WINDOW_UPDATE frame will trigger an increase in the overhead count (see overheadCountFactor, default: 1024). The overhead count will be increased by overheadWindowUpdateThreshold/average so that the smaller the average, the greater the increase in the overhead count. A value of zero or less disables the checking of WINDOW_UPDATE frames. If not specified, a default value of 1024 will be used- System Property:
- jsidplay2.protocol.h2.overhead.window.update.threshold
-
MONITORING_THREAD_REFRESH_INTERVAL
static final int MONITORING_THREAD_REFRESH_INTERVALCPU monitoring default refresh interval in ms (0 means disable, default: 1s)- System Property:
- jsidplay2.monitoring_refresh_interval
-
BASE_URL
Server base (default: http://127.0.0.1:8080)- System Property:
- jsidplay2.base.url
-
CACHE_CONTROL_RESPONSE_HEADER_CACHED
Servlet response header to set the maximum age of cacheable resources in s (default: public, max-age=86400)- System Property:
- jsidplay2.cache_control.response.header.cached
-
CACHE_CONTROL_RESPONSE_HEADER_UNCACHED
Servlet response header to disable caching for non-cacheable resources (default: private, no-store, no-cache, must-revalidate)- System Property:
- jsidplay2.cache_control.response.header.uncached
-
UNCAUGHT_EXCEPTION_HANDLER_EXCEPTIONS
static final boolean UNCAUGHT_EXCEPTION_HANDLER_EXCEPTIONSShow uncaught exceptions with full exception stack trace (default: false)- System Property:
- jsidplay2.uncaught.exceptionhandler.exceptions
-