26 : mCapabilitiesCache( capCache )
27 , mServiceRegistry( srvRegistry )
28 , mServerSettings( settings )
30 mRequestHandler =
nullptr;
31#ifdef HAVE_SERVER_PYTHON_PLUGINS
39 return getenv( name.toLocal8Bit() );
45#ifdef HAVE_SERVER_PYTHON_PLUGINS
46 delete mAccessControls;
54 mRequestHandler =
nullptr;
69 mFilters.insert( priority, filter );
80#ifdef HAVE_SERVER_PYTHON_PLUGINS
81 mAccessControls->registerAccessControl( accessControl, priority );
83 Q_UNUSED( accessControl )
91#ifdef HAVE_SERVER_PYTHON_PLUGINS
92 mCacheManager->registerServerCache( serverCache, priority );
94 Q_UNUSED( serverCache )
101 return mCacheManager;
106 if ( mCapabilitiesCache )
108 mCapabilitiesCache->removeCapabilitiesDocument( path );
115 return mServiceRegistry;
120 return mServerSettings;
125 mServerSettings->
load();
Defines access control interface for QGIS Server plugins.
A helper class that centralizes restrictions given by all the access control filter plugins.
A cache for capabilities xml documents (by configuration file path).
void removeEntry(const QString &path)
Removes an entry from cache.
static QgsConfigCache * instance()
Returns the current instance.
An interface hiding the details of reading input and writing output from/to a wms request mechanism.
Defines cache interface for QGIS Server plugins.
A helper class that centralizes caches accesses given by all the server cache filter plugins.
Defines I/O filters for QGIS Server and implemented in plugins.
void registerServerCache(QgsServerCacheFilter *serverCache, int priority=0) override
Registers a server cache filter.
~QgsServerInterfaceImpl() override
QgsServerSettings * serverSettings() override
Returns the server settings.
void removeConfigCacheEntry(const QString &path) override
Remove entry from config cache.
QgsServerInterfaceImpl(QgsCapabilitiesCache *capCache, QgsServiceRegistry *srvRegistry, QgsServerSettings *serverSettings)
Constructor.
void reloadSettings() override
Reloads the server settings re-reading the configuration.
void setRequestHandler(QgsRequestHandler *requestHandler) override
Set the request handler.
QString getEnv(const QString &name) const override
Returns an enrironment variable, used to pass environment variables to Python.
QgsRequestHandler * requestHandler() override
Returns the QgsRequestHandler, to be used only in server plugins.
void clearRequestHandler() override
Clear the request handler.
QgsServerFiltersMap filters() override
Returns the list of current QgsServerFilter.
QgsServiceRegistry * serviceRegistry() override
Returns the service registry.
void registerAccessControl(QgsAccessControlFilter *accessControl, int priority=0) override
Register an access control filter.
QgsServerCacheManager * cacheManager() const override
Gets the helper over all the registered server cache filters.
void setFilters(QgsServerFiltersMap *filters) override
Set the filters map.
QString configFilePath() override
Returns the configuration file path.
void setConfigFilePath(const QString &configFilePath) override
Set the configuration file path.
void registerFilter(QgsServerFilter *filter, int priority=0) override
Register a QgsServerFilter.
Provides a way to retrieve settings by prioritizing according to environment variables,...
void load()
Load settings according to current environment variables.
A registry manager for QGIS server services.
QMultiMap< int, QgsServerFilter * > QgsServerFiltersMap