public FQDNUrl(String strURL) throws MalformedURLException {
  url=new URL(strURL);
  valid=strURL.startsWith("http://") || strURL.startsWith("https://");
  String host=url.getHost();
  fqdn=(host.indexOf(".") != -1);
}

public FQDNUrl ( String strURL ) throws MalformedURLException { url = new URL ( strURL ) ; valid = strURL . startsWith ( "http://" ) || strURL . startsWith ( "https://" ) ; String host = url . getHost ( ) ; fqdn = ( host . indexOf ( "." ) != - 1 ) ; }
constructs a fully qualified domain name url object .
