Package com.iizigo.webserver
Class Preference
java.lang.Object
org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer
com.iizigo.webserver.Preference
Class used to initialize default preference values.
- Author:
- Christopher Mindus
Field Summary
Modifier and TypeFieldDescriptionThe bind address.int
String caching.int
String caching.int
String caching.The domain name.boolean
Tracing.External web server URL, including protocol and potential port number.The PKCS#12 KeyStore file name.The password to use for the KeyStore.boolean
ToS accepted.The ToS URI.boolean
Flag to use Gzip compression.int
The Web Socket HTTP port.int
The Secure Web Socket HTTPS port.Constructor Summary
Method Summary
Modifier and TypeMethodDescriptionCreates the port configurations from the preferences.static Preference
Gets the instance.void
Initializes the preferences store for all the terminal preferences.void
Saves a "page" to the store.
Field Details
extServerURL
External web server URL, including protocol and potential port number.This setting must be set if the retrieval of the local host name e.g. does not include the domain DNS suffix, or that the name is known on external nets differently than on the internal network. This host name is typically used for the OAuth 2.0 authentication callback URL's.
bindAddress
The bind address.wsPort
public int wsPortThe Web Socket HTTP port.wsSecurePort
public int wsSecurePortThe Secure Web Socket HTTPS port.useGzip
public boolean useGzipFlag to use Gzip compression.cacheCount
public int cacheCountString caching.cacheMin
public int cacheMinString caching.cacheMax
public int cacheMaxString caching.doVerboseTrace
public boolean doVerboseTraceTracing.keyStore
The PKCS#12 KeyStore file name.password
The password to use for the KeyStore.tosURI
The ToS URI.tosAccepted
public boolean tosAcceptedToS accepted.domainName
The domain name.
Constructor Details
Preference
public Preference()Construction of the class.
Method Details
getInstance
Gets the instance.- Returns:
- The single instance of the preferences.
createPortConfigs
Creates the port configurations from the preferences.initializeDefaultPreferences
public void initializeDefaultPreferences()Initializes the preferences store for all the terminal preferences.- Specified by:
initializeDefaultPreferences
in classAbstractPreferenceInitializer
- See Also:
saveToStore
public void saveToStore()Saves a "page" to the store.