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

com.cloudconvert.executor.AbstractRequestExecutor Maven / Gradle / Ivy

Go to download

CloudConvert is an online file converter API - more than 200 different audio, video, document, ebook, archive, image, spreadsheet and presentation formats supported.

There is a newer version: 1.2.1
Show newest version
package com.cloudconvert.executor;

import com.cloudconvert.client.http.AbstractCloseableHttpClientProvider;
import com.cloudconvert.extractor.ResultExtractor;
import lombok.Getter;

import java.io.Closeable;
import java.io.IOException;

public abstract class AbstractRequestExecutor

, C extends Closeable> implements Closeable { @Getter private final ResultExtractor resultExtractor; @Getter private final C closeableHttpClient; public AbstractRequestExecutor( final ResultExtractor resultExtractor, final P closeableHttpClientProvider ) throws IOException { this.resultExtractor = resultExtractor; this.closeableHttpClient = closeableHttpClientProvider.provide(); } @Override public void close() throws IOException { closeableHttpClient.close(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy