private boolean isValidURL(String url) {
        try {
            URL u = new URL(url);
            String protocol = u.getProtocol().toLowerCase();
            if ("http".equals(protocol) || "https".equals(protocol)) {
                return true;
            }
        } catch (MalformedURLException e) {
            log.warn("URL validation failed with exception: {}", e.getMessage());
            return false;
        }
        return false;
    }
Validates the format of the URL and checks if it starts with "http" or "https".

@param url The URL to validate.
@return true if the URL is valid, false otherwise.
inlong-tubemq/tubemq-manager/src/main/java/org/apache/inlong/tubemq/manager/service/MasterServiceImpl.java