public class HttpResponse extends LinkedHashMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Method and Description |
---|---|
boolean |
cached()
Whether the response data was pulled from a local cache.
|
String |
getHeader(String name)
Retrieves the header value associated with the specified (case insensitive) header name or null if the header name is not present.
|
MultiMap<String,String> |
getHeaders()
Retrieve a MultiMap of HTTP response headers.
|
String |
getMessage()
Retrieve the message associated with the response.
|
String |
getRequestedUrlMsg()
Returns a message describing the url associated with the most recent HttpRequest, of the form
"<url>" or "<url> [posting <data>]" |
int |
getStatus()
Retrieves the HTTP status code (eg, 404) for the response or -1 if no value exits.
|
String |
toString()
Returns a String representation of the HttpResponse.
|
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
equals, hashCode
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
public String getRequestedUrlMsg()
"<url>"
or "<url> [posting <data>]"
public MultiMap<String,String> getHeaders()
public String getHeader(String name)
public String getMessage()
public int getStatus()
public boolean cached()
public String toString()
toString
in class AbstractMap