org.gcube.accounting.webservice.configuration
Class PropertiesBaseConfiguration

java.lang.Object
  extended by org.gcube.accounting.webservice.configuration.BaseConfiguration
      extended by org.gcube.accounting.webservice.configuration.PropertiesBaseConfiguration
All Implemented Interfaces:
NetworkConfiguration, RawConfiguration, SecurityConfiguration

public class PropertiesBaseConfiguration
extends BaseConfiguration

This class models Usage Tracker configuration. It relies on the configuration location defined in the context file.


Field Summary
protected static org.apache.log4j.Logger logger
          A logger for this class
 
Constructor Summary
protected PropertiesBaseConfiguration(String path)
          Private constructor
 
Method Summary
 Boolean getBoolean(String key)
           
 Boolean getBoolean(String key, Boolean def)
           
 Integer getInt(String key)
           
 Integer getInt(String key, Integer def)
           
 List<Object> getList(String key)
           
 String getString(String key)
           
 
Methods inherited from class org.gcube.accounting.webservice.configuration.BaseConfiguration
getProxyHost, getProxyPassword, getProxyPort, getProxyUser, getRealm, isAuthnEnabled, isAuthzEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static org.apache.log4j.Logger logger
A logger for this class

Constructor Detail

PropertiesBaseConfiguration

protected PropertiesBaseConfiguration(String path)
Private constructor

Method Detail

getString

public String getString(String key)
Specified by:
getString in interface RawConfiguration
Specified by:
getString in class BaseConfiguration

getBoolean

public Boolean getBoolean(String key)
Specified by:
getBoolean in interface RawConfiguration
Specified by:
getBoolean in class BaseConfiguration

getBoolean

public Boolean getBoolean(String key,
                          Boolean def)
Specified by:
getBoolean in interface RawConfiguration
Specified by:
getBoolean in class BaseConfiguration

getInt

public Integer getInt(String key,
                      Integer def)

getInt

public Integer getInt(String key)

getList

public List<Object> getList(String key)


Copyright © 2013. All Rights Reserved.