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
 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

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


Copyright © 2009-2010 Jonathan Hedley. All Rights Reserved.