Package net.targetr.wtm3
Class Settings
java.lang.Object
net.targetr.wtm3.Settings
Loads default settings and reads settings from properties files.
- Author:
- Dr Michael Gardiner
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanPerform maintenance tasks in the backgroundintThe listen backlog.String[]Supported Cipher suites.HTML error page formatter.Internal keystore key password.Keystore password.Path to keystore.Type of keystore.The bind address or null for all.intMax size of HTTP request line and headersintMax time to read the HTTP headersDomain to assume for clients without SNI.intThe listen port.intMax size of HTTP request bodyintMax time to read the HTTP request bodybooleanSpecifies if resource cache should be disabled.booleanRemove senstive data from logs that are accessible onlineAlias for self signed root.The configured server string.The SSL Context protocol.String[]Supported SSL protocols.Custom SSL domain distinguished name.Custom SSL root distinguished name.booleanEnable TCP keep alivebooleanDisable Nagle's algorithmintMax time to block on socket closeintMax time to block on socket readintSize of the buffer used for data transfers.intMax size of a WebSocket frameintMax size of a WebSocket message -
Method Summary
Modifier and TypeMethodDescriptionstatic Settingsget()Gets the singleton Settings instance.voidload(Properties props) Populates the public fields of this class from a properties object.
-
Field Details
-
server
The configured server string. -
port
public int portThe listen port. -
backlog
public int backlogThe listen backlog. -
listenAddr
The bind address or null for all. -
transferBufferSize
public int transferBufferSizeSize of the buffer used for data transfers. Should fit in CPU cache. -
tcpSocketTimeout
public int tcpSocketTimeoutMax time to block on socket read -
tcpSocketLingerSeconds
public int tcpSocketLingerSecondsMax time to block on socket close -
tcpNoDelay
public boolean tcpNoDelayDisable Nagle's algorithm -
tcpKeepAlive
public boolean tcpKeepAliveEnable TCP keep alive -
metaDataRequestTimeout
public int metaDataRequestTimeoutMax time to read the HTTP headers -
metadataReadBufferSize
public int metadataReadBufferSizeMax size of HTTP request line and headers -
requestBodyMaxSize
public int requestBodyMaxSizeMax size of HTTP request body -
requestBodyTimeout
public int requestBodyTimeoutMax time to read the HTTP request body -
websocketMaxFrameSize
public int websocketMaxFrameSizeMax size of a WebSocket frame -
websocketMaxMessageSize
public int websocketMaxMessageSizeMax size of a WebSocket message -
resourceCacheEnabled
public boolean resourceCacheEnabledSpecifies if resource cache should be disabled. Disable for fast testing without cache invalidation. -
sanitizeWebLogs
public boolean sanitizeWebLogsRemove senstive data from logs that are accessible online -
backgroundMaintenance
public boolean backgroundMaintenancePerform maintenance tasks in the background -
sslContext
The SSL Context protocol. -
sslProtocols
Supported SSL protocols. -
cipherSuites
Supported Cipher suites. -
noSniDomain
Domain to assume for clients without SNI. -
keyStorePath
Path to keystore. -
keyStoreType
Type of keystore. -
keyStorePassword
Keystore password. -
keystoreInternalKeyPassword
Internal keystore key password. -
selfSignedAlias
Alias for self signed root. -
sslSelfSignedRootDn
Custom SSL root distinguished name. -
sslSelfSignedDomainDn
Custom SSL domain distinguished name. -
errorFormatter
HTML error page formatter.
-
-
Method Details
-
get
Gets the singleton Settings instance.- Returns:
- the singleton Settings
-
load
Populates the public fields of this class from a properties object.- Parameters:
props- A properties object to read values from.
-