|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<String,TYPE>
org.eclipse.jetty.util.IPAddressMap<TYPE>
public class IPAddressMap<TYPE>
Internet address map to object
Internet addresses may be specified as absolute address or as a combination of four octet wildcard specifications (a.b.c.d) that are defined as follows.
nnn - an absolute value (0-255)
mmm-nnn - an inclusive range of absolute values,
with following shorthand notations:
nnn- => nnn-255
-nnn => 0-nnn
- => 0-255
a,b,... - a list of wildcard specifications
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
| Constructor Summary | |
|---|---|
IPAddressMap()
Construct empty IPAddressMap. |
|
IPAddressMap(int capacity)
Construct empty IPAddressMap. |
|
| Method Summary | |
|---|---|
TYPE |
get(Object key)
Retrieve the object mapped to the specified internet address literal |
Object |
getLazyMatches(String addr)
Retrieve a lazy list of map entries associated with specified internet address by taking into account the wildcard specifications. |
Map.Entry<String,TYPE> |
getMatch(String addr)
Retrieve the first map entry that is associated with the specified internet address by taking into account the wildcard specifications. |
TYPE |
match(String addr)
Retrieve the first object that is associated with the specified internet address by taking into account the wildcard specifications. |
TYPE |
put(String addrSpec,
TYPE object)
Insert a new internet address into map |
| Methods inherited from class java.util.HashMap |
|---|
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public IPAddressMap()
public IPAddressMap(int capacity)
capacity - initial capacity| Method Detail |
|---|
public TYPE put(String addrSpec,
TYPE object)
throws IllegalArgumentException
put in interface Map<String,TYPE>put in class HashMap<String,TYPE>IllegalArgumentExceptionHashMap.put(java.lang.Object, java.lang.Object)public TYPE get(Object key)
get in interface Map<String,TYPE>get in class HashMap<String,TYPE>HashMap.get(java.lang.Object)public TYPE match(String addr)
addr - internet address
public Map.Entry<String,TYPE> getMatch(String addr)
addr - internet address
public Object getLazyMatches(String addr)
addr - internet address
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||