com.cloudcontrolled.api.client.body
Class BodyMultivaluedMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,List<String>>
          extended by com.cloudcontrolled.api.client.body.BodyMultivaluedMap
All Implemented Interfaces:
Serializable, Cloneable, Map<String,List<String>>, javax.ws.rs.core.MultivaluedMap<String,String>

public class BodyMultivaluedMap
extends HashMap<String,List<String>>
implements javax.ws.rs.core.MultivaluedMap<String,String>

BodyMultivaluedMap class.

Author:
Denis Neuling (denisneuling@gmail.com)
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
BodyMultivaluedMap()
           
 
Method Summary
 void add(String key, String value)
          
 String getFirst(String key)
          
 void putSingle(String key, String value)
          
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, 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
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

BodyMultivaluedMap

public BodyMultivaluedMap()
Method Detail

putSingle

public void putSingle(String key,
                      String value)

Specified by:
putSingle in interface javax.ws.rs.core.MultivaluedMap<String,String>

add

public void add(String key,
                String value)

Specified by:
add in interface javax.ws.rs.core.MultivaluedMap<String,String>

getFirst

public String getFirst(String key)

Specified by:
getFirst in interface javax.ws.rs.core.MultivaluedMap<String,String>


Copyright © 2012. All Rights Reserved.