public class DomainVerificationService extends AppsPropertyService
AppsPropertyService for managing domain verification
options of a domain.GoogleService.AccountDeletedException, GoogleService.AccountDisabledException, GoogleService.CaptchaRequiredException, GoogleService.InvalidCredentialsException, GoogleService.NotVerifiedException, GoogleService.ServiceUnavailableException, GoogleService.SessionExpiredException, GoogleService.TermsNotAgreedExceptionService.ClientInputProperties, Service.ClientOutputProperties, Service.ClientStreamProperties, Service.GDataRequest, Service.GDataRequestFactory, Service.Versions| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
domainUrlBase |
protected java.lang.String |
verificationBaseUrl |
APPS_SERVICE, DOMAIN_NAME, HTTPS_PROTOCOLconnectTimeout, extProfile, metadataRegistry, requestFactory| Constructor and Description |
|---|
DomainVerificationService(java.lang.String domain,
java.lang.String applicationName)
Parameterized constructor to setup a Service object which can be used to
initialize the service without obtaining a token.
|
DomainVerificationService(java.lang.String adminEmail,
java.lang.String password,
java.lang.String domain,
java.lang.String applicationName)
Parameterized constructor for service authentication.
|
| Modifier and Type | Method and Description |
|---|---|
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;
|
delete, getAllPages, getEntry, getEntry, getFeed, getFeed, insert, query, updateaddCookie, batch, createRequest, createRequest, delete, getAuthToken, getAuthTokenFactory, getCookieManager, getCookies, getEntry, getFeed, getFeed, getFeed, handleRedirectException, handlesCookies, handleSessionExpiredException, makePostRequest, setAuthSubToken, setAuthSubToken, setAuthTokenFactory, setCookieManager, setHandlesCookies, setOAuthCredentials, setUserCredentials, setUserCredentials, setUserCredentials, setUserCredentials, setUserToken, tokenChangedclassOf, createBatchRequest, createDeleteRequest, createEntryRequest, createFeedRequest, createFeedRequest, createInsertRequest, createLinkQueryRequest, createPatchRequest, createUpdateRequest, delete, delete, endVersionScope, getAltRegistry, getContentType, getDefaultAltRegistry, getExtensionProfile, getFeed, getMetadataRegistry, getProtocolVersion, getRequestFactory, getSchema, getServiceVersion, getStreamFromLink, getStrictValidation, getVersion, initServiceVersion, introspect, parseResponseData, parseResponseData, patch, patch, query, query, setAcceptLanguage, setAltRegistry, setConnectTimeout, setContentType, setExtensionProfile, setHeader, setOAuthProxyHeaders, setPrivateHeader, setProtocolVersion, setReadTimeout, setRequestFactory, setStrictValidation, setTimeouts, startVersionScope, update, useSsl, writeRequestData, writeRequestDataprotected java.lang.String domainUrlBase
protected java.lang.String verificationBaseUrl
public DomainVerificationService(java.lang.String domain,
java.lang.String applicationName)
setUserCredentials or setUserToken when using this constructor.domain - Domain being configuredapplicationName - Application name consuming the APIpublic DomainVerificationService(java.lang.String adminEmail,
java.lang.String password,
java.lang.String domain,
java.lang.String applicationName)
throws AuthenticationException
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-javaAuthenticationException - if an authentication related error occurs.public GenericEntry retrieveCnameVerificationStatus() throws AppsForYourDomainException, java.io.IOException, ServiceException
AppsForYourDomainException - if an Apps for your domain API error
occurred.java.io.IOException - if an error occurs while communicating with the GData
service.ServiceException - if the fetch request failed due to system error.public GenericEntry retrieveMxVerificationStatus() throws AppsForYourDomainException, java.io.IOException, ServiceException
AppsForYourDomainException - if an Apps for your domain API error
occurred.java.io.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) throws AppsForYourDomainException, java.io.IOException, ServiceException
entry - a previously retrieved GenericEntry instance to be updated
with status as verified.AppsForYourDomainException - if an Apps for your domain API error
occurred.java.io.IOException - if an error occurs while communicating with the GData
service.ServiceException - if the fetch request failed due to system error.