org.jwall.rbl.data
Class RblSettings

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<Object,Object>
          extended by java.util.Properties
              extended by org.jwall.rbl.data.RblSettings
All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>

public class RblSettings
extends Properties

This class provides a container for basic settings for the RblServer. The class basically is just Java Properties class extended by a set of default settings.

Author:
Christian Bockermann <chris@jwall.org>
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
RblSettings()
          Creates a new set of default settings.
 
Method Summary
static RblSettings getDefaults()
          This static method returns the set of default properties for any RblServer.
static RblSettings read(String file)
           This method reads properties from the given file.
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RblSettings

public RblSettings()
Creates a new set of default settings.

Method Detail

getDefaults

public static RblSettings getDefaults()
This static method returns the set of default properties for any RblServer.

Returns:

read

public static RblSettings read(String file)
                        throws Exception

This method reads properties from the given file. It will determine the default settings by the method getDefaults() and override all properties found in the given file.

In a addition to that, the system properties are checked as well. Any system property, e.g. set using

    java ... -Drbl.domain=rbl.localnet  ...
 

will override properties found in the defaults or in the specified settings file.

Parameters:
file -
Returns:
Throws:
Exception


Copyright © 2014. All Rights Reserved.