package at.gv.egiz.eaaf.core.impl.utils; import org.apache.http.impl.client.CloseableHttpClient; public interface IHttpClientFactory { /** * Return an instance of a Apache HTTP client that follows http redirects * automatically. * * @return */ CloseableHttpClient getHttpClient(); /** * Return an instance of a Apache HTTP client. * * @param followRedirects if false, the client does not flow 30x * http redirects * @return */ CloseableHttpClient getHttpClient(boolean followRedirects); }