java.lang.Object | |
↳ | org.jsoup.helper.HttpConnection.Response |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the body of the response as a plain string.
| |||||||||||
Get the body of the response as an array of bytes.
| |||||||||||
Get the character set name of the response.
| |||||||||||
Get the response content type (e.g.
| |||||||||||
Set a cookie in this request/response.
| |||||||||||
Get a cookie value by name from this request/response.
| |||||||||||
Retrieve all of the request/response cookies as a map
| |||||||||||
Check if a cookie is present
| |||||||||||
Check if a header is present
| |||||||||||
Set a header.
| |||||||||||
Get the value of a header.
| |||||||||||
Retrieve all of the request/response headers as a map
| |||||||||||
Get the request method
| |||||||||||
Set the request method
| |||||||||||
Parse the body of the response as a Document.
| |||||||||||
Remove a cookie by name
| |||||||||||
Remove a header by name
| |||||||||||
Get the status code of the response.
| |||||||||||
Get the status message of the response.
| |||||||||||
Get the URL
| |||||||||||
Set the URL
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.jsoup.Connection.Base
| |||||||||||
From interface
org.jsoup.Connection.Response
|
Get the body of the response as an array of bytes.
Get the response content type (e.g. "text/html");
Set a cookie in this request/response.
name | name of cookie |
---|---|
value | value of cookie |
Get a cookie value by name from this request/response.
Response objects have a simplified cookie model. Each cookie set in the response is added to the response object's cookie key=value map. The cookie's path, domain, and expiry date are ignored.
name | name of cookie to retrieve. |
---|
Retrieve all of the request/response cookies as a map
Check if a cookie is present
name | name of cookie |
---|
Check if a header is present
name | name of header (case insensitive) |
---|
Set a header. This method will overwrite any existing header with the same case insensitive name.
name | Name of header |
---|---|
value | Value of header |
Get the value of a header. This is a simplified header model, where a header may only have one value.
Header names are case insensitive.
name | name of header (case insensitive) |
---|
Retrieve all of the request/response headers as a map
Set the request method
method | new method |
---|
Remove a cookie by name
name | name of cookie to remove |
---|
Remove a header by name
name | name of header to remove (case insensitive) |
---|
Get the status code of the response.