Class: QgsCapabilitiesCache

A cache for capabilities xml documents (by configuration file path).

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.server.QgsCapabilitiesCache

Base classes

QObject

Methods

insertCapabilitiesDocument

Inserts new capabilities document (creates a copy of the document, does not take ownership)

removeCapabilitiesDocument

Removes capabilities document

searchCapabilitiesDocument

Returns cached capabilities document (or 0 if document for configuration file not in cache)

class qgis.server.QgsCapabilitiesCache[source]

Bases: QObject

insertCapabilitiesDocument(self, configFilePath: str | None, key: str | None, doc: QDomDocument | None)[source]

Inserts new capabilities document (creates a copy of the document, does not take ownership)

Parameters:
  • configFilePath (Optional[str]) – the project file path

  • key (Optional[str]) – key used to separate different version in different cache

  • doc (Optional[QDomDocument]) – the DOM document

removeCapabilitiesDocument(self, path: str | None)[source]

Removes capabilities document

Parameters:

path (Optional[str]) – the project file path

searchCapabilitiesDocument(self, configFilePath: str | None, key: str | None) QDomDocument | None[source]

Returns cached capabilities document (or 0 if document for configuration file not in cache)

Parameters:
  • configFilePath (Optional[str]) – the progect file path

  • key (Optional[str]) – key used to separate different version in different cache

Return type:

Optional[QDomDocument]