API / geotoolkit / ivaapbackend / AbstractRemoteDataSource / AbstractRemoteDataSource
ivaapbackend.AbstractRemoteDataSource.AbstractRemoteDataSource
The base abstract class for data sources that can load data from IVAAP backend
| Name | Type |
|---|---|
T | extends object |
AbstractRemoteDataSource
Methods
Css Properties
| Name | Type | Description |
|---|---|---|
hostname | string | The host name for requests |
Constructors
• Protected new AbstractRemoteDataSource<T>(options?)
Creates a new instance of AbstractRemoteDataSource class
Throws
if proper http service was not passed
| Name | Type |
|---|---|
T | extends object |
| Name | Type | Description |
|---|---|---|
Optional options | Options | options |
Methods
▸ dispose(): void
Dispose
void
▸ getClassName(): string
string
▸ Protected getHostName(): string
Gets host name
string
▸ Protected getHttpService(): AbstractHttpService
Gets a http service associated with this data source
▸ getProperties(): OptionsOut
Gets all the properties pertaining to this object
An object containing the properties
▸ Abstract loadMeta(url): Promise<T>
Loads meta data
| Name | Type | Description |
|---|---|---|
url | string | url of meta information |
Promise<T>
▸ Protected setHostName(host): AbstractRemoteDataSource<T>
Sets host name
| Name | Type | Description |
|---|---|---|
host | string | the host name |
▸ Protected setHttpService(service): AbstractRemoteDataSource<T>
Sets a http service associated with this data source
| Name | Type | Description |
|---|---|---|
service | AbstractHttpService | the http service |
▸ setProperties(properties?): AbstractRemoteDataSource<T>
Sets all the properties pertaining to this object
| Name | Type | Description |
|---|---|---|
Optional properties | Options | An object containing the properties to set |
this
▸ Static getClassName(): string
string