com.documents4j.job.RemoteConversionContext Maven / Gradle / Ivy
package com.documents4j.job;
import jakarta.ws.rs.core.Response;
import java.util.concurrent.Future;
class RemoteConversionContext implements IConversionContext {
private final Future webResponse;
public RemoteConversionContext(Future webResponse) {
this.webResponse = webResponse;
}
@Override
public Future asFuture() {
return new WebserviceRequestFutureWrapper(webResponse);
}
public Future getWebResponse() {
return webResponse;
}
}