Examples of DomainVerificationService


Examples of com.google.gdata.client.appsforyourdomain.adminsettings.DomainVerificationService

   * @param domainName the domain name to be configured.
   */
  public static void runDomainVerificationService(String adminEmail, String password,
      String domainName) {
    try {
      DomainVerificationService client =
          new DomainVerificationService(adminEmail, password, domainName, "test");
      GenericEntry entry = client.retrieveCnameVerificationStatus();
      LOGGER.log(Level.INFO, "Retrieving CNAME verification status: " + entry.getAllProperties());

      entry = client.updateVerifiedStatus(entry, true);
      LOGGER.log(Level.INFO, "Updated CNAME verfication status: " + entry.getAllProperties());

      entry = client.retrieveMxVerificationStatus();
      LOGGER.log(Level.INFO, "Retrieving MX verification status: " + entry.getAllProperties());

      entry = client.updateVerifiedStatus(entry, true);
      LOGGER.log(Level.INFO, "Updating MX verfication status: " + entry.getAllProperties());

    } catch (AuthenticationException e) {
      LOGGER.log(Level.SEVERE, e.getMessage(), e);
    } catch (IllegalArgumentException e) {
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.