public class H9Service extends GoogleService
GoogleService
abstraction
to define a service that is preconfigured for access to the Health data API.GoogleService.AccountDeletedException, GoogleService.AccountDisabledException, GoogleService.CaptchaRequiredException, GoogleService.InvalidCredentialsException, GoogleService.NotVerifiedException, GoogleService.ServiceUnavailableException, GoogleService.SessionExpiredException, GoogleService.TermsNotAgreedException
Service.ClientInputProperties, Service.ClientOutputProperties, Service.ClientStreamProperties, Service.GDataRequest, Service.GDataRequestFactory, Service.Versions
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
H9_SERVICE
The abbreviated name of Health recognized by Google.
|
static java.lang.String |
H9_SERVICE_VERSION
The version ID of the service.
|
connectTimeout, extProfile, metadataRegistry, requestFactory
Constructor and Description |
---|
H9Service(java.lang.String applicationName)
Constructs a H9Service instance connecting to the Health service for an
application with the name
applicationName . |
H9Service(java.lang.String applicationName,
java.lang.String protocol,
java.lang.String domainName)
Constructs a GoogleService instance connecting to the Health service with
name
serviceName for an application with the name applicationName . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getServiceVersion()
Returns information about the service version.
|
addCookie, batch, createRequest, createRequest, delete, delete, getAuthToken, getAuthTokenFactory, getCookieManager, getCookies, getEntry, getEntry, getFeed, getFeed, getFeed, getFeed, handleRedirectException, handlesCookies, handleSessionExpiredException, insert, makePostRequest, setAuthSubToken, setAuthSubToken, setAuthTokenFactory, setCookieManager, setHandlesCookies, setOAuthCredentials, setUserCredentials, setUserCredentials, setUserCredentials, setUserCredentials, setUserToken, tokenChanged, update
classOf, createBatchRequest, createDeleteRequest, createEntryRequest, createFeedRequest, createFeedRequest, createInsertRequest, createLinkQueryRequest, createPatchRequest, createUpdateRequest, delete, delete, endVersionScope, getAltRegistry, getContentType, getDefaultAltRegistry, getEntry, getExtensionProfile, getFeed, getFeed, getMetadataRegistry, getProtocolVersion, getRequestFactory, getSchema, getStreamFromLink, getStrictValidation, getVersion, initServiceVersion, introspect, parseResponseData, parseResponseData, patch, patch, query, query, query, setAcceptLanguage, setAltRegistry, setConnectTimeout, setContentType, setExtensionProfile, setHeader, setOAuthProxyHeaders, setPrivateHeader, setProtocolVersion, setReadTimeout, setRequestFactory, setStrictValidation, setTimeouts, startVersionScope, update, useSsl, writeRequestData, writeRequestData
public static final java.lang.String H9_SERVICE
public static final java.lang.String H9_SERVICE_VERSION
public H9Service(java.lang.String applicationName)
applicationName
.applicationName
- the name of the client application accessing the
service. Application names should preferably have
the format [company-id]-[app-name]-[app-version].
The name will be used by the Google servers to
monitor the source of authentication.public H9Service(java.lang.String applicationName, java.lang.String protocol, java.lang.String domainName)
serviceName
for an application with the name applicationName
. The service will authenticate at the provided domainName
.applicationName
- the name of the client application accessing the
service. Application names should preferably have
the format [company-id]-[app-name]-[app-version].
The name will be used by the Google servers to
monitor the source of authentication.protocol
- name of protocol to use for authentication
("http"/"https")domainName
- the name of the domain hosting the login handlerpublic java.lang.String getServiceVersion()
Service
getServiceVersion
in class Service