Search in sources :

Example 1 with FutureRequestExecutionService

use of org.apache.http.impl.client.FutureRequestExecutionService in project cas by apereo.

the class SimpleHttpClientFactoryBean method getObject.

@Override
public SimpleHttpClient getObject() throws Exception {
    final CloseableHttpClient httpClient = buildHttpClient();
    final FutureRequestExecutionService requestExecutorService = buildRequestExecutorService(httpClient);
    return new SimpleHttpClient(this.acceptableCodes, httpClient, requestExecutorService);
}
Also used : CloseableHttpClient(org.apache.http.impl.client.CloseableHttpClient) FutureRequestExecutionService(org.apache.http.impl.client.FutureRequestExecutionService)

Aggregations

CloseableHttpClient (org.apache.http.impl.client.CloseableHttpClient)1 FutureRequestExecutionService (org.apache.http.impl.client.FutureRequestExecutionService)1