public class OpenshiftAdapterSupport extends Object
| Constructor and Description |
|---|
OpenshiftAdapterSupport() |
| Modifier and Type | Method and Description |
|---|---|
DefaultOpenShiftClient |
adapt(Client client) |
static okhttp3.OkHttpClient |
adaptOkHttpClient(okhttp3.OkHttpClient okHttpClient,
OpenShiftConfig config)
Creates a new OkHttpClient from the provided one with OpenShift specific interceptors and configurations.
|
Boolean |
isAdaptable(Client client) |
static boolean |
isOpenShiftAPIGroups(okhttp3.OkHttpClient client,
OpenShiftConfig config)
Check if OpenShift API Groups are available
|
public DefaultOpenShiftClient adapt(Client client)
public static boolean isOpenShiftAPIGroups(okhttp3.OkHttpClient client,
OpenShiftConfig config)
client - The client.config - OpenShiftConfig OpenShift Configurationpublic static okhttp3.OkHttpClient adaptOkHttpClient(okhttp3.OkHttpClient okHttpClient,
OpenShiftConfig config)
okHttpClient - the client to adapt.config - the OpenShift configuration.Copyright © 2015–2020 Red Hat. All rights reserved.