
com.github.bingoohuang.springrestclient.utils.Futures Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-rest-client Show documentation
Show all versions of spring-rest-client Show documentation
convenient spring rest client for rest services
package com.github.bingoohuang.springrestclient.utils;
import com.mashape.unirest.http.HttpResponse;
import lombok.experimental.UtilityClass;
import java.util.concurrent.Future;
@UtilityClass
public class Futures {
public Future convertFutureVoid(final Future> future,
final Class> beanClass,
final RestReq restReq) {
return new VoidFuture(future, restReq);
}
public Future convertFuture(final Future> future,
final Class beanClass,
final RestReq restReq) {
return new RestFuture(future, beanClass, restReq);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy