API / geotoolkit / map / sources / connectors / AbstractConnector / AbstractConnector
connectors.AbstractConnector.AbstractConnector
Abstract source connector that is able to send url requests and receive data responses
| Name | Type |
|---|---|
T | any |
Constructors
Methods
Constructors
• new AbstractConnector<T>()
| Name | Type |
|---|---|
T | any |
Methods
▸ abort(key?): AbstractConnector<T>
Aborts the previous queries sent
| Name | Type | Description |
|---|---|---|
Optional key | string | key of the queries to abort (all queries aborted if nothing provided) |
this
▸ Protected abortConnection(connection): AbstractConnector<T>
Aborts the connection provided
| Name | Type | Description |
|---|---|---|
connection | T | connection to abort |
this
▸ Protected addConnection(key, connection): AbstractConnector<T>
Adds connection to the list
| Name | Type | Description |
|---|---|---|
key | string | key of the connection (null if no provided) |
connection | T | connection to add to the list |
this
▸ clone(): AbstractConnector<T>
All subclasses should override copyConstructor or provide custom implementation for this method
clone
▸ getClassName(): string
string
▸ Protected getConnection(key): T
Returns connection by the key
| Name | Type | Description |
|---|---|---|
key | string | key for the connection |
T
connection
▸ isLoading(): boolean
Checks if some connections are still loading
boolean
▸ Protected removeConnection(key, connection): AbstractConnector<T>
Removes connection from the list
| Name | Type | Description |
|---|---|---|
key | string | key of the connection (null if no provided) |
connection | T | connection to remvoe from the list |
this
▸ Abstract send(url, options, callback): void
Sends a request using the query provided
| Name | Type | Description |
|---|---|---|
url | string | the url requested |
options | SendOptions | extra options for the request (null if no needed) |
callback | SendCallback | the result handler that's called when response is received |
void
▸ Static getClassName(): string
string