Package 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>
-
- Type Parameters:
TYPE- the element type
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,TYPE>
public class HostMap<TYPE> extends HashMap<String,TYPE>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TYPEget(Object key)ObjectgetLazyMatches(String host)Retrieve a lazy list of map entries associated with specified hostname by taking into account the domain suffix matches.TYPEput(String host, TYPE object)-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Method Detail
-
put
public TYPE put(String host, TYPE object) throws IllegalArgumentException
- Specified by:
putin interfaceMap<String,TYPE>- Overrides:
putin classHashMap<String,TYPE>- Throws:
IllegalArgumentException- See Also:
HashMap.put(java.lang.Object, java.lang.Object)
-
-