Methods
(static) deserialize(values) → {OpenSearchService}
Deserialize a previously serialized OpenSearchService.
Parameters:
Name | Type | Description |
---|---|---|
values |
object | The serialized service description |
Returns:
The deserialized service
- Type
- OpenSearchService
(static) discover(url) → {Promise.<OpenSearchService>}
Accesses an OpenSearch service and discovers it.
Parameters:
Name | Type | Description |
---|---|---|
url |
object | The URL to find the OpenSearchDescription XML document |
Returns:
The OpenSearchService as a Promise
- Type
- Promise.<OpenSearchService>
(static) fromXml(xml) → {OpenSearchService}
Creates a new OpenSearchService from the given XML string containing
the OpenSearch description document.
Parameters:
Name | Type | Description |
---|---|---|
xml |
string | The XML string containing the OpenSearch description document. |
Returns:
- Type
- OpenSearchService