Skip to content

API / geotoolkit / ivaapbackend / AbstractRemoteDataSource / AbstractRemoteDataSource

Class: AbstractRemoteDataSource<T&gt;

ivaapbackend.AbstractRemoteDataSource.AbstractRemoteDataSource

The base abstract class for data sources that can load data from IVAAP backend

Type parameters

NameType
Textends object

Hierarchy

Implements

Table of contents

Constructors
  • [new AbstractRemoteDataSource<T&gt;(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.ivaapbackend.abstractremotedatasource.abstractremotedatasource.md#new abstractremotedatasource<t>(options))
Methods
Css Properties
Name Type Description
hostnamestringThe host name for requests

Contents

Constructors

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

• Protected new AbstractRemoteDataSource<T&gt;(options?)

Creates a new instance of AbstractRemoteDataSource class

Throws

if proper http service was not passed

Type parameters

NameType
Textends object

Parameters

Name Type Description
Optional optionsOptionsoptions
Methods

dispose

▸ dispose(): void

Dispose

Returns

void

Implementation of

IDisposable.dispose


getClassName

▸ getClassName(): string

Returns

string


getHostName

▸ getHostName(): string

Gets host name

Returns

string


getHttpService

▸ getHttpService(): AbstractHttpService

Gets a http service associated with this data source

Returns

AbstractHttpService


getProperties

▸ getProperties(): OptionsOut

Gets all the properties pertaining to this object

Returns

OptionsOut

An object containing the properties


loadMeta

▸ Abstract loadMeta(url): Promise<T&gt;

Loads meta data

Parameters

Name Type Description
urlstringurl of meta information

Returns

Promise<T&gt;


setHostName

▸ Protected setHostName(host): AbstractRemoteDataSource<T&gt;

Sets host name

Parameters

Name Type Description
hoststringthe host name

Returns

AbstractRemoteDataSource<T&gt;


setHttpService

▸ Protected setHttpService(service): AbstractRemoteDataSource<T&gt;

Sets a http service associated with this data source

Parameters

Name Type Description
serviceAbstractHttpServicethe http service

Returns

AbstractRemoteDataSource<T&gt;


setProperties

▸ setProperties(properties?): AbstractRemoteDataSource<T&gt;

Sets all the properties pertaining to this object

Parameters

Name Type Description
Optional propertiesOptionsAn object containing the properties to set

Returns

AbstractRemoteDataSource<T&gt;

this


getClassName

▸ Static getClassName(): string

Returns

string