Package com.google.enterprise.connector.util

Examples of com.google.enterprise.connector.util.UrlValidator.validate()


  int validateUrl(String urlString, ResourceBundle bundle)
      throws UrlConfigurationException {
    try {
      UrlValidator validator = new UrlValidator();
      validator.setRequireFullyQualifiedHostNames(true);
      return validator.validate(urlString);
    } catch (UrlValidatorException e) {
      // FIXME: The Not found message is confusing with an error about
      // fully-qualified host names. I think the validator should
      // throw a different exception in that case, and we should
      // provide a different message.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.