Class BaseClient

    • Field Detail

      • httpClient

        protected okhttp3.OkHttpClient httpClient
    • Constructor Detail

      • BaseClient

        public BaseClient()
      • BaseClient

        public BaseClient​(String masterUrl)
      • BaseClient

        public BaseClient​(Config config)
      • BaseClient

        public BaseClient​(okhttp3.OkHttpClient httpClient,
                          Config config)
    • Method Detail

      • isAdaptable

        public <C> Boolean isAdaptable​(Class<C> type)
        Description copied from interface: Client
        Checks if the client can be adapted to an other client type.
        Specified by:
        isAdaptable in interface Client
        Type Parameters:
        C - The target client type.
        Parameters:
        type - The target client class.
        Returns:
        Returns true if a working ExtensionAdapter is found.
      • adapt

        public <C> C adapt​(Class<C> type)
        Specified by:
        adapt in interface Client
      • rootPaths

        public io.fabric8.kubernetes.api.model.RootPaths rootPaths()
        Specified by:
        rootPaths in interface Client
      • supportsApiPath

        public boolean supportsApiPath​(String apiPath)
        Description copied from interface: Client
        Returns true if this cluster supports the given API path or API Group ID
        Specified by:
        supportsApiPath in interface Client
        Parameters:
        apiPath - Path as string
        Returns:
        returns boolean value indicating whether it supports.