Class UriPatternMap<V>
- Type Parameters:
V-RequestFilterorResponseFilter
- All Implemented Interfaces:
Serializable,Cloneable,Map<UriPattern,,List<V>> javax.ws.rs.core.MultivaluedMap<UriPattern,,V> ExtMultivaluedMap<UriPattern,V>
public class UriPatternMap<V>
extends HashMap<UriPattern,List<V>>
implements ExtMultivaluedMap<UriPattern,V>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(UriPattern uriPattern, V value) getFirst(UriPattern uriPattern) getList(UriPattern uriPattern) voidputSingle(UriPattern uriPattern, V value) Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Constructor Details
-
UriPatternMap
public UriPatternMap()
-
-
Method Details
-
getList
- Specified by:
getListin interfaceExtMultivaluedMap<UriPattern,V> - Parameters:
uriPattern- the key- Returns:
- List of Object mapped to specified
uriPattern. Method never return null, empty List instead.
-
add
- Specified by:
addin interfacejavax.ws.rs.core.MultivaluedMap<UriPattern,V>
-
getFirst
- Specified by:
getFirstin interfacejavax.ws.rs.core.MultivaluedMap<UriPattern,V>
-
putSingle
- Specified by:
putSinglein interfacejavax.ws.rs.core.MultivaluedMap<UriPattern,V>
-