| com.noelios.restlet.http.HttpClientHelper com.noelios.restlet.ext.httpclient.HttpClientHelper
HttpClientHelper | public class HttpClientHelper extends com.noelios.restlet.http.HttpClientHelper (Code) | | HTTP client connector using the HttpMethodCall and Apache HTTP Client
project. Note that the response must be fully read in all cases in order to
surely release the underlying connection. Not doing so may cause future
requests to block.
See Also: http://jakarta.apache.org/httpcomponents/httpclient-3.x/tutorial.html See Also: Here is the list of parameters that are supported: See Also: See Also: Parameter name | See Also: Value type | See Also: Default value | See Also: Description | See Also:
---|
See Also: See Also: followRedirects | See Also: boolean | See Also: false | See Also: If true, the protocol will automatically follow redirects. If false, the See Also: protocol will not automatically follow redirects. | See Also: See Also: See Also: maxConnectionsPerHost | See Also: int | See Also: 2 (uses HttpClient's default) | See Also: The maximum number of connections that will be created for any See Also: particular host. | See Also: See Also: See Also: maxTotalConnections | See Also: int | See Also: 20 (uses HttpClient's default) | See Also: The maximum number of active connections. | See Also: See Also: See Also: connectionManagerTimeout | See Also: int | See Also: 0 | See Also: The timeout in milliseconds used when retrieving an HTTP connection from See Also: the HTTP connection manager. | See Also: See Also: See Also: stopIdleTimeout | See Also: int | See Also: 1000 | See Also: The minimum idle time, in milliseconds, for connections to be closed See Also: when stopping the connector. | See Also: See Also: See Also: readTimeout | See Also: int | See Also: 0 | See Also: Sets the read timeout to a specified timeout, in milliseconds. A timeout See Also: of zero is interpreted as an infinite timeout. | See Also: See Also:
See Also: Networking
* Features author: Jerome Louvel (contact@noelios.com) |
Method Summary | |
public HttpClientCall | create(Request request) Creates a low-level HTTP client call from a high-level uniform call.
Parameters: request - The high-level request. | public int | getConnectionManagerTimeout() Returns the timeout in milliseconds used when retrieving an HTTP
connection from the HTTP connection manager. | public HttpClient | getHttpClient() | public int | getMaxConnectionsPerHost() Returns the maximum number of connections that will be created for any
particular host. | public int | getMaxTotalConnections() Returns the maximum number of active connections. | public int | getReadTimeout() Returns the read timeout value. | public int | getStopIdleTimeout() Returns the minimum idle time, in milliseconds, for connections to be
closed when stopping the connector. | public boolean | isFollowRedirects() Indicates if the protocol will automatically follow redirects. | public void | start() | public void | stop() |
HttpClientHelper | public HttpClientHelper(Client client)(Code) | | Constructor.
Parameters: client - The client to help. |
create | public HttpClientCall create(Request request)(Code) | | Creates a low-level HTTP client call from a high-level uniform call.
Parameters: request - The high-level request. A low-level HTTP client call. |
getConnectionManagerTimeout | public int getConnectionManagerTimeout()(Code) | | Returns the timeout in milliseconds used when retrieving an HTTP
connection from the HTTP connection manager.
The timeout in milliseconds used when retrieving an HTTPconnection from the HTTP connection manager. |
getHttpClient | public HttpClient getHttpClient()(Code) | | |
getMaxConnectionsPerHost | public int getMaxConnectionsPerHost()(Code) | | Returns the maximum number of connections that will be created for any
particular host.
The maximum number of connections that will be created for anyparticular host. |
getMaxTotalConnections | public int getMaxTotalConnections()(Code) | | Returns the maximum number of active connections.
The maximum number of active connections. |
getReadTimeout | public int getReadTimeout()(Code) | | Returns the read timeout value. A timeout of zero is interpreted as an
infinite timeout.
The read timeout value. |
getStopIdleTimeout | public int getStopIdleTimeout()(Code) | | Returns the minimum idle time, in milliseconds, for connections to be
closed when stopping the connector.
The minimum idle time, in milliseconds, for connections to beclosed when stopping the connector. |
isFollowRedirects | public boolean isFollowRedirects()(Code) | | Indicates if the protocol will automatically follow redirects.
True if the protocol will automatically follow redirects. |
|
|