K
- The type of the keys in the map.V
- The type of the values in the lists in the map.public class PrefixedMultivaluedMap<V> extends DelegatingMultivaluedMap<java.lang.String,V>
MultivaluedMap
implementation that wraps another instance and only returns values that are prefixed with the given #prefix
.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
prefixWithDot |
Constructor and Description |
---|
PrefixedMultivaluedMap(java.lang.String prefix,
javax.ws.rs.core.MultivaluedMap<java.lang.String,V> delegate)
Constructor setting the prefix and the delegate.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<V> |
get(java.lang.Object key)
Returns the value assigned to "prefix.key" implicitly converts the key to
String |
java.util.Set<java.lang.String> |
keySet() |
add, addAll, addAll, addFirst, clear, containsKey, containsValue, entrySet, equals, equalsIgnoreValueOrder, getFirst, hashCode, isEmpty, put, putAll, putSingle, remove, size, values
public PrefixedMultivaluedMap(java.lang.String prefix, javax.ws.rs.core.MultivaluedMap<java.lang.String,V> delegate)
public java.util.List<V> get(java.lang.Object key)
String
get
in interface java.util.Map<java.lang.String,java.util.List<V>>
get
in class DelegatingMultivaluedMap<java.lang.String,V>
public java.util.Set<java.lang.String> keySet()
keySet
in interface java.util.Map<java.lang.String,java.util.List<V>>
keySet
in class DelegatingMultivaluedMap<java.lang.String,V>