Package com.cloudogu.scmmanager.scm.api
Class ApiClient
- java.lang.Object
-
- com.cloudogu.scmmanager.scm.api.ApiClient
-
- Direct Known Subclasses:
HttpApiClient
,SshApiClient
public abstract class ApiClient extends Object
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected <T> CompletableFuture<T>
execute(okhttp3.OkHttpClient client, okhttp3.Request.Builder requestBuilder, Class<T> type)
abstract <T> CompletableFuture<T>
get(String url, String contentType, Class<T> type)
abstract String
getBaseUrl()
String
getProtocol()
-
-
-
Constructor Detail
-
ApiClient
protected ApiClient(String protocol)
-
-
Method Detail
-
getProtocol
public String getProtocol()
-
get
public abstract <T> CompletableFuture<T> get(String url, String contentType, Class<T> type)
-
getBaseUrl
public abstract String getBaseUrl()
-
execute
protected <T> CompletableFuture<T> execute(okhttp3.OkHttpClient client, okhttp3.Request.Builder requestBuilder, Class<T> type)
-
-