QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
25 : mCapabilitiesCache( capCache )
26 , mServiceRegistry( srvRegistry )
27 , mServerSettings( settings )
29 mRequestHandler =
nullptr;
30 #ifdef HAVE_SERVER_PYTHON_PLUGINS
38 return getenv( name.toLocal8Bit() );
44 #ifdef HAVE_SERVER_PYTHON_PLUGINS
45 delete mAccessControls;
53 mRequestHandler =
nullptr;
68 mFilters.insert( priority, filter );
79 #ifdef HAVE_SERVER_PYTHON_PLUGINS
82 Q_UNUSED( accessControl )
90 #ifdef HAVE_SERVER_PYTHON_PLUGINS
93 Q_UNUSED( serverCache )
100 return mCacheManager;
105 if ( mCapabilitiesCache )
114 return mServiceRegistry;
119 return mServerSettings;
Class defining cache interface for QGIS Server plugins.
QString getEnv(const QString &name) const override
Returns an enrironment variable, used to pass environment variables to Python.
QgsServerSettings * serverSettings() override
Returns the server settings.
void setRequestHandler(QgsRequestHandler *requestHandler) override
Set the request handler.
void removeEntry(const QString &path)
Removes an entry from cache.
void registerServerCache(QgsServerCacheFilter *serverCache, int priority=0) override
Registers a server cache filter.
A cache for capabilities xml documents (by configuration file path)
QgsRequestHandler * requestHandler() override
Returns the QgsRequestHandler, to be used only in server plugins.
static QgsConfigCache * instance()
Returns the current instance.
void registerAccessControl(QgsAccessControlFilter *accessControl, int priority=0)
Register an access control filter.
void removeCapabilitiesDocument(const QString &path)
Remove capabilities document.
QgsServiceRegistry * serviceRegistry() override
Returns the service registry.
QgsServerFiltersMap filters() override
Returns the list of current QgsServerFilter.
void registerServerCache(QgsServerCacheFilter *serverCache, int priority=0)
Register a server cache filter.
QgsServerInterfaceImpl(QgsCapabilitiesCache *capCache, QgsServiceRegistry *srvRegistry, QgsServerSettings *serverSettings)
Constructor.
void removeConfigCacheEntry(const QString &path) override
Remove entry from config cache.
Provides a way to retrieve settings by prioritizing according to environment variables,...
Class defining I/O filters for QGIS Server and implemented in plugins.
~QgsServerInterfaceImpl() override
A helper class that centralizes caches accesses given by all the server cache filter plugins.
Class defining access control interface for QGIS Server plugins.
void registerFilter(QgsServerFilter *filter, int priority=0) override
Register a QgsServerFilter.
void setFilters(QgsServerFiltersMap *filters) override
Set the filters map.
QgsServerCacheManager * cacheManager() const override
Gets the helper over all the registered server cache filters.
A helper class that centralizes restrictions given by all the access control filter plugins.
void registerAccessControl(QgsAccessControlFilter *accessControl, int priority=0) override
Register an access control filter.
void setConfigFilePath(const QString &configFilePath) override
Set the configuration file path.
QString configFilePath() override
Returns the configuration file path.
QgsServiceRegistry Class defining the registry manager for QGIS server services.
QMultiMap< int, QgsServerFilter * > QgsServerFiltersMap
This class is an interface hiding the details of reading input and writing output from/to a wms reque...
void clearRequestHandler() override
Clear the request handler.