jsoup 1.6.1-redhat-1

org.jsoup
Interface Connection.Request

All Superinterfaces:
Connection.Base<Connection.Request>
All Known Implementing Classes:
HttpConnection.Request
Enclosing interface:
Connection

public static interface Connection.Request
extends Connection.Base<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.
 void ignoreContentType(boolean ignoreContentType)
          Configures the request to ignore the Content-Type of the response.
 boolean ignoreHttpErrors()
          Get the current ignoreHttpErrors configuration.
 void ignoreHttpErrors(boolean ignoreHttpErrors)
          Configures the request to ignore HTTP errors in the response.
 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

timeout

int timeout()
Get the request timeout, in milliseconds.

Returns:
the timeout in milliseconds.

timeout

Connection.Request timeout(int millis)
Update the request timeout.

Parameters:
millis - timeout, in milliseconds
Returns:
this Request, for chaining

followRedirects

boolean followRedirects()
Get the current followRedirects configuration.

Returns:
true if followRedirects is enabled.

followRedirects

Connection.Request followRedirects(boolean followRedirects)
Configures the request to (not) follow server redirects. By default this is true.

Parameters:
followRedirects - true if server redirects should be followed.
Returns:
this Connection, for chaining

ignoreHttpErrors

boolean ignoreHttpErrors()
Get the current ignoreHttpErrors configuration.

Returns:
true if errors will be ignored; false (default) if HTTP errors will cause an IOException to be thrown.

ignoreHttpErrors

void ignoreHttpErrors(boolean ignoreHttpErrors)
Configures the request to ignore HTTP errors in the response.

Parameters:
ignoreHttpErrors - set to true to ignore HTTP errors.

ignoreContentType

boolean ignoreContentType()
Get the current ignoreContentType configuration.

Returns:
true if invalid content-types will be ignored; false (default) if they will cause an IOException to be thrown.

ignoreContentType

void ignoreContentType(boolean ignoreContentType)
Configures the request to ignore the Content-Type of the response.

Parameters:
ignoreContentType - set to true to ignore the contenet type.

data

Connection.Request data(Connection.KeyVal keyval)
Add a data parameter to the request

Parameters:
keyval - data to add.
Returns:
this Request, for chaining

data

Collection<Connection.KeyVal> data()
Get all of the request's data parameters

Returns:
collection of keyvals

jsoup 1.6.1-redhat-1

Copyright © 2009-2013 JBoss by Red Hat. All Rights Reserved.