|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jsoup.helper.HttpConnection.Response
public static class HttpConnection.Response
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jsoup.Connection.Base |
|---|
cookie, cookie, cookies, hasCookie, hasHeader, header, header, headers, method, method, removeCookie, removeHeader, url, url |
| Method Detail |
|---|
public int statusCode()
Connection.Response
statusCode in interface Connection.Responsepublic String statusMessage()
Connection.Response
statusMessage in interface Connection.Responsepublic String charset()
Connection.Response
charset in interface Connection.Responsepublic String contentType()
Connection.Response
contentType in interface Connection.Response
public Document parse()
throws IOException
Connection.Response
parse in interface Connection.ResponseIOException - on errorpublic String body()
Connection.Response
body in interface Connection.Responsepublic byte[] bodyAsBytes()
Connection.Response
bodyAsBytes in interface Connection.Response
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||