Last updated

API / geotoolkit / ivaapbackend / RemoteDataSource / RemoteDataSource

Class: RemoteDataSource<T>

ivaapbackend.RemoteDataSource.RemoteDataSource

Provides implementation of data source for loading data from IVAAP backend that stores dataset identifier, its content, and list of links after the loading completed.

Type parameters

NameType
Textends object

Hierarchy

Table of contents

Constructors
Methods
Css Properties
Name Type Description
hostnamestringThe host name for requests

Contents

Constructors

new RemoteDataSource&lt;T&amp;gt;(options)

new RemoteDataSource<T>(options?)

Type parameters

NameType
Textends object

Parameters

Name Type
Optional optionsOptions

Overrides

AbstractRemoteDataSource&lt;T&amp;gt;.constructor

Methods

dispose

dispose(): void

Dispose

Returns

void

Inherited from

AbstractRemoteDataSource.dispose


getClassName

getClassName(): string

Returns

string

Inherited from

AbstractRemoteDataSource.getClassName


getHostName

Protected getHostName(): string

Gets host name

Returns

string

Inherited from

AbstractRemoteDataSource.getHostName


getHttpService

Protected getHttpService(): AbstractHttpService

Gets a http service associated with this data source

Returns

AbstractHttpService

Inherited from

AbstractRemoteDataSource.getHttpService


getId

getId(): string

Gets data identifier

Returns

string


getLinks(): Link[]

Gets links

Returns

Link[]


getMetaData

getMetaData(): T

Returns meta information from IVAAP backend

Returns

T

meta meta data


getProperties

getProperties(): OptionsOut

Gets all the properties pertaining to this object

Returns

OptionsOut

An object containing the properties

Inherited from

AbstractRemoteDataSource.getProperties


loadMeta

loadMeta(url, onProgress?, cancel?): Promise<T>

Load meta data

Parameters

Name Type Description
urlstringurl of metaData information
Optional onProgress(event: ProgressEvent<EventTarget>) => voida function to be executed to handle progress
Optional cancelCancela Cancel object that can be used to cancel the loading

Returns

Promise<T>

The promise for the MetaData

Overrides

AbstractRemoteDataSource.loadMeta


setHostName

Protected setHostName(host): RemoteDataSource<T>

Sets host name

Parameters

Name Type Description
hoststringthe host name

Returns

RemoteDataSource<T>

Inherited from

AbstractRemoteDataSource.setHostName


setHttpService

Protected setHttpService(service): RemoteDataSource<T>

Sets a http service associated with this data source

Parameters

Name Type Description
serviceAbstractHttpServicethe http service

Returns

RemoteDataSource<T>

Inherited from

AbstractRemoteDataSource.setHttpService


setId

Protected setId(id): RemoteDataSource<T>

Sets data identifier

Parameters

Name Type Description
idstringthe identifier

Returns

RemoteDataSource<T>


Protected setLinks(links): RemoteDataSource<T>

Sets links

Parameters

Name Type Description
linksLink[]the links

Returns

RemoteDataSource<T>


setMetaData

Protected setMetaData(meta): RemoteDataSource<T>

Sets meta information

Parameters

Name Type Description
metaTthe meta information

Returns

RemoteDataSource<T>


setProperties

setProperties(properties?): RemoteDataSource<T>

Sets all the properties pertaining to this object

Parameters

Name Type Description
Optional propertiesOptionsAn object containing the properties to set

Returns

RemoteDataSource<T>

this

Inherited from

AbstractRemoteDataSource.setProperties


getClassName

Static getClassName(): string

Returns

string

Inherited from

AbstractRemoteDataSource.getClassName