Last updated

API / geotoolkit / ivaapbackend / AbstractRemoteDataSource / AbstractRemoteDataSource

Class: AbstractRemoteDataSource<T>

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
Methods
Css Properties
Name Type Description
hostnamestringThe host name for requests

Contents

Constructors

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

Protected new AbstractRemoteDataSource<T>(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

Protected getHostName(): string

Gets host name

Returns

string


getHttpService

Protected 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>

Loads meta data

Parameters

Name Type Description
urlstringurl of meta information

Returns

Promise<T>


setHostName

Protected setHostName(host): AbstractRemoteDataSource<T>

Sets host name

Parameters

Name Type Description
hoststringthe host name

Returns

AbstractRemoteDataSource<T>


setHttpService

Protected setHttpService(service): AbstractRemoteDataSource<T>

Sets a http service associated with this data source

Parameters

Name Type Description
serviceAbstractHttpServicethe http service

Returns

AbstractRemoteDataSource<T>


setProperties

setProperties(properties?): AbstractRemoteDataSource<T>

Sets all the properties pertaining to this object

Parameters

Name Type Description
Optional propertiesOptionsAn object containing the properties to set

Returns

AbstractRemoteDataSource<T>

this


getClassName

Static getClassName(): string

Returns

string