public static class HttpConnection.Response extends Object implements Connection.Response
| Modifier and Type | Method and Description |
|---|---|
String |
body()
Get the body of the response as a plain string.
|
byte[] |
bodyAsBytes()
Get the body of the response as an array of bytes.
|
String |
charset()
Get the character set name of the response.
|
String |
contentType()
Get the response content type (e.g.
|
Document |
parse()
Parse the body of the response as a Document.
|
int |
statusCode()
Get the status code of the response.
|
String |
statusMessage()
Get the status message of the response.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcookie, cookie, cookies, hasCookie, hasHeader, hasHeaderWithValue, header, header, headers, method, method, removeCookie, removeHeader, url, urlpublic int statusCode()
Connection.ResponsestatusCode in interface Connection.Responsepublic String statusMessage()
Connection.ResponsestatusMessage in interface Connection.Responsepublic String charset()
Connection.Responsecharset in interface Connection.Responsepublic String contentType()
Connection.ResponsecontentType in interface Connection.Responsepublic Document parse() throws IOException
Connection.Responseparse in interface Connection.ResponseIOException - on errorpublic String body()
Connection.Responsebody in interface Connection.Responsepublic byte[] bodyAsBytes()
Connection.ResponsebodyAsBytes in interface Connection.ResponseCopyright © 2009-2016 Jonathan Hedley. All Rights Reserved.