Package org.jboss.resteasy.util
Class PrefixedMultivaluedMap<V>
- java.lang.Object
-
- org.jboss.resteasy.util.DelegatingMultivaluedMap<java.lang.String,V>
-
- org.jboss.resteasy.util.PrefixedMultivaluedMap<V>
-
- Type Parameters:
K
- The type of the keys in the map.V
- The type of the values in the lists in the map.
- All Implemented Interfaces:
java.util.Map<java.lang.String,java.util.List<V>>
,javax.ws.rs.core.MultivaluedMap<java.lang.String,V>
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
.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
prefixWithDot
-
Constructor Summary
Constructors Constructor Description PrefixedMultivaluedMap(java.lang.String prefix, javax.ws.rs.core.MultivaluedMap<java.lang.String,V> delegate)
Constructor setting the prefix and the delegate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<V>
get(java.lang.Object key)
Returns the value assigned to "prefix.key" implicitly converts the key toString
java.util.Set<java.lang.String>
keySet()
-
Methods inherited from class org.jboss.resteasy.util.DelegatingMultivaluedMap
add, addAll, addAll, addFirst, clear, containsKey, containsValue, entrySet, equals, equalsIgnoreValueOrder, getFirst, hashCode, isEmpty, put, putAll, putSingle, remove, size, values
-
-
-
-
Constructor Detail
-
PrefixedMultivaluedMap
public PrefixedMultivaluedMap(java.lang.String prefix, javax.ws.rs.core.MultivaluedMap<java.lang.String,V> delegate)
Constructor setting the prefix and the delegate.
-
-
Method Detail
-
get
public java.util.List<V> get(java.lang.Object key)
Returns the value assigned to "prefix.key" implicitly converts the key toString
- Specified by:
get
in interfacejava.util.Map<java.lang.String,java.util.List<V>>
- Overrides:
get
in classDelegatingMultivaluedMap<java.lang.String,V>
-
keySet
public java.util.Set<java.lang.String> keySet()
- Specified by:
keySet
in interfacejava.util.Map<java.lang.String,java.util.List<V>>
- Overrides:
keySet
in classDelegatingMultivaluedMap<java.lang.String,V>
-
-