org.glite.security.util
Class CaseInsensitiveProperties

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<java.lang.Object,java.lang.Object>
          extended by java.util.Properties
              extended by org.glite.security.util.CaseInsensitiveProperties
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,java.lang.Object>

public class CaseInsensitiveProperties
extends java.util.Properties

See Also:
Serialized Form

Constructor Summary
CaseInsensitiveProperties()
           
CaseInsensitiveProperties(java.util.Properties defaults)
          Creates a new instance of CaseInsensitiveProperties
 
Method Summary
 java.lang.String getProperty(java.lang.String key)
           
 java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
           
 void load(java.io.InputStream inputStream)
          Loads the properties from the stream inputStream.
 void loadProperties(java.util.Properties inProperties)
          Loads the properties from inProperties into this instance.
 java.lang.Object remove(java.lang.Object keyObj)
           
 java.lang.Object setProperty(java.lang.String key, java.lang.String value)
           
 
Methods inherited from class java.util.Properties
list, list, loadFromXML, propertyNames, save, store, storeToXML, storeToXML
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, size, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CaseInsensitiveProperties

public CaseInsensitiveProperties(java.util.Properties defaults)
Creates a new instance of CaseInsensitiveProperties


CaseInsensitiveProperties

public CaseInsensitiveProperties()
Method Detail

getProperty

public java.lang.String getProperty(java.lang.String key)
Overrides:
getProperty in class java.util.Properties

getProperty

public java.lang.String getProperty(java.lang.String key,
                                    java.lang.String defaultValue)
Overrides:
getProperty in class java.util.Properties

setProperty

public java.lang.Object setProperty(java.lang.String key,
                                    java.lang.String value)
Overrides:
setProperty in class java.util.Properties

load

public void load(java.io.InputStream inputStream)
          throws java.io.IOException
Loads the properties from the stream inputStream.

Overrides:
load in class java.util.Properties
Throws:
java.io.IOException

loadProperties

public void loadProperties(java.util.Properties inProperties)
Loads the properties from inProperties into this instance. The defaults from inProperties are loaded first and the non-default properties are set after that. Thus default setting (Key1=value1) is overridden with non-default setting (key1=value2).


remove

public java.lang.Object remove(java.lang.Object keyObj)
                        throws java.lang.IllegalArgumentException
Specified by:
remove in interface java.util.Map<java.lang.Object,java.lang.Object>
Overrides:
remove in class java.util.Hashtable<java.lang.Object,java.lang.Object>
Throws:
java.lang.IllegalArgumentException