use of org.eclipse.scout.rt.shared.http.transport.ApacheHttpTransport in project scout.rt by eclipse.
the class ApacheHttpTransportFactory method newHttpTransport.
@Override
public HttpTransport newHttpTransport(IHttpTransportManager manager) {
HttpClientBuilder builder = HttpClients.custom();
installConfigurableProxySelector(builder);
installMultiSessionCookieStore(builder);
setConnectionKeepAliveAndRetrySettings(builder);
HttpClientConnectionManager cm = getConfiguredConnectionManager();
if (cm != null) {
builder.setConnectionManager(cm);
}
interceptNewHttpTransport(builder, manager);
manager.interceptNewHttpTransport(new ApacheHttpTransportBuilder(builder, cm));
return new ApacheHttpTransport(builder.build());
}
Aggregations