Search in sources :

Example 1 with TaskSettings

use of com.intellij.tasks.config.TaskSettings in project intellij-community by JetBrains.

the class NewBaseRepositoryImpl method createRequestConfig.

@NotNull
protected RequestConfig createRequestConfig() {
    TaskSettings tasksSettings = TaskSettings.getInstance();
    RequestConfig.Builder builder = RequestConfig.custom().setConnectTimeout(3000).setSocketTimeout(tasksSettings.CONNECTION_TIMEOUT);
    if (isUseProxy()) {
        IdeHttpClientHelpers.ApacheHttpClient4.setProxyForUrlIfEnabled(builder, getUrl());
    }
    return builder.build();
}
Also used : RequestConfig(org.apache.http.client.config.RequestConfig) TaskSettings(com.intellij.tasks.config.TaskSettings) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

TaskSettings (com.intellij.tasks.config.TaskSettings)1 RequestConfig (org.apache.http.client.config.RequestConfig)1 NotNull (org.jetbrains.annotations.NotNull)1