Class: QgsCapabilitiesCache

class qgis.server.QgsCapabilitiesCache

Bases: PyQt5.QtCore.QObject

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

Methods

childEvent

connectNotify

customEvent

disconnectNotify

insertCapabilitiesDocument

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

isSignalConnected

receivers

removeCapabilitiesDocument

Remove capabilities document

searchCapabilitiesDocument

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

sender

senderSignalIndex

timerEvent

childEvent(self, a0: QChildEvent | None)
connectNotify(self, signal: QMetaMethod)
customEvent(self, a0: QEvent | None)
disconnectNotify(self, signal: QMetaMethod)
insertCapabilitiesDocument(self, configFilePath: str | None, key: str | None, doc: QDomDocument | None)

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

isSignalConnected(self, signal: QMetaMethod) bool
receivers(self, signal: PYQT_SIGNAL) int
removeCapabilitiesDocument(self, path: str | None)

Remove capabilities document

Parameters:

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

Added in version 2.16.

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

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]

sender(self) QObject | None
senderSignalIndex(self) int
timerEvent(self, a0: QTimerEvent | None)