Package io.camunda.client.impl.util
Class ClientPropertiesValidationUtils
java.lang.Object
io.camunda.client.impl.util.ClientPropertiesValidationUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckIfUriIsAbsolute(URI address, String propertyName) Validates that the provided address is an absolute URI.
-
Method Details
-
checkIfUriIsAbsolute
Validates that the provided address is an absolute URI.We use
URI.getHost() == nullto 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()returnsnull.
- For absolute URIs (with a scheme) (e.g., "https://example.com"),
-