/** * Constructs an instance connecting to the Google Spreadsheets service for an application with * the name {@code applicationName} and the given {@code GDataRequestFactory} and {@code * AuthTokenFactory}. Use this constructor to override the default factories. * * @param 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. * @param requestFactory the request factory that generates gdata request objects * @param authTokenFactory the factory that creates auth tokens */ public SpreadsheetService( String applicationName, Service.GDataRequestFactory requestFactory, AuthTokenFactory authTokenFactory) { super(applicationName, requestFactory, authTokenFactory); declareExtensions(); }
/** * Constructs an instance connecting to the Google Spreadsheets service for an application with * the name {@code applicationName}. * * @param 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 SpreadsheetService(String applicationName) { super(SPREADSHEET_SERVICE, applicationName); declareExtensions(); }
/** * Constructs an instance connecting to the Google Spreadsheets service with name {@code * serviceName} for an application with the name {@code applicationName}. The service will * authenticate at the provided {@code domainName}. * * @param 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. * @param protocol name of protocol to use for authentication ("http"/"https") * @param domainName the name of the domain hosting the login handler */ public SpreadsheetService(String applicationName, String protocol, String domainName) { super(SPREADSHEET_SERVICE, applicationName, protocol, domainName); declareExtensions(); }