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 57 of file qgsserverinterface.h.
◆ QgsServerInterface()
QgsServerInterface::QgsServerInterface |
( |
| ) |
|
◆ ~QgsServerInterface()
virtual QgsServerInterface::~QgsServerInterface |
( |
| ) |
|
|
virtualdefault |
◆ accessControls()
virtual QgsAccessControl* QgsServerInterface::accessControls |
( |
| ) |
const |
|
pure virtual |
Gets the registered access control filters.
◆ capabilitiesCache()
◆ clearRequestHandler()
virtual void QgsServerInterface::clearRequestHandler |
( |
| ) |
|
|
pure virtual |
Clear the request handler.
- Note
- not available in Python bindings
◆ configFilePath()
virtual QString QgsServerInterface::configFilePath |
( |
| ) |
|
|
pure virtual |
Return the configuration file path.
- Returns
- QString containing the configuration file path
◆ filters()
◆ getEnv()
virtual QString QgsServerInterface::getEnv |
( |
const QString & |
name | ) |
const |
|
pure virtual |
Return an enrironment variable, used to pass environment variables to Python.
◆ 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 |
◆ registerFilter()
virtual void QgsServerInterface::registerFilter |
( |
QgsServerFilter * |
filter, |
|
|
int |
priority = 0 |
|
) |
| |
|
pure virtual |
◆ removeConfigCacheEntry()
virtual void QgsServerInterface::removeConfigCacheEntry |
( |
const QString & |
path | ) |
|
|
pure virtual |
Remove entry from config cache.
- Parameters
-
path | the path of the file to remove |
◆ removeProjectLayers()
virtual void QgsServerInterface::removeProjectLayers |
( |
const QString & |
path | ) |
|
|
pure virtual |
Remove entries from layer cache.
- Parameters
-
path | the path of the project which own the layers to be removed |
◆ requestHandler()
◆ serverSettings()
virtual QgsServerSettings* QgsServerInterface::serverSettings |
( |
| ) |
|
|
pure virtual |
Return the server settings.
- Returns
- QgsServerSettings
- Note
- not available in Python bindings
◆ serviceRegistry()
Return the service registry.
- Returns
- QgsServiceResgistry
◆ setConfigFilePath()
virtual void QgsServerInterface::setConfigFilePath |
( |
const QString & |
configFilePath | ) |
|
|
pure virtual |
Set the configuration file path.
- Parameters
-
configFilePath | QString with the configuration file path |
◆ setFilters()
Set the filters map.
- Parameters
-
filters | the QgsServerFiltersMap |
◆ setRequestHandler()
virtual void QgsServerInterface::setRequestHandler |
( |
QgsRequestHandler * |
requestHandler | ) |
|
|
pure virtual |
Set the request handler.
- Parameters
-
requestHandler | request handler |
- Note
- not available in Python bindings
The documentation for this class was generated from the following file: