org.apache.turbine.services.resources
Class TurbineResources

java.lang.Object
  extended byorg.apache.turbine.services.resources.TurbineResources

Deprecated. as of Turbine 2.2 use Turbine.getConfiguration()

public abstract class TurbineResources
extends java.lang.Object

This is a static class for defining the default Turbine configuration keys used by core Turbine components.

Version:
$Id: TurbineResources.java 278958 2005-09-06 09:35:39Z henning $
Author:
Jon S. Stevens, Greg Ritter, Raphaël Luta, Jason van Zyl, Henning P. Schmiedehausen

Field Summary
static java.lang.String ACTION_CACHE_SIZE_KEY
          Deprecated. Use the corresponding constant from TurbineConstants
static java.lang.String FILE_SERVER
          Deprecated. No longer used
static java.lang.String LAYOUT_CACHE_SIZE_KEY
          Deprecated. Use the corresponding constant from TurbineConstants
static java.lang.String LOGIN_ERROR
          Deprecated. Use the corresponding constant from TurbineConstants
static java.lang.String LOGIN_MESSAGE
          Deprecated. Use the corresponding constant from TurbineConstants
static java.lang.String LOGIN_MESSAGE_NOSCREEN
          Deprecated. Use the corresponding constant from TurbineConstants
static java.lang.String LOGOUT_MESSAGE
          Deprecated. Use the corresponding constant from TurbineConstants
static java.lang.String MAIL_SERVER_KEY
          Deprecated. Use the corresponding constant from TurbineConstants
static java.lang.String MAX_FILE_SIZE_KEY
          Deprecated. No longer used
static java.lang.String MODULE_CACHE_KEY
          Deprecated. Use the corresponding constant from TurbineConstants
static java.lang.String MODULE_PACKAGES_KEY
          Deprecated. Use the corresponding constant from TurbineConstants
static java.lang.String NAVIGATION_CACHE_SIZE_KEY
          Deprecated. Use the corresponding constant from TurbineConstants
static java.lang.String PAGE_CACHE_SIZE_KEY
          Deprecated. Use the corresponding constant from TurbineConstants
static java.lang.String SCREEN_CACHE_SIZE_KEY
          Deprecated. Use the corresponding constant from TurbineConstants
static java.lang.String USER_CLASS_KEY
          Deprecated. Use the corresponding constant from SecurityService
 
Constructor Summary
TurbineResources()
          Deprecated.  
 
Method Summary
static boolean getBoolean(java.lang.String name)
          Deprecated. The purpose of this method is to get the configuration resource with the given name as a boolean value.
static boolean getBoolean(java.lang.String name, boolean def)
          Deprecated. The purppose of this method is to get the configuration resource with the given name as a boolean value, or a default value.
static org.apache.commons.configuration.Configuration getConfiguration()
          Deprecated. Get the configuration.
static org.apache.commons.configuration.Configuration getConfiguration(java.lang.String prefix)
          Deprecated. The purpose of this method is to extract a subset configuration sharing a common name prefix.
static double getDouble(java.lang.String name)
          Deprecated. The purpose of this method is to get the configuration resource with the given name as a double.
static double getDouble(java.lang.String name, double def)
          Deprecated. The purpose of this method is to get the configuration resource with the given name as a double, or a default value.
static float getFloat(java.lang.String name)
          Deprecated. The purpose of this method is to get the configuration resource with the given name as a float.
static float getFloat(java.lang.String name, float def)
          Deprecated. The purpose of this method is to get the configuration resource with the given name as a float, or a default value.
static int getInt(java.lang.String name)
          Deprecated. The purpose of this method is to get the configuration resource with the given name as an integer.
static int getInt(java.lang.String name, int def)
          Deprecated. The purpose of this method is to get the configuration resource with the given name as an integer, or a default value.
static java.util.Iterator getKeys()
          Deprecated. Get the list of the keys contained in the configuration repository.
static java.util.Iterator getKeys(java.lang.String prefix)
          Deprecated. Get the list of the keys contained in the configuration repository that match the specified prefix.
static java.util.List getList(java.lang.String name)
          Deprecated. The purpose of this method is to get the configuration resource with the given name as a vector.
static java.util.List getList(java.lang.String name, java.util.List def)
          Deprecated. The purpose of this method is to get the configuration resource with the given name as a vector, or a default value.
static long getLong(java.lang.String name)
          Deprecated. The purpose of this method is to get the configuration resource with the given name as a long.
static long getLong(java.lang.String name, long def)
          Deprecated. The purpose of this method is to get the configuration resource with the given name as a long, or a default value.
static java.lang.String getString(java.lang.String name)
          Deprecated. The purpose of this method is to get the configuration resource with the given name as a string.
static java.lang.String getString(java.lang.String name, java.lang.String def)
          Deprecated. The purpose of this method is to get the configuration resource with the given name as a string, or a default value.
static java.lang.String[] getStringArray(java.lang.String name)
          Deprecated. The purpose of this method is to get the configuration resource with the given name as a string array.
static void setProperty(java.lang.String key, java.lang.String value)
          Deprecated. Set a property in with a key=value pair.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAIL_SERVER_KEY

public static final java.lang.String MAIL_SERVER_KEY
Deprecated. Use the corresponding constant from TurbineConstants

See Also:
Constant Field Values

MODULE_CACHE_KEY

public static final java.lang.String MODULE_CACHE_KEY
Deprecated. Use the corresponding constant from TurbineConstants

See Also:
Constant Field Values

MODULE_PACKAGES_KEY

public static final java.lang.String MODULE_PACKAGES_KEY
Deprecated. Use the corresponding constant from TurbineConstants

See Also:
Constant Field Values

ACTION_CACHE_SIZE_KEY

public static final java.lang.String ACTION_CACHE_SIZE_KEY
Deprecated. Use the corresponding constant from TurbineConstants

See Also:
Constant Field Values

LAYOUT_CACHE_SIZE_KEY

public static final java.lang.String LAYOUT_CACHE_SIZE_KEY
Deprecated. Use the corresponding constant from TurbineConstants

See Also:
Constant Field Values

NAVIGATION_CACHE_SIZE_KEY

public static final java.lang.String NAVIGATION_CACHE_SIZE_KEY
Deprecated. Use the corresponding constant from TurbineConstants

See Also:
Constant Field Values

PAGE_CACHE_SIZE_KEY

public static final java.lang.String PAGE_CACHE_SIZE_KEY
Deprecated. Use the corresponding constant from TurbineConstants

See Also:
Constant Field Values

SCREEN_CACHE_SIZE_KEY

public static final java.lang.String SCREEN_CACHE_SIZE_KEY
Deprecated. Use the corresponding constant from TurbineConstants

See Also:
Constant Field Values

USER_CLASS_KEY

public static final java.lang.String USER_CLASS_KEY
Deprecated. Use the corresponding constant from SecurityService

See Also:
Constant Field Values

MAX_FILE_SIZE_KEY

public static final java.lang.String MAX_FILE_SIZE_KEY
Deprecated. No longer used

See Also:
Constant Field Values

FILE_SERVER

public static final java.lang.String FILE_SERVER
Deprecated. No longer used

See Also:
Constant Field Values

LOGIN_MESSAGE

public static final java.lang.String LOGIN_MESSAGE
Deprecated. Use the corresponding constant from TurbineConstants

See Also:
Constant Field Values

LOGIN_ERROR

public static final java.lang.String LOGIN_ERROR
Deprecated. Use the corresponding constant from TurbineConstants

See Also:
Constant Field Values

LOGIN_MESSAGE_NOSCREEN

public static final java.lang.String LOGIN_MESSAGE_NOSCREEN
Deprecated. Use the corresponding constant from TurbineConstants

See Also:
Constant Field Values

LOGOUT_MESSAGE

public static final java.lang.String LOGOUT_MESSAGE
Deprecated. Use the corresponding constant from TurbineConstants

See Also:
Constant Field Values
Constructor Detail

TurbineResources

public TurbineResources()
Deprecated. 
Method Detail

setProperty

public static void setProperty(java.lang.String key,
                               java.lang.String value)
Deprecated. 
Set a property in with a key=value pair.

Parameters:
key -
value -

getBoolean

public static boolean getBoolean(java.lang.String name)
Deprecated. 
The purpose of this method is to get the configuration resource with the given name as a boolean value.

Parameters:
name - The resource name.
Returns:
The value of the named resource as a boolean.

getBoolean

public static boolean getBoolean(java.lang.String name,
                                 boolean def)
Deprecated. 
The purppose of this method is to get the configuration resource with the given name as a boolean value, or a default value.

Parameters:
name - The resource name.
def - The default value of the resource.
Returns:
The value of the named resource as a boolean.

getDouble

public static double getDouble(java.lang.String name)
Deprecated. 
The purpose of this method is to get the configuration resource with the given name as a double.

Parameters:
name - The resoource name.
Returns:
The value of the named resource as double.

getDouble

public static double getDouble(java.lang.String name,
                               double def)
Deprecated. 
The purpose of this method is to get the configuration resource with the given name as a double, or a default value.

Parameters:
name - The resource name.
def - The default value of the resource.
Returns:
The value of the named resource as a double.

getFloat

public static float getFloat(java.lang.String name)
Deprecated. 
The purpose of this method is to get the configuration resource with the given name as a float.

Parameters:
name - The resource name.
Returns:
The value of the resource as a float.

getFloat

public static float getFloat(java.lang.String name,
                             float def)
Deprecated. 
The purpose of this method is to get the configuration resource with the given name as a float, or a default value.

Parameters:
name - The resource name.
def - The default value of the resource.
Returns:
The value of the resource as a float.

getInt

public static int getInt(java.lang.String name)
Deprecated. 
The purpose of this method is to get the configuration resource with the given name as an integer.

Parameters:
name - The resource name.
Returns:
The value of the resource as an integer.

getInt

public static int getInt(java.lang.String name,
                         int def)
Deprecated. 
The purpose of this method is to get the configuration resource with the given name as an integer, or a default value.

Parameters:
name - The resource name.
def - The default value of the resource.
Returns:
The value of the resource as an integer.

getKeys

public static java.util.Iterator getKeys()
Deprecated. 
Get the list of the keys contained in the configuration repository.

Returns:
An Enumeration with all the keys.

getKeys

public static java.util.Iterator getKeys(java.lang.String prefix)
Deprecated. 
Get the list of the keys contained in the configuration repository that match the specified prefix.

Parameters:
prefix - A String prefix to test against.
Returns:
An Enumeration of keys that match the prefix.

getLong

public static long getLong(java.lang.String name)
Deprecated. 
The purpose of this method is to get the configuration resource with the given name as a long.

Parameters:
name - The resource name.
Returns:
The value of the resource as a long.

getLong

public static long getLong(java.lang.String name,
                           long def)
Deprecated. 
The purpose of this method is to get the configuration resource with the given name as a long, or a default value.

Parameters:
name - The resource name.
def - The default value of the resource.
Returns:
The value of the resource as a long.

getString

public static java.lang.String getString(java.lang.String name)
Deprecated. 
The purpose of this method is to get the configuration resource with the given name as a string.

Parameters:
name - The resource name.
Returns:
The value of the resource as a string.

getString

public static java.lang.String getString(java.lang.String name,
                                         java.lang.String def)
Deprecated. 
The purpose of this method is to get the configuration resource with the given name as a string, or a default value.

Parameters:
name - The resource name.
def - The default value of the resource.
Returns:
The value of the resource as a string.

getStringArray

public static java.lang.String[] getStringArray(java.lang.String name)
Deprecated. 
The purpose of this method is to get the configuration resource with the given name as a string array.

Parameters:
name - The resource name.
Returns:
The value of the resource as a string array.

getList

public static java.util.List getList(java.lang.String name)
Deprecated. 
The purpose of this method is to get the configuration resource with the given name as a vector.

Parameters:
name - The resource name.
Returns:
The value of the resource as a vector.

getList

public static java.util.List getList(java.lang.String name,
                                     java.util.List def)
Deprecated. 
The purpose of this method is to get the configuration resource with the given name as a vector, or a default value.

Parameters:
name - The resource name.
def - The default value of the resource.
Returns:
The value of the resource as a vector.

getConfiguration

public static org.apache.commons.configuration.Configuration getConfiguration()
Deprecated. 
Get the configuration.

Returns:
configuration.

getConfiguration

public static org.apache.commons.configuration.Configuration getConfiguration(java.lang.String prefix)
Deprecated. 
The purpose of this method is to extract a subset configuration sharing a common name prefix.

Parameters:
prefix - the common name prefix
Returns:
A Configuration providing the subset of configuration.


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.