Package com.iizigo.webserver
Class Preference
java.lang.Object
org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer
com.iizigo.webserver.Preference
public class Preference extends org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer
Class used to initialize default preference values.
- Author:
- Christopher Mindus
Field Summary
FieldsModifier and TypeFieldDescriptionThe bind address.intString caching.intString caching.intString caching.The domain name.booleanTracing.External web server URL, including protocol and potential port number.The PKCS#12 KeyStore file name.The password to use for the KeyStore.booleanToS accepted.The ToS URI.booleanFlag to use Gzip compression.intThe Web Socket start port.intThe Web Socket end port.intThe Secure Web Socket start port.intThe Secure Web Socket end port.Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionstatic PreferenceGets the instance.voidInitializes the preferences store for all the terminal preferences.voidSaves 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.wsPort1
public int wsPort1The Web Socket start port.wsPort2
public int wsPort2The Web Socket end port.wsSecurePort1
public int wsSecurePort1The Secure Web Socket start port.wsSecurePort2
public int wsSecurePort2The Secure Web Socket end 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.
initializeDefaultPreferences
public void initializeDefaultPreferences()Initializes the preferences store for all the terminal preferences.- Specified by:
initializeDefaultPreferencesin classorg.eclipse.core.runtime.preferences.AbstractPreferenceInitializer- See Also:
AbstractPreferenceInitializer.initializeDefaultPreferences()
saveToStore
public void saveToStore()Saves a "page" to the store.