org.jsoup.Connection.Base<T extends org.jsoup.Connection.Base> |
Known Indirect Subclasses |
Common methods for Requests and Responses
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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
| |||||||||||
Remove a cookie by name
| |||||||||||
Remove a header by name
| |||||||||||
Get the URL
| |||||||||||
Set the URL
|
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) |
---|