Class ClientPropertiesValidationUtils

java.lang.Object
io.camunda.client.impl.util.ClientPropertiesValidationUtils

public final class ClientPropertiesValidationUtils extends Object
  • Method Details

    • checkIfUriIsAbsolute

      public static void checkIfUriIsAbsolute(URI address, String propertyName)
      Validates that the provided address is an absolute URI.

      We use URI.getHost() == null to check for absolute URIs because:

      • For absolute URIs (with a scheme) (e.g., "https://example.com"), URI.getHost() returns the hostname (e.g., "example.com").
      • For relative URIs (without a scheme) (e.g., "example.com"), URI.getHost() returns null.
      throws IllegalArgumentException if the provided address is not an absolute URI