All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.dropwizard.client.ConfiguredCloseableHttpClient Maven / Gradle / Ivy

There is a newer version: 5.0.0-alpha.4
Show newest version
package io.dropwizard.client;

import org.apache.hc.client5.http.config.RequestConfig;
import org.apache.hc.client5.http.impl.classic.CloseableHttpClient;

public class ConfiguredCloseableHttpClient {
    private final CloseableHttpClient closeableHttpClient;
    private final RequestConfig defaultRequestConfig;

    /* package */ ConfiguredCloseableHttpClient(CloseableHttpClient closeableHttpClient, RequestConfig defaultRequestConfig) {
        this.closeableHttpClient = closeableHttpClient;
        this.defaultRequestConfig = defaultRequestConfig;
    }

    public RequestConfig getDefaultRequestConfig() {
        return defaultRequestConfig;
    }

    public CloseableHttpClient getClient() {
        return closeableHttpClient;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy