RESTEasy JAX-RS Implementation 2.3.6.Final-redhat-1

org.jboss.resteasy.util
Class PrefixedMultivaluedMap<V>

java.lang.Object
  extended by org.jboss.resteasy.util.DelegatingMultivaluedMap<String,V>
      extended by 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:
Map<String,List<V>>, javax.ws.rs.core.MultivaluedMap<String,V>

public class PrefixedMultivaluedMap<V>
extends DelegatingMultivaluedMap<String,V>

MultivaluedMap implementation that wraps another instance and only returns values that are prefixed with the given #prefix.


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
PrefixedMultivaluedMap(String prefix, javax.ws.rs.core.MultivaluedMap<String,V> delegate)
          Constructor setting the prefix and the delegate.
 
Method Summary
 List<V> get(Object key)
          Returns the value assigned to "prefix.key" implicitly converts the key to String
 Set<String> keySet()
           
 
Methods inherited from class org.jboss.resteasy.util.DelegatingMultivaluedMap
add, clear, containsKey, containsValue, entrySet, equals, getFirst, hashCode, isEmpty, put, putAll, putSingle, remove, size, values
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrefixedMultivaluedMap

public PrefixedMultivaluedMap(String prefix,
                              javax.ws.rs.core.MultivaluedMap<String,V> delegate)
Constructor setting the prefix and the delegate.

Method Detail

get

public List<V> get(Object key)
Returns the value assigned to "prefix.key" implicitly converts the key to String

Specified by:
get in interface Map<String,List<V>>
Overrides:
get in class DelegatingMultivaluedMap<String,V>

keySet

public Set<String> keySet()
Specified by:
keySet in interface Map<String,List<V>>
Overrides:
keySet in class DelegatingMultivaluedMap<String,V>

RESTEasy JAX-RS Implementation 2.3.6.Final-redhat-1

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.