public static interface Connection.Request extends Connection.Base <Connection .Request >
| Modifier and Type | Method and Description |
|---|---|
Collection |
data()
Get all of the request's data parameters
|
Connection |
data(Connection
Add a data parameter to the request
|
boolean |
followRedirects()
Get the current followRedirects configuration.
|
Connection |
followRedirects(boolean followRedirects)
Configures the request to (not) follow server redirects.
|
boolean |
ignoreContentType()
Get the current ignoreContentType configuration.
|
Connection |
ignoreContentType(boolean ignoreContentType)
Configures the request to ignore the Content-Type of the response.
|
boolean |
ignoreHttpErrors()
Get the current ignoreHttpErrors configuration.
|
Connection |
ignoreHttpErrors(boolean ignoreHttpErrors)
Configures the request to ignore HTTP errors in the response.
|
int |
maxBodySize()
Get the maximum body size, in bytes.
|
Connection |
maxBodySize(int bytes)
Update the maximum body size, in bytes.
|
Parser |
parser()
Get the current parser to use when parsing the document.
|
Connection |
parser(Parser
Specify the parser to use when parsing the document.
|
String |
postDataCharset()
Gets the post data character set for x-www-form-urlencoded post data
|
Connection |
postDataCharset(String
Sets the post data character set for x-www-form-urlencoded post data
|
int |
timeout()
Get the request timeout, in milliseconds.
|
Connection |
timeout(int millis)
Update the request timeout.
|
boolean |
validateTLSCertificates()
Get the current state of TLS (SSL) certificate validation.
|
void |
validateTLSCertificates(boolean value)
Set TLS certificate validation.
|
cookie, cookie, cookies, hasCookie, hasHeader, hasHeaderWithValue, header, header, headers, method, method, removeCookie, removeHeader, url, urlint timeout()
Connection.Request timeout(int millis)
millis - timeout, in milliseconds
int maxBodySize()
Connection.Request maxBodySize(int bytes)
bytes - maximum body size, in bytes.
boolean followRedirects()
Connection.Request followRedirects(boolean followRedirects)
followRedirects - true if server redirects should be followed.
boolean ignoreHttpErrors()
Connection.Request ignoreHttpErrors(boolean ignoreHttpErrors)
ignoreHttpErrors - set to true to ignore HTTP errors.
boolean ignoreContentType()
Connection.Request ignoreContentType(boolean ignoreContentType)
ignoreContentType - set to true to ignore the content type.
boolean validateTLSCertificates()
void validateTLSCertificates(boolean value)
value - set false to ignore TLS (SSL) certificates
Connection.Request data(Connection .KeyVal keyval)
keyval - data to add.
Collection<Connection .KeyVal > data()
Connection.Request parser(Parser parser)
parser - parser to use.
Parserparser()
Connection.Request postDataCharset(String charset)
charset - character set to encode post data
StringpostDataCharset()