QgsServerInterface Class defining interfaces exposed by QGIS Server and made available to plugins.
More...
#include <qgsserverinterface.h>
QgsServerInterface Class defining interfaces exposed by QGIS Server and made available to plugins.
This class provides methods to access the request handler and the capabilities cache. A method to read the environment variables set in the main FCGI loop is also available. Plugins can add listeners (instances of QgsServerFilter) with a certain priority through the registerFilter( QgsServerFilter* , int) method.
Definition at line 60 of file qgsserverinterface.h.
◆ QgsServerInterface()
QgsServerInterface::QgsServerInterface |
( |
| ) |
|
◆ ~QgsServerInterface()
virtual QgsServerInterface::~QgsServerInterface |
( |
| ) |
|
|
virtualdefault |
◆ accessControls()
◆ cacheManager()
◆ capabilitiesCache()
◆ clearRequestHandler()
virtual void QgsServerInterface::clearRequestHandler |
( |
| ) |
|
|
pure virtual |
◆ configFilePath()
virtual QString QgsServerInterface::configFilePath |
( |
| ) |
|
|
pure virtual |
Returns the configuration file path.
- Returns
- QString containing the configuration file path
Implemented in QgsServerInterfaceImpl.
◆ filters()
◆ getEnv()
virtual QString QgsServerInterface::getEnv |
( |
const QString & |
name | ) |
const |
|
pure virtual |
Returns an enrironment variable, used to pass environment variables to Python.
Implemented in QgsServerInterfaceImpl.
◆ registerAccessControl()
virtual void QgsServerInterface::registerAccessControl |
( |
QgsAccessControlFilter * |
accessControl, |
|
|
int |
priority = 0 |
|
) |
| |
|
pure virtual |
Register an access control filter.
- Parameters
-
accessControl | the access control to register |
priority | the priority used to order them |
Implemented in QgsServerInterfaceImpl.
◆ registerFilter()
virtual void QgsServerInterface::registerFilter |
( |
QgsServerFilter * |
filter, |
|
|
int |
priority = 0 |
|
) |
| |
|
pure virtual |
◆ registerServerCache()
virtual void QgsServerInterface::registerServerCache |
( |
QgsServerCacheFilter * |
serverCache, |
|
|
int |
priority = 0 |
|
) |
| |
|
pure virtual |
Register a server cache filter.
- Parameters
-
serverCache | the server cache to register |
priority | the priority used to order them |
- Since
- QGIS 3.4
Implemented in QgsServerInterfaceImpl.
◆ removeConfigCacheEntry()
virtual void QgsServerInterface::removeConfigCacheEntry |
( |
const QString & |
path | ) |
|
|
pure virtual |
Remove entry from config cache.
- Parameters
-
path | the path of the file to remove |
Implemented in QgsServerInterfaceImpl.
◆ requestHandler()
◆ serverSettings()
◆ serviceRegistry()
◆ setConfigFilePath()
virtual void QgsServerInterface::setConfigFilePath |
( |
const QString & |
configFilePath | ) |
|
|
pure virtual |
Set the configuration file path.
- Parameters
-
configFilePath | QString with the configuration file path |
Implemented in QgsServerInterfaceImpl.
◆ setFilters()
◆ setRequestHandler()
virtual void QgsServerInterface::setRequestHandler |
( |
QgsRequestHandler * |
requestHandler | ) |
|
|
pure virtual |
Set the request handler.
- Parameters
-
requestHandler | request handler |
- Note
- not available in Python bindings
Implemented in QgsServerInterfaceImpl.
The documentation for this class was generated from the following files: