com.cloudconvert.executor.AbstractRequestExecutor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudconvert-java Show documentation
Show all versions of cloudconvert-java Show documentation
CloudConvert is an online file converter API - more than 200 different audio, video, document, ebook, archive, image, spreadsheet and presentation formats supported.
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