public class Headers
extends java.lang.Object
implements java.util.Map
Constructor and Description |
---|
Headers() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set |
entrySet() |
boolean |
equals(java.lang.Object other) |
java.lang.Object |
get(java.lang.Object key) |
java.util.Date |
getDateValue(java.lang.String header)
Returns the value of the specified header as a date,
or
null if the header is not present or not a date. |
int |
getIntValue(java.lang.String header)
Returns the value of the specified header as an integer,
or -1 if the header is not present or not an integer.
|
java.lang.String |
getValue(java.lang.String header)
Returns the value of the specified header as a string.
|
int |
hashCode() |
boolean |
isEmpty() |
java.util.Set |
keySet() |
void |
parse(java.io.InputStream in)
Parse the specified input stream, adding headers to this collection.
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value) |
void |
putAll(java.util.Map t) |
java.lang.Object |
remove(java.lang.Object key) |
int |
size() |
java.util.Collection |
values() |
public int size()
size
in interface java.util.Map
public boolean isEmpty()
isEmpty
in interface java.util.Map
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map
public boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map
public java.lang.Object get(java.lang.Object key)
get
in interface java.util.Map
public java.lang.String getValue(java.lang.String header)
public int getIntValue(java.lang.String header)
public java.util.Date getDateValue(java.lang.String header)
null
if the header is not present or not a date.public java.lang.Object put(java.lang.Object key, java.lang.Object value)
put
in interface java.util.Map
public java.lang.Object remove(java.lang.Object key)
remove
in interface java.util.Map
public void putAll(java.util.Map t)
putAll
in interface java.util.Map
public void clear()
clear
in interface java.util.Map
public java.util.Set keySet()
keySet
in interface java.util.Map
public java.util.Collection values()
values
in interface java.util.Map
public java.util.Set entrySet()
entrySet
in interface java.util.Map
public boolean equals(java.lang.Object other)
equals
in interface java.util.Map
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface java.util.Map
hashCode
in class java.lang.Object
public void parse(java.io.InputStream in) throws java.io.IOException
java.io.IOException