QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Interfaces exposed by QGIS Server and made available to plugins. More...
#include <qgsserverinterfaceimpl.h>
Public Member Functions | |
QgsServerInterfaceImpl (QgsCapabilitiesCache *capCache, QgsServiceRegistry *srvRegistry, QgsServerSettings *serverSettings) | |
Constructor. More... | |
~QgsServerInterfaceImpl () override | |
QgsAccessControl * | accessControls () const override |
Gets the helper over all the registered access control filters. More... | |
QgsServerCacheManager * | cacheManager () const override |
Gets the helper over all the registered server cache filters. More... | |
QgsCapabilitiesCache * | capabilitiesCache () override |
Gets pointer to the capabiblities cache. More... | |
void | clearRequestHandler () override |
Clear the request handler. More... | |
QString | configFilePath () override |
Returns the configuration file path. More... | |
QgsServerFiltersMap | filters () override |
Returns the list of current QgsServerFilter. More... | |
QString | getEnv (const QString &name) const override |
Returns an enrironment variable, used to pass environment variables to Python. More... | |
void | registerAccessControl (QgsAccessControlFilter *accessControl, int priority=0) override |
Register an access control filter. More... | |
void | registerFilter (QgsServerFilter *filter, int priority=0) override |
Register a QgsServerFilter. More... | |
void | registerServerCache (QgsServerCacheFilter *serverCache, int priority=0) override |
Registers a server cache filter. More... | |
void | removeConfigCacheEntry (const QString &path) override |
Remove entry from config cache. More... | |
QgsRequestHandler * | requestHandler () override |
Returns the QgsRequestHandler, to be used only in server plugins. More... | |
QgsServerSettings * | serverSettings () override |
Returns the server settings. More... | |
QgsServiceRegistry * | serviceRegistry () override |
Returns the service registry. More... | |
void | setConfigFilePath (const QString &configFilePath) override |
Set the configuration file path. More... | |
void | setFilters (QgsServerFiltersMap *filters) override |
Set the filters map. More... | |
void | setRequestHandler (QgsRequestHandler *requestHandler) override |
Set the request handler. More... | |
Public Member Functions inherited from QgsServerInterface | |
QgsServerInterface () | |
Constructor. More... | |
virtual | ~QgsServerInterface ()=default |
Interfaces exposed by QGIS Server and made available to plugins.
Definition at line 35 of file qgsserverinterfaceimpl.h.
|
explicit |
Constructor.
Definition at line 24 of file qgsserverinterfaceimpl.cpp.
|
override |
Definition at line 42 of file qgsserverinterfaceimpl.cpp.
|
inlineoverridevirtual |
Gets the helper over all the registered access control filters.
Implements QgsServerInterface.
Definition at line 62 of file qgsserverinterfaceimpl.h.
|
overridevirtual |
Gets the helper over all the registered server cache filters.
Implements QgsServerInterface.
Definition at line 98 of file qgsserverinterfaceimpl.cpp.
|
inlineoverridevirtual |
Gets pointer to the capabiblities cache.
Implements QgsServerInterface.
Definition at line 49 of file qgsserverinterfaceimpl.h.
|
overridevirtual |
Clear the request handler.
Implements QgsServerInterface.
Definition at line 51 of file qgsserverinterfaceimpl.cpp.
|
inlineoverridevirtual |
Returns the configuration file path.
Implements QgsServerInterface.
Definition at line 81 of file qgsserverinterfaceimpl.h.
|
inlineoverridevirtual |
Returns the list of current QgsServerFilter.
Implements QgsServerInterface.
Definition at line 53 of file qgsserverinterfaceimpl.h.
|
overridevirtual |
Returns an enrironment variable, used to pass environment variables to Python.
Implements QgsServerInterface.
Definition at line 36 of file qgsserverinterfaceimpl.cpp.
|
overridevirtual |
Register an access control filter.
Register a new access control filter.
Implements QgsServerInterface.
Definition at line 77 of file qgsserverinterfaceimpl.cpp.
|
overridevirtual |
Register a QgsServerFilter.
filter | the QgsServerFilter to add |
priority | an optional priority for the filter order |
Implements QgsServerInterface.
Definition at line 66 of file qgsserverinterfaceimpl.cpp.
|
overridevirtual |
Registers a server cache filter.
Register a new access control filter.
serverCache | the server cache to register |
priority | the priority used to order them |
Implements QgsServerInterface.
Definition at line 88 of file qgsserverinterfaceimpl.cpp.
|
overridevirtual |
Remove entry from config cache.
path | the path of the file to remove |
Implements QgsServerInterface.
Definition at line 103 of file qgsserverinterfaceimpl.cpp.
|
inlineoverridevirtual |
Returns the QgsRequestHandler, to be used only in server plugins.
Implements QgsServerInterface.
Definition at line 51 of file qgsserverinterfaceimpl.h.
|
overridevirtual |
Returns the server settings.
Implements QgsServerInterface.
Definition at line 117 of file qgsserverinterfaceimpl.cpp.
|
overridevirtual |
Returns the service registry.
Implements QgsServerInterface.
Definition at line 112 of file qgsserverinterfaceimpl.cpp.
|
overridevirtual |
Set the configuration file path.
configFilePath | QString with the configuration file path |
Implements QgsServerInterface.
Definition at line 61 of file qgsserverinterfaceimpl.cpp.
|
overridevirtual |
Set the filters map.
filters | the QgsServerFiltersMap |
Implements QgsServerInterface.
Definition at line 71 of file qgsserverinterfaceimpl.cpp.
|
overridevirtual |
Set the request handler.
requestHandler | request handler |
Implements QgsServerInterface.
Definition at line 56 of file qgsserverinterfaceimpl.cpp.