public abstract class AbstractRestClient extends Object
| Constructor and Description |
|---|
AbstractRestClient() |
| Modifier and Type | Method and Description |
|---|---|
protected <T> T |
execute(retrofit2.Call<T> call) |
protected LogLevel |
getLogLevel(okhttp3.logging.HttpLoggingInterceptor interceptor) |
protected Boolean |
ping(retrofit2.Call<okhttp3.ResponseBody> responseBody) |
protected InfluxException |
responseToError(retrofit2.Response<?> response) |
protected void |
setLogLevel(okhttp3.logging.HttpLoggingInterceptor interceptor,
LogLevel logLevel) |
protected InfluxException |
toInfluxException(Throwable throwable) |
protected String |
version(retrofit2.Call<okhttp3.ResponseBody> ping) |
protected <T> T execute(@Nonnull retrofit2.Call<T> call) throws InfluxException
InfluxException@Nonnull protected InfluxException toInfluxException(@Nonnull Throwable throwable)
@Nonnull protected InfluxException responseToError(@Nonnull retrofit2.Response<?> response)
protected void setLogLevel(@Nonnull okhttp3.logging.HttpLoggingInterceptor interceptor, @Nonnull LogLevel logLevel)
@Nonnull protected LogLevel getLogLevel(@Nonnull okhttp3.logging.HttpLoggingInterceptor interceptor)
Copyright © 2018–2023 InfluxData, Inc.. All rights reserved.