QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
#include <qgsserverinterface.h>
Public Member Functions | |
QgsServerInterface () | |
Constructor. More... | |
virtual | ~QgsServerInterface ()=default |
virtual QgsAccessControl * | accessControls () const =0 |
Gets the registered access control filters. More... | |
virtual QgsServerCacheManager * | cacheManager () const =0 |
Gets the registered server cache filters. More... | |
virtual QgsCapabilitiesCache * | capabilitiesCache ()=0 |
Gets pointer to the capabiblities cache. More... | |
virtual void | clearRequestHandler ()=0 |
Clear the request handler. More... | |
virtual QString | configFilePath ()=0 |
Returns the configuration file path. More... | |
virtual QgsServerFiltersMap | filters ()=0 |
Returns the list of current QgsServerFilter. More... | |
virtual QString | getEnv (const QString &name) const =0 |
Returns an enrironment variable, used to pass environment variables to Python. More... | |
virtual void | registerAccessControl (QgsAccessControlFilter *accessControl, int priority=0)=0 |
Register an access control filter. More... | |
virtual void | registerFilter (QgsServerFilter *filter, int priority=0)=0 |
Register a QgsServerFilter. More... | |
virtual void | registerServerCache (QgsServerCacheFilter *serverCache, int priority=0)=0 |
Register a server cache filter. More... | |
virtual void | removeConfigCacheEntry (const QString &path)=0 |
Remove entry from config cache. More... | |
virtual QgsRequestHandler * | requestHandler ()=0 |
Gets pointer to the request handler. More... | |
virtual QgsServerSettings * | serverSettings ()=0 |
Returns the server settings. More... | |
virtual QgsServiceRegistry * | serviceRegistry ()=0 |
Returns the service registry. More... | |
virtual void | setConfigFilePath (const QString &configFilePath)=0 |
Set the configuration file path. More... | |
virtual void | setFilters (QgsServerFiltersMap *filters)=0 |
Set the filters map. More... | |
virtual void | setRequestHandler (QgsRequestHandler *requestHandler)=0 |
Set the request handler. More... | |
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 | ( | ) |
Constructor.
Definition at line 22 of file qgsserverinterface.cpp.
|
virtualdefault |
|
pure virtual |
Gets the registered access control filters.
Implemented in QgsServerInterfaceImpl.
|
pure virtual |
|
pure virtual |
Gets pointer to the capabiblities cache.
Implemented in QgsServerInterfaceImpl.
|
pure virtual |
Clear the request handler.
Implemented in QgsServerInterfaceImpl.
|
pure virtual |
Returns the configuration file path.
Implemented in QgsServerInterfaceImpl.
|
pure virtual |
Returns the list of current QgsServerFilter.
Implemented in QgsServerInterfaceImpl.
|
pure virtual |
Returns an enrironment variable, used to pass environment variables to Python.
Implemented in QgsServerInterfaceImpl.
|
pure virtual |
Register an access control filter.
accessControl | the access control to register |
priority | the priority used to order them |
Implemented in QgsServerInterfaceImpl.
|
pure virtual |
Register a QgsServerFilter.
filter | the QgsServerFilter to add |
priority | an optional priority for the filter order |
Implemented in QgsServerInterfaceImpl.
|
pure virtual |
Register a server cache filter.
serverCache | the server cache to register |
priority | the priority used to order them |
Implemented in QgsServerInterfaceImpl.
|
pure virtual |
Remove entry from config cache.
path | the path of the file to remove |
Implemented in QgsServerInterfaceImpl.
|
pure virtual |
Gets pointer to the request handler.
Implemented in QgsServerInterfaceImpl.
|
pure virtual |
Returns the server settings.
Implemented in QgsServerInterfaceImpl.
|
pure virtual |
|
pure virtual |
Set the configuration file path.
configFilePath | QString with the configuration file path |
Implemented in QgsServerInterfaceImpl.
|
pure virtual |
Set the filters map.
filters | the QgsServerFiltersMap |
Implemented in QgsServerInterfaceImpl.
|
pure virtual |
Set the request handler.
requestHandler | request handler |
Implemented in QgsServerInterfaceImpl.