private ValidationResult    validateParameterURL(Map<String,String> properties) {
        String urlProp = properties.get(PARAMETER_NAME_URL);

        URL u = null;
        try {
            u = new URL(urlProp);
        } catch (MalformedURLException e) {
            return  new MyValidationResult(false, "Must be valid URL");
        }

        try {
            u.toURI();
        } catch (URISyntaxException e) {
            return  new MyValidationResult(false, "Must be valid URL");
        }
    
        return  ValidationResult.SUCCESS;
    }
Validates the parameter URL.

@param   properties      the view instance parameters
@return  the validation result
ambari-views/examples/property-validator-view/src/main/java/org/apache/ambari/view/property/MyValidator.java