|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jsoup.helper.HttpConnection.Request
public static class HttpConnection.Request
| Method Summary | |
|---|---|
Collection<Connection.KeyVal> |
data()
Get all of the request's data parameters |
HttpConnection.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. |
int |
maxBodySize()
Get the maximum body size, in milliseconds. |
Connection.Request |
maxBodySize(int bytes)
Update the maximum body size, in milliseconds. |
Parser |
parser()
Get the current parser to use when parsing the document. |
HttpConnection.Request |
parser(Parser parser)
Specify the parser to use when parsing the document. |
int |
timeout()
Get the request timeout, in milliseconds. |
HttpConnection.Request |
timeout(int millis)
Update the request timeout. |
| 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 timeout()
Connection.Request
timeout in interface Connection.Requestpublic HttpConnection.Request timeout(int millis)
Connection.Request
timeout in interface Connection.Requestmillis - timeout, in milliseconds
public int maxBodySize()
Connection.Request
maxBodySize in interface Connection.Requestpublic Connection.Request maxBodySize(int bytes)
Connection.Request
maxBodySize in interface Connection.Requestbytes - maximum body size, in milliseconds.
public boolean followRedirects()
Connection.Request
followRedirects in interface Connection.Requestpublic Connection.Request followRedirects(boolean followRedirects)
Connection.Request
followRedirects in interface Connection.RequestfollowRedirects - true if server redirects should be followed.
public boolean ignoreHttpErrors()
Connection.Request
ignoreHttpErrors in interface Connection.Requestpublic Connection.Request ignoreHttpErrors(boolean ignoreHttpErrors)
Connection.Request
ignoreHttpErrors in interface Connection.RequestignoreHttpErrors - set to true to ignore HTTP errors.
public boolean ignoreContentType()
Connection.Request
ignoreContentType in interface Connection.Requestpublic Connection.Request ignoreContentType(boolean ignoreContentType)
Connection.Request
ignoreContentType in interface Connection.RequestignoreContentType - set to true to ignore the content type.
public HttpConnection.Request data(Connection.KeyVal keyval)
Connection.Request
data in interface Connection.Requestkeyval - data to add.
public Collection<Connection.KeyVal> data()
Connection.Request
data in interface Connection.Requestpublic HttpConnection.Request parser(Parser parser)
Connection.Request
parser in interface Connection.Requestparser - parser to use.
public Parser parser()
Connection.Request
parser in interface Connection.Request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||