public class

DomainVerificationService

extends AppsPropertyService
java.lang.Object
   ↳ com.google.gdata.client.Service
     ↳ com.google.gdata.client.GoogleService
       ↳ com.google.gdata.client.appsforyourdomain.AppsForYourDomainService
         ↳ com.google.gdata.client.appsforyourdomain.AppsPropertyService
           ↳ com.google.gdata.client.appsforyourdomain.adminsettings.DomainVerificationService

Class Overview

Specialization of AppsPropertyService for managing domain verification options of a domain.

Summary

[Expand]
Inherited Constants
From class com.google.gdata.client.appsforyourdomain.AppsForYourDomainService
Fields
protected String domainUrlBase
protected String verificationBaseUrl
[Expand]
Inherited Fields
From class com.google.gdata.client.GoogleService
From class com.google.gdata.client.Service
Public Constructors
DomainVerificationService(String domain, String applicationName)
Parameterized constructor to setup a Service object which can be used to initialize the service without obtaining a token.
DomainVerificationService(String adminEmail, String password, String domain, String applicationName)
Parameterized constructor for service authentication.
Public Methods
GenericEntry retrieveCnameVerificationStatus()
GenericEntry retrieveMxVerificationStatus()
GenericEntry updateVerifiedStatus(GenericEntry entry, boolean status)
Sets the verified status as true for a previously retrieved MX or CNAME verification status entry;
[Expand]
Inherited Methods
From class com.google.gdata.client.appsforyourdomain.AppsForYourDomainService
From class com.google.gdata.client.GoogleService
From class com.google.gdata.client.Service
From class java.lang.Object
From interface com.google.gdata.client.AuthTokenFactory.TokenListener

Fields

protected String domainUrlBase

protected String verificationBaseUrl

Public Constructors

public DomainVerificationService (String domain, String applicationName)

Parameterized constructor to setup a Service object which can be used to initialize the service without obtaining a token. The user should explicitly authorize the service by calling either setUserCredentials or setUserToken when using this constructor.

Parameters
domain Domain being configured
applicationName Application name consuming the API

public DomainVerificationService (String adminEmail, String password, String domain, String applicationName)

Parameterized constructor for service authentication.

Parameters
adminEmail The email id of the administrator.
password The administrator password.
domain The domain name to be configured.
applicationName The calling client application name.for e.g. mycompany-java
Throws
AuthenticationException if an authentication related error occurs.

Public Methods

public GenericEntry retrieveCnameVerificationStatus ()

Returns
  • GenericEntry a GenericEntry instance with CNAME verification status.
Throws
AppsForYourDomainException if an Apps for your domain API error occurred.
IOException if an error occurs while communicating with the GData service.
ServiceException if the fetch request failed due to system error.

public GenericEntry retrieveMxVerificationStatus ()

Returns
  • GenericEntry a GenericEntry instance with CNAME verification status.
Throws
AppsForYourDomainException if an Apps for your domain API error occurred.
IOException if an error occurs while communicating with the GData service.
ServiceException if the fetch request failed due to system error.

public GenericEntry updateVerifiedStatus (GenericEntry entry, boolean status)

Sets the verified status as true for a previously retrieved MX or CNAME verification status entry;

Parameters
entry A previously retrieved GenericEntry instance to be updated with status as verified.
status
Returns
  • GenericEntry instance with updated settings.
Throws
AppsForYourDomainException if an Apps for your domain API error occurred.
IOException if an error occurs while communicating with the GData service.
ServiceException if the fetch request failed due to system error.