public abstract class BaseClient extends Object implements Client, HttpClientAware
| Modifier and Type | Field and Description |
|---|---|
protected okhttp3.OkHttpClient |
httpClient |
| Constructor and Description |
|---|
BaseClient() |
BaseClient(Config config) |
BaseClient(okhttp3.OkHttpClient httpClient,
Config config) |
BaseClient(String masterUrl) |
| Modifier and Type | Method and Description |
|---|---|
<C> C |
adapt(Class<C> type) |
void |
close() |
String |
getApiVersion() |
Config |
getConfiguration() |
okhttp3.OkHttpClient |
getHttpClient() |
URL |
getMasterUrl() |
String |
getNamespace() |
<C> Boolean |
isAdaptable(Class<C> type)
Checks if the client can be adapted to an other client type.
|
io.fabric8.kubernetes.api.model.RootPaths |
rootPaths() |
public BaseClient()
throws KubernetesClientException
KubernetesClientExceptionpublic BaseClient(Config config) throws KubernetesClientException
KubernetesClientExceptionpublic BaseClient(okhttp3.OkHttpClient httpClient,
Config config)
throws KubernetesClientException
KubernetesClientExceptionpublic BaseClient(String masterUrl) throws KubernetesClientException
KubernetesClientExceptionpublic void close()
public URL getMasterUrl()
getMasterUrl in interface Clientpublic String getApiVersion()
getApiVersion in interface Clientpublic String getNamespace()
getNamespace in interface Clientpublic Config getConfiguration()
getConfiguration in interface ConfigAwarepublic okhttp3.OkHttpClient getHttpClient()
getHttpClient in interface HttpClientAwarepublic <C> Boolean isAdaptable(Class<C> type)
ClientisAdaptable in interface ClientC - The target client type.type - The target client class.ExtensionAdapter is found.Copyright © 2015–2017 Red Hat. All rights reserved.