Class MultiTenantUtils
java.lang.Object
io.confluent.kafkarest.utils.MultiTenantUtils
-
Method Summary
Modifier and TypeMethodDescriptionReturn clusterId from host, only applicable for V4 network, throw IllegalArgumentException if host is invalid or clusterId is invalid, otherwise return Optional.empty()
-
Method Details
-
extractClusterIdFromUriHost
public static Optional<String> extractClusterIdFromUriHost(String host) throws IllegalArgumentException Return clusterId from host, only applicable for V4 network, throw IllegalArgumentException if host is invalid or clusterId is invalid, otherwise return Optional.empty()- Throws:
IllegalArgumentException
-