org.jboss.resteasy.client.core.executors
Class URLConnectionHeaderWrapper
java.lang.Object
org.jboss.resteasy.client.core.executors.URLConnectionHeaderWrapper
- All Implemented Interfaces:
- java.util.Map<java.lang.String,java.util.List<java.lang.String>>, MultivaluedMap<java.lang.String,java.lang.String>
public class URLConnectionHeaderWrapper
- extends java.lang.Object
- implements MultivaluedMap<java.lang.String,java.lang.String>
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Method Summary |
void |
add(java.lang.String key,
java.lang.String value)
Add a value to the current list of values for the supplied key. |
protected void |
addResponseHeader(java.lang.String key,
java.lang.Object value)
|
void |
clear()
|
boolean |
containsKey(java.lang.Object o)
|
boolean |
containsValue(java.lang.Object o)
|
java.util.Set<java.util.Map.Entry<java.lang.String,java.util.List<java.lang.String>>> |
entrySet()
|
boolean |
equals(java.lang.Object o)
|
java.util.List<java.lang.String> |
get(java.lang.Object o)
|
java.lang.String |
getFirst(java.lang.String key)
A shortcut to get the first value of the supplied key. |
int |
hashCode()
|
boolean |
isEmpty()
|
java.util.Set<java.lang.String> |
keySet()
|
java.util.List<java.lang.String> |
put(java.lang.String s,
java.util.List<java.lang.String> objs)
|
void |
putAll(java.util.Map<? extends java.lang.String,? extends java.util.List<java.lang.String>> map)
|
void |
putSingle(java.lang.String key,
java.lang.String value)
Set the key's value to be a one item list consisting of the supplied value. |
java.util.List<java.lang.String> |
remove(java.lang.Object o)
|
int |
size()
|
void |
sync()
|
java.util.Collection<java.util.List<java.lang.String>> |
values()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
URLConnectionHeaderWrapper
public URLConnectionHeaderWrapper(java.net.URLConnection connection,
ResteasyProviderFactory factory)
sync
public void sync()
putSingle
public void putSingle(java.lang.String key,
java.lang.String value)
- Description copied from interface:
MultivaluedMap
- Set the key's value to be a one item list consisting of the supplied value.
Any existing values will be replaced.
- Specified by:
putSingle
in interface MultivaluedMap<java.lang.String,java.lang.String>
- Parameters:
key
- the keyvalue
- the single value of the key
add
public void add(java.lang.String key,
java.lang.String value)
- Description copied from interface:
MultivaluedMap
- Add a value to the current list of values for the supplied key.
- Specified by:
add
in interface MultivaluedMap<java.lang.String,java.lang.String>
- Parameters:
key
- the keyvalue
- the value to be added.
addResponseHeader
protected void addResponseHeader(java.lang.String key,
java.lang.Object value)
getFirst
public java.lang.String getFirst(java.lang.String key)
- Description copied from interface:
MultivaluedMap
- A shortcut to get the first value of the supplied key.
- Specified by:
getFirst
in interface MultivaluedMap<java.lang.String,java.lang.String>
- Parameters:
key
- the key
- Returns:
- the first value for the specified key or null if the key is
not in the map.
size
public int size()
- Specified by:
size
in interface java.util.Map<java.lang.String,java.util.List<java.lang.String>>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface java.util.Map<java.lang.String,java.util.List<java.lang.String>>
containsKey
public boolean containsKey(java.lang.Object o)
- Specified by:
containsKey
in interface java.util.Map<java.lang.String,java.util.List<java.lang.String>>
containsValue
public boolean containsValue(java.lang.Object o)
- Specified by:
containsValue
in interface java.util.Map<java.lang.String,java.util.List<java.lang.String>>
get
public java.util.List<java.lang.String> get(java.lang.Object o)
- Specified by:
get
in interface java.util.Map<java.lang.String,java.util.List<java.lang.String>>
put
public java.util.List<java.lang.String> put(java.lang.String s,
java.util.List<java.lang.String> objs)
- Specified by:
put
in interface java.util.Map<java.lang.String,java.util.List<java.lang.String>>
remove
public java.util.List<java.lang.String> remove(java.lang.Object o)
- Specified by:
remove
in interface java.util.Map<java.lang.String,java.util.List<java.lang.String>>
putAll
public void putAll(java.util.Map<? extends java.lang.String,? extends java.util.List<java.lang.String>> map)
- Specified by:
putAll
in interface java.util.Map<java.lang.String,java.util.List<java.lang.String>>
clear
public void clear()
- Specified by:
clear
in interface java.util.Map<java.lang.String,java.util.List<java.lang.String>>
keySet
public java.util.Set<java.lang.String> keySet()
- Specified by:
keySet
in interface java.util.Map<java.lang.String,java.util.List<java.lang.String>>
values
public java.util.Collection<java.util.List<java.lang.String>> values()
- Specified by:
values
in interface java.util.Map<java.lang.String,java.util.List<java.lang.String>>
entrySet
public java.util.Set<java.util.Map.Entry<java.lang.String,java.util.List<java.lang.String>>> entrySet()
- Specified by:
entrySet
in interface java.util.Map<java.lang.String,java.util.List<java.lang.String>>
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interface java.util.Map<java.lang.String,java.util.List<java.lang.String>>
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Specified by:
hashCode
in interface java.util.Map<java.lang.String,java.util.List<java.lang.String>>
- Overrides:
hashCode
in class java.lang.Object
Copyright © 2010. All Rights Reserved.