| java.lang.Object org.apache.roller.config.RollerConfig
RollerConfig | public class RollerConfig (Code) | | This is the single entry point for accessing configuration properties in Roller.
|
getBooleanProperty | public static boolean getBooleanProperty(String name)(Code) | | Retrieve a property as a boolean ... defaults to false if not present.
|
getBooleanProperty | public static boolean getBooleanProperty(String name, boolean defaultValue)(Code) | | Retrieve a property as a boolean ... with specified default if not present.
|
getIntProperty | public static int getIntProperty(String name)(Code) | | Retrieve a property as an int ... defaults to 0 if not present.
|
getIntProperty | public static int getIntProperty(String name, int defaultValue)(Code) | | Retrieve a property as a int ... with specified default if not present.
|
getProperty | public static String getProperty(String key)(Code) | | Retrieve a property value
Parameters: key - Name of the property String Value of property requested, null if not found |
getProperty | public static String getProperty(String key, String defaultValue)(Code) | | Retrieve a property value
Parameters: key - Name of the property Parameters: defaultValue - Default value of property if not found String Value of property requested or defaultValue |
keys | public static Enumeration keys()(Code) | | Retrieve all property keys
Enumeration A list of all keys |
setThemesDir | public static void setThemesDir(String path)(Code) | | Set the "themes.dir" property at runtime.
Properties are meant to be read-only, but we make this exception because
we know that some people are still using their themes in the webapp
context and we can only get that path at runtime (and for unit testing).
This property is *not* persisted in any way.
|
setUploadsDir | public static void setUploadsDir(String path)(Code) | | Set the "uploads.dir" property at runtime.
Properties are meant to be read-only, but we make this exception because
we know that some people are still writing their uploads to the webapp
context and we can only get that path at runtime (and for unit testing).
This property is *not* persisted in any way.
|
|
|