public static class HttpCore.Response
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
byte[] |
body |
int |
contentLength |
java.lang.String |
contentType |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
headers |
int |
statusCode |
java.lang.String |
statusLine |
| Constructor and Description |
|---|
Response() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getHeaderFields(java.lang.String name)
Returns the value of the named header field.
|
public int statusCode
public java.lang.String statusLine
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers
public java.lang.String contentType
public int contentLength
public byte[] body
public java.util.List<java.lang.String> getHeaderFields(java.lang.String name)
If called on a connection that sets the same header multiple times with possibly different values, only the last value is returned.
name - the name of a header field.null
if there is no such field in the header.