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