public class

H9Service

extends GoogleService
java.lang.Object
   ↳ com.google.gdata.client.Service
     ↳ com.google.gdata.client.GoogleService
       ↳ com.google.gdata.client.health.H9Service

Class Overview

The H9Service class extends the basic GoogleService abstraction to define a service that is preconfigured for access to the Health data API.

Summary

Constants
String H9_SERVICE The abbreviated name of Health recognized by Google.
Fields
public static final String H9_SERVICE_VERSION The version ID of the service.
[Expand]
Inherited Fields
From class com.google.gdata.client.GoogleService
From class com.google.gdata.client.Service
Public Constructors
H9Service(String applicationName)
Constructs a H9Service instance connecting to the Health service for an application with the name applicationName.
H9Service(String applicationName, String protocol, String domainName)
Constructs a GoogleService instance connecting to the Health service with name serviceName for an application with the name applicationName.
Public Methods
String getServiceVersion()
Returns information about the service version.
[Expand]
Inherited Methods
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

Constants

public static final String H9_SERVICE

The abbreviated name of Health recognized by Google. The service name is used when requesting an authentication token.

Constant Value: "weaver"

Fields

public static final String H9_SERVICE_VERSION

The version ID of the service.

Public Constructors

public H9Service (String applicationName)

Constructs a H9Service instance connecting to the Health service for an application with the name applicationName.

Parameters
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 (String applicationName, String protocol, String domainName)

Constructs a GoogleService instance connecting to the Health service with name serviceName for an application with the name applicationName. The service will authenticate at the provided domainName.

Parameters
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 handler

Public Methods

public String getServiceVersion ()

Returns information about the service version.