public class Headers extends Object implements Map
| Constructor and Description |
|---|
Headers() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set |
entrySet() |
boolean |
equals(Object other) |
Object |
get(Object key) |
Date |
getDateValue(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(String header)
Returns the value of the specified header as an integer,
or -1 if the header is not present or not an integer.
|
String |
getValue(String header)
Returns the value of the specified header as a string.
|
int |
hashCode() |
boolean |
isEmpty() |
Set |
keySet() |
void |
parse(InputStream in)
Parse the specified input stream, adding headers to this collection.
|
Object |
put(Object key,
Object value) |
void |
putAll(Map t) |
Object |
remove(Object key) |
int |
size() |
Collection |
values() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic boolean containsKey(Object key)
containsKey in interface Mappublic boolean containsValue(Object value)
containsValue in interface Mappublic String getValue(String header)
public int getIntValue(String header)
public Date getDateValue(String header)
null if the header is not present or not a date.public Collection values()
public boolean equals(Object other)
public int hashCode()
public void parse(InputStream in) throws IOException
IOExceptionCopyright © 2017. All rights reserved.