org.jboss.resteasy.plugins.server.servlet
Class HttpServletResponseHeaders

java.lang.Object
  extended by org.jboss.resteasy.plugins.server.servlet.HttpServletResponseHeaders
All Implemented Interfaces:
java.util.Map<java.lang.String,java.util.List<java.lang.Object>>, MultivaluedMap<java.lang.String,java.lang.Object>

public class HttpServletResponseHeaders
extends java.lang.Object
implements MultivaluedMap<java.lang.String,java.lang.Object>

Version:
$Revision: 1 $
Author:
Bill Burke

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
HttpServletResponseHeaders(javax.servlet.http.HttpServletResponse response, ResteasyProviderFactory factory)
           
 
Method Summary
 void add(java.lang.String key, java.lang.Object 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.Object>>> entrySet()
           
 boolean equals(java.lang.Object o)
           
 java.util.List<java.lang.Object> get(java.lang.Object o)
           
 java.lang.Object 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.Object> put(java.lang.String s, java.util.List<java.lang.Object> objs)
           
 void putAll(java.util.Map<? extends java.lang.String,? extends java.util.List<java.lang.Object>> map)
           
 void putSingle(java.lang.String key, java.lang.Object value)
          Set the key's value to be a one item list consisting of the supplied value.
 java.util.List<java.lang.Object> remove(java.lang.Object o)
           
 int size()
           
 java.util.Collection<java.util.List<java.lang.Object>> values()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpServletResponseHeaders

public HttpServletResponseHeaders(javax.servlet.http.HttpServletResponse response,
                                  ResteasyProviderFactory factory)
Method Detail

putSingle

public void putSingle(java.lang.String key,
                      java.lang.Object 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.Object>
Parameters:
key - the key
value - the single value of the key

add

public void add(java.lang.String key,
                java.lang.Object 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.Object>
Parameters:
key - the key
value - the value to be added.

addResponseHeader

protected void addResponseHeader(java.lang.String key,
                                 java.lang.Object value)

getFirst

public java.lang.Object 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.Object>
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.Object>>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Map<java.lang.String,java.util.List<java.lang.Object>>

containsKey

public boolean containsKey(java.lang.Object o)
Specified by:
containsKey in interface java.util.Map<java.lang.String,java.util.List<java.lang.Object>>

containsValue

public boolean containsValue(java.lang.Object o)
Specified by:
containsValue in interface java.util.Map<java.lang.String,java.util.List<java.lang.Object>>

get

public java.util.List<java.lang.Object> get(java.lang.Object o)
Specified by:
get in interface java.util.Map<java.lang.String,java.util.List<java.lang.Object>>

put

public java.util.List<java.lang.Object> put(java.lang.String s,
                                            java.util.List<java.lang.Object> objs)
Specified by:
put in interface java.util.Map<java.lang.String,java.util.List<java.lang.Object>>

remove

public java.util.List<java.lang.Object> remove(java.lang.Object o)
Specified by:
remove in interface java.util.Map<java.lang.String,java.util.List<java.lang.Object>>

putAll

public void putAll(java.util.Map<? extends java.lang.String,? extends java.util.List<java.lang.Object>> map)
Specified by:
putAll in interface java.util.Map<java.lang.String,java.util.List<java.lang.Object>>

clear

public void clear()
Specified by:
clear in interface java.util.Map<java.lang.String,java.util.List<java.lang.Object>>

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.Object>>

values

public java.util.Collection<java.util.List<java.lang.Object>> values()
Specified by:
values in interface java.util.Map<java.lang.String,java.util.List<java.lang.Object>>

entrySet

public java.util.Set<java.util.Map.Entry<java.lang.String,java.util.List<java.lang.Object>>> entrySet()
Specified by:
entrySet in interface java.util.Map<java.lang.String,java.util.List<java.lang.Object>>

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Map<java.lang.String,java.util.List<java.lang.Object>>
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.Object>>
Overrides:
hashCode in class java.lang.Object


Copyright © 2010. All Rights Reserved.