Search in sources :

Example 1 with ConnectionConfiguration

use of com.predic8.membrane.core.transport.http.client.ConnectionConfiguration in project service-proxy by membrane.

the class HttpKeepAliveTest method createHttpClient.

private HttpClient createHttpClient(int defaultKeepAliveTimeout) {
    HttpClientConfiguration configuration = new HttpClientConfiguration();
    ConnectionConfiguration connection = new ConnectionConfiguration();
    connection.setKeepAliveTimeout(defaultKeepAliveTimeout);
    configuration.setConnection(connection);
    HttpClient client = new HttpClient(configuration);
    return client;
}
Also used : ConnectionConfiguration(com.predic8.membrane.core.transport.http.client.ConnectionConfiguration) HttpClientConfiguration(com.predic8.membrane.core.transport.http.client.HttpClientConfiguration)

Aggregations

ConnectionConfiguration (com.predic8.membrane.core.transport.http.client.ConnectionConfiguration)1 HttpClientConfiguration (com.predic8.membrane.core.transport.http.client.HttpClientConfiguration)1