org.eclipse.jetty.util
Class HostMap<TYPE>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,TYPE>
org.eclipse.jetty.util.HostMap<TYPE>
- All Implemented Interfaces:
- Serializable, Cloneable, Map<String,TYPE>
public class HostMap<TYPE>
- extends HashMap<String,TYPE>
- See Also:
- Serialized Form
|
Constructor Summary |
HostMap()
Construct empty HostMap. |
HostMap(int capacity)
Construct empty HostMap. |
| Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, putAll, remove, size, values |
HostMap
public HostMap()
- Construct empty HostMap.
HostMap
public HostMap(int capacity)
- Construct empty HostMap.
- Parameters:
capacity - initial capacity
put
public TYPE put(String host,
TYPE object)
throws IllegalArgumentException
- Specified by:
put in interface Map<String,TYPE>- Overrides:
put in class HashMap<String,TYPE>
- Throws:
IllegalArgumentException- See Also:
HashMap.put(java.lang.Object, java.lang.Object)
get
public TYPE get(Object key)
- Specified by:
get in interface Map<String,TYPE>- Overrides:
get in class HashMap<String,TYPE>
- See Also:
HashMap.get(java.lang.Object)
getLazyMatches
public Object getLazyMatches(String host)
- Retrieve a lazy list of map entries associated with specified
hostname by taking into account the domain suffix matches.
- Parameters:
host - hostname
- Returns:
- lazy list of map entries
Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.