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 TypeFieldDescriptionint
String[]
int
Max size of HTTP request line and headersint
Max time to read the HTTP headersint
int
Max size of HTTP request bodyint
Max time to read the HTTP request bodyString[]
boolean
boolean
Disable Nagle's algorithmint
Max time to block on socket read -
Method Summary
Modifier and TypeMethodDescriptionstatic Settings
get()
void
load
(Properties props) Populates the public fields of this class from a properties object.
-
Field Details
-
server
-
port
public int port -
backlog
public int backlog -
listenAddr
-
tcpSocketTimeout
public int tcpSocketTimeoutMax time to block on socket read -
tcpNoDelay
public boolean tcpNoDelayDisable Nagle's algorithm -
tcpKeepAlive
public boolean tcpKeepAlive -
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 -
sslContext
-
sslProtocols
-
cipherSuites
-
noSniDomain
-
keyStorePath
-
keyStoreType
-
keyStorePassword
-
keystoreInternalKeyPassword
-
selfSignedAlias
-
sslSelfSignedRootDn
-
sslSelfSignedDomainDn
-
-
Method Details
-
get
-
load
Populates the public fields of this class from a properties object.- Parameters:
props
- A properties object to read values from.
-