|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
java.util.Properties
org.apache.nutch.protocol.httpclient.MultiProperties
An extension to Properties
which allows multiple values for a single key.
The get(Object)
method may return a single value or a
Collection
of values.
Field Summary | |
static Logger |
LOG
|
Fields inherited from class java.util.Properties |
defaults |
Constructor Summary | |
MultiProperties()
Creates an empty MultiProperties list with no default values. |
|
MultiProperties(Properties defaults)
Creates an empty MultiProperties list with the specified defaults. |
Method Summary | |
Object |
get(Object key)
Returns the value associated with the given key. |
Object |
put(Object key,
Object value)
Adds the given value using the key |
void |
putAll(Map t)
Add all entries of the given map to this MultiProperties list. |
String |
toString()
A string representation of this MultiProperties list. |
Methods inherited from class java.util.Properties |
getProperty, getProperty, list, list, load, propertyNames, save, setProperty, store |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, hashCode, isEmpty, keys, keySet, rehash, remove, size, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final Logger LOG
Constructor Detail |
public MultiProperties()
public MultiProperties(Properties defaults)
defaults
- A Properties object to use as default valuesMethod Detail |
public Object put(Object key, Object value) throws NullPointerException
key
- The key for the valuevalue
- The value to store in the Property map
NullPointerException
Dictionary.put(java.lang.Object, java.lang.Object)
public void putAll(Map t) throws NullPointerException
Map.keySet()
t
- The Map
object which containts the values to add.
NullPointerException
Map.putAll(java.util.Map)
public Object get(Object key) throws NullPointerException
key
- Used to lookup the value
NullPointerException
Dictionary.get(java.lang.Object)
public String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |