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
Fields Modifier and Type Field Description java.lang.String
bindAddress
The bind address.int
cacheCount
String caching.int
cacheMax
String caching.int
cacheMin
String caching.java.lang.String
domainName
The domain name.boolean
doVerboseTrace
Tracing.java.lang.String
extServerURL
External web server URL, including protocol and potential port number.java.lang.String
keyStore
The PKCS#12 KeyStore file name.java.lang.String
password
The password to use for the KeyStore.boolean
tosAccepted
ToS accepted.java.lang.String
tosURI
The ToS URI.boolean
useGzip
Flag to use Gzip compression.int
wsPort1
The Web Socket start port.int
wsPort2
The Web Socket end port.int
wsSecurePort1
The Secure Web Socket start port.int
wsSecurePort2
The Secure Web Socket end port.
Constructor Summary
Constructors Constructor Description Preference()
Construction of the class.
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Preference
getInstance()
Gets the instance.void
initializeDefaultPreferences()
Initializes the preferences store for all the terminal preferences.void
saveToStore()
Saves a "page" to the store.
Field Detail
extServerURL
public java.lang.String 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
public java.lang.String bindAddress
The bind address.
wsPort1
public int wsPort1
The Web Socket start port.
wsPort2
public int wsPort2
The Web Socket end port.
wsSecurePort1
public int wsSecurePort1
The Secure Web Socket start port.
wsSecurePort2
public int wsSecurePort2
The Secure Web Socket end port.
useGzip
public boolean useGzip
Flag to use Gzip compression.
cacheCount
public int cacheCount
String caching.
cacheMin
public int cacheMin
String caching.
cacheMax
public int cacheMax
String caching.
doVerboseTrace
public boolean doVerboseTrace
Tracing.
keyStore
public java.lang.String keyStore
The PKCS#12 KeyStore file name.
password
public java.lang.String password
The password to use for the KeyStore.
tosURI
public java.lang.String tosURI
The ToS URI.
tosAccepted
public boolean tosAccepted
ToS accepted.
domainName
public java.lang.String domainName
The domain name.
Method Detail
getInstance
public static Preference 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:
initializeDefaultPreferences
in classorg.eclipse.core.runtime.preferences.AbstractPreferenceInitializer
- See Also:
AbstractPreferenceInitializer.initializeDefaultPreferences()
saveToStore
public void saveToStore()
Saves a "page" to the store.