io.vrap.rmf.base.client.ApiHttpClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rmf-java-base Show documentation
Show all versions of rmf-java-base Show documentation
The e-commerce SDK from commercetools Composable Commerce for Java
package io.vrap.rmf.base.client;
import io.vrap.rmf.base.client.http.HandlerStack;
import java.net.URI;
import java.util.concurrent.CompletableFuture;
public interface ApiHttpClient extends AutoCloseable, VrapHttpClient {
public String CLOSED_MESSAGE = "Client is already closed.";
public CompletableFuture> execute(ApiHttpRequest request, Class outputType);
public ResponseSerializer getSerializerService();
public static ApiHttpClient of(final String baseUri, final HandlerStack stack) {
return of(URI.create(baseUri), stack, ResponseSerializer.of());
}
public static ApiHttpClient of(final URI baseUri, final HandlerStack stack) {
return of(baseUri, stack, ResponseSerializer.of());
}
public static ApiHttpClient of(final URI baseUri, final HandlerStack stack, ResponseSerializer serializer) {
return new ApiHttpClientImpl(baseUri, stack, serializer);
}
}