|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface Connection.Request
Represents a HTTP request.
Method Summary | |
---|---|
Collection<Connection.KeyVal> |
data()
Get all of the request's data parameters |
Connection.Request |
data(Connection.KeyVal keyval)
Add a data parameter to the request |
boolean |
followRedirects()
Get the current followRedirects configuration. |
Connection.Request |
followRedirects(boolean followRedirects)
Configures the request to (not) follow server redirects. |
boolean |
ignoreContentType()
Get the current ignoreContentType configuration. |
Connection.Request |
ignoreContentType(boolean ignoreContentType)
Configures the request to ignore the Content-Type of the response. |
boolean |
ignoreHttpErrors()
Get the current ignoreHttpErrors configuration. |
Connection.Request |
ignoreHttpErrors(boolean ignoreHttpErrors)
Configures the request to ignore HTTP errors in the response. |
Parser |
parser()
Get the current parser to use when parsing the document. |
Connection.Request |
parser(Parser parser)
Specify the parser to use when parsing the document. |
int |
timeout()
Get the request timeout, in milliseconds. |
Connection.Request |
timeout(int millis)
Update the request timeout. |
Methods inherited from interface org.jsoup.Connection.Base |
---|
cookie, cookie, cookies, hasCookie, hasHeader, header, header, headers, method, method, removeCookie, removeHeader, url, url |
Method Detail |
---|
int timeout()
Connection.Request timeout(int millis)
millis
- timeout, in milliseconds
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.
Connection.Request data(Connection.KeyVal keyval)
keyval
- data to add.
Collection<Connection.KeyVal> data()
Connection.Request parser(Parser parser)
parser
- parser to use.
Parser parser()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |