[API](/solutions/geotoolkit/geotoolkit_js/apis/readme) / [geotoolkit](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit) / [ivaapbackend](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.ivaapbackend) / [CommonRemoteDataSource](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.ivaapbackend#commonremotedatasource) / CommonRemoteDataSource

# Class: CommonRemoteDataSource

[ivaapbackend](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.ivaapbackend).[CommonRemoteDataSource](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.ivaapbackend#commonremotedatasource).CommonRemoteDataSource

Provides utility class to load data collections and individual datasets from IVAAP backend

## Hierarchy

- [`AbstractRemoteDataSource`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.abstractremotedatasource.abstractremotedatasource)<[`Data`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.ivaapbackend#commonremotedatasource#data)&gt;
↳ **`CommonRemoteDataSource`**
↳↳ [`RemoteWellLogDataSource`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.well.remotewelllogdatasource.remotewelllogdatasource)


## Table of contents

Constructors
- [new CommonRemoteDataSource(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.ivaapbackend.commonremotedatasource.commonremotedatasource.md#new commonremotedatasource(options))


Methods
| [dispose](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.commonremotedatasource.commonremotedatasource#dispose) | [getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.commonremotedatasource.commonremotedatasource#getclassname) | [getHostName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.commonremotedatasource.commonremotedatasource#gethostname) |
|  --- | --- | --- |
| [getHttpService](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.commonremotedatasource.commonremotedatasource#gethttpservice) | [getProperties](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.commonremotedatasource.commonremotedatasource#getproperties) | [loadCollection](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.commonremotedatasource.commonremotedatasource#loadcollection) |
| [loadDataSet](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.commonremotedatasource.commonremotedatasource#loaddataset) | [loadMeta](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.commonremotedatasource.commonremotedatasource#loadmeta) | [setHostName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.commonremotedatasource.commonremotedatasource#sethostname) |
| [setHttpService](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.commonremotedatasource.commonremotedatasource#sethttpservice) | [setProperties](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.commonremotedatasource.commonremotedatasource#setproperties) | [getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.commonremotedatasource.commonremotedatasource#getclassname-1) |


Css Properties
| Name  | Type  | Description |
|  --- | --- | --- |
| `hostname` | `string` | The host name for requests |


## Contents

Constructors
#### new CommonRemoteDataSource(options)

• **new CommonRemoteDataSource**(`options?`)

#### Parameters

| Name  | Type  |
|  --- | --- |
| `Optional` `options` | [`Options`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.ivaapbackend#abstractremotedatasource#options) |


#### Overrides

AbstractRemoteDataSource&lt;CommonRemoteDataSource.Data&amp;gt;.constructor

Methods
#### dispose

▸ **dispose**(): `void`

Dispose

#### Returns

`void`

#### Inherited from

[AbstractRemoteDataSource](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.abstractremotedatasource.abstractremotedatasource).[dispose](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.abstractremotedatasource.abstractremotedatasource#dispose)

#### getClassName

▸ **getClassName**(): `string`

#### Returns

`string`

#### Inherited from

[AbstractRemoteDataSource](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.abstractremotedatasource.abstractremotedatasource).[getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.abstractremotedatasource.abstractremotedatasource#getclassname)

#### getHostName

▸ **getHostName**(): `string`

Gets host name

#### Returns

`string`

#### Inherited from

[AbstractRemoteDataSource](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.abstractremotedatasource.abstractremotedatasource).[getHostName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.abstractremotedatasource.abstractremotedatasource#gethostname)

#### getHttpService

▸ **getHttpService**(): [`AbstractHttpService`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.http.abstracthttpservice.abstracthttpservice)

Gets a http service associated with this data source

#### Returns

[`AbstractHttpService`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.http.abstracthttpservice.abstracthttpservice)

#### Inherited from

[AbstractRemoteDataSource](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.abstractremotedatasource.abstractremotedatasource).[getHttpService](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.abstractremotedatasource.abstractremotedatasource#gethttpservice)

#### getProperties

▸ **getProperties**(): [`OptionsOut`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.ivaapbackend#abstractremotedatasource#optionsout)

Gets all the properties pertaining to this object

#### Returns

[`OptionsOut`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.ivaapbackend#abstractremotedatasource#optionsout)

An object containing the properties

#### Inherited from

[AbstractRemoteDataSource](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.abstractremotedatasource.abstractremotedatasource).[getProperties](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.abstractremotedatasource.abstractremotedatasource#getproperties)

#### loadCollection

▸ `Protected` **loadCollection**<`T`&gt;(`url`): `Promise`<[`DataCollection`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.ivaapbackend#commonremotedatasource#datacollection)<`T`&gt;&gt;

Loads datasets collection

#### Type parameters

| Name | Type |
|  --- | --- |
| `T` | extends [`Dataset`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.ivaapbackend#commonremotedatasource#dataset)<`Record`<`string`, `any`&gt;&gt; |


#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `url` | `string` | the collection url |


#### Returns

`Promise`<[`DataCollection`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.ivaapbackend#commonremotedatasource#datacollection)<`T`&gt;&gt;

#### loadDataSet

▸ `Protected` **loadDataSet**<`T`&gt;(`url`): `Promise`<`T`&gt;

Loads an individual dataset

#### Type parameters

| Name | Type |
|  --- | --- |
| `T` | extends [`Dataset`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.ivaapbackend#commonremotedatasource#dataset)<`Record`<`string`, `any`&gt;&gt; = [`Dataset`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.ivaapbackend#commonremotedatasource#dataset)<`Record`<`string`, `any`&gt;&gt; |


#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `url` | `string` | the data url |


#### Returns

`Promise`<`T`&gt;

#### loadMeta

▸ **loadMeta**(`url`): `Promise`<[`Data`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.ivaapbackend#commonremotedatasource#data)&gt;

Loads meta data

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `url` | `string` | url of meta information |


#### Returns

`Promise`<[`Data`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.ivaapbackend#commonremotedatasource#data)&gt;

#### Overrides

[AbstractRemoteDataSource](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.abstractremotedatasource.abstractremotedatasource).[loadMeta](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.abstractremotedatasource.abstractremotedatasource#loadmeta)

#### setHostName

▸ `Protected` **setHostName**(`host`): [`CommonRemoteDataSource`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.commonremotedatasource.commonremotedatasource)

Sets host name

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `host` | `string` | the host name |


#### Returns

[`CommonRemoteDataSource`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.commonremotedatasource.commonremotedatasource)

#### Inherited from

[AbstractRemoteDataSource](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.abstractremotedatasource.abstractremotedatasource).[setHostName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.abstractremotedatasource.abstractremotedatasource#sethostname)

#### setHttpService

▸ `Protected` **setHttpService**(`service`): [`CommonRemoteDataSource`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.commonremotedatasource.commonremotedatasource)

Sets a http service associated with this data source

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `service` | [`AbstractHttpService`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.http.abstracthttpservice.abstracthttpservice) | the http service |


#### Returns

[`CommonRemoteDataSource`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.commonremotedatasource.commonremotedatasource)

#### Inherited from

[AbstractRemoteDataSource](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.abstractremotedatasource.abstractremotedatasource).[setHttpService](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.abstractremotedatasource.abstractremotedatasource#sethttpservice)

#### setProperties

▸ **setProperties**(`properties?`): [`CommonRemoteDataSource`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.commonremotedatasource.commonremotedatasource)

Sets all the properties pertaining to this object

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `Optional` `properties` | [`Options`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.ivaapbackend#abstractremotedatasource#options) | An object containing the properties to set |


#### Returns

[`CommonRemoteDataSource`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.commonremotedatasource.commonremotedatasource)

this

#### Inherited from

[AbstractRemoteDataSource](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.abstractremotedatasource.abstractremotedatasource).[setProperties](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.abstractremotedatasource.abstractremotedatasource#setproperties)

#### getClassName

▸ `Static` **getClassName**(): `string`

#### Returns

`string`

#### Inherited from

[AbstractRemoteDataSource](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.abstractremotedatasource.abstractremotedatasource).[getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.ivaapbackend.abstractremotedatasource.abstractremotedatasource#getclassname-1)