QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsServerInterfaceImpl Class Reference

Interfaces exposed by QGIS Server and made available to plugins. More...

#include <qgsserverinterfaceimpl.h>

Inheritance diagram for QgsServerInterfaceImpl:
Inheritance graph
[legend]

Public Member Functions

 QgsServerInterfaceImpl (QgsCapabilitiesCache *capCache, QgsServiceRegistry *srvRegistry, QgsServerSettings *serverSettings)
 Constructor.
 
 ~QgsServerInterfaceImpl () override
 
QgsAccessControlaccessControls () const override
 Gets the helper over all the registered access control filters.
 
QgsServerCacheManagercacheManager () const override
 Gets the helper over all the registered server cache filters.
 
QgsCapabilitiesCachecapabilitiesCache () override
 Gets pointer to the capabiblities cache.
 
void clearRequestHandler () override
 Clear the request handler.
 
QString configFilePath () override
 Returns the configuration file path.
 
QgsServerFiltersMap filters () override
 Returns the list of current QgsServerFilter.
 
QString getEnv (const QString &name) const override
 Returns an enrironment variable, used to pass environment variables to Python.
 
void registerAccessControl (QgsAccessControlFilter *accessControl, int priority=0) override
 Register an access control filter.
 
void registerFilter (QgsServerFilter *filter, int priority=0) override
 Register a QgsServerFilter.
 
void registerServerCache (QgsServerCacheFilter *serverCache, int priority=0) override
 Registers a server cache filter.
 
void reloadSettings () override
 Reloads the server settings re-reading the configuration.
 
void removeConfigCacheEntry (const QString &path) override
 Remove entry from config cache.
 
QgsRequestHandlerrequestHandler () override
 Returns the QgsRequestHandler, to be used only in server plugins.
 
QgsServerSettingsserverSettings () override
 Returns the server settings.
 
QgsServiceRegistryserviceRegistry () override
 Returns the service registry.
 
void setConfigFilePath (const QString &configFilePath) override
 Set the configuration file path.
 
void setFilters (QgsServerFiltersMap *filters) override
 Set the filters map.
 
void setRequestHandler (QgsRequestHandler *requestHandler) override
 Set the request handler.
 
- Public Member Functions inherited from QgsServerInterface
 QgsServerInterface ()
 Constructor.
 
virtual ~QgsServerInterface ()=default
 

Detailed Description

Interfaces exposed by QGIS Server and made available to plugins.

Definition at line 34 of file qgsserverinterfaceimpl.h.

Constructor & Destructor Documentation

◆ QgsServerInterfaceImpl()

QgsServerInterfaceImpl::QgsServerInterfaceImpl ( QgsCapabilitiesCache capCache,
QgsServiceRegistry srvRegistry,
QgsServerSettings serverSettings 
)
explicit

Constructor.

Definition at line 24 of file qgsserverinterfaceimpl.cpp.

◆ ~QgsServerInterfaceImpl()

QgsServerInterfaceImpl::~QgsServerInterfaceImpl ( )
override

Definition at line 42 of file qgsserverinterfaceimpl.cpp.

Member Function Documentation

◆ accessControls()

QgsAccessControl * QgsServerInterfaceImpl::accessControls ( ) const
inlineoverridevirtual

Gets the helper over all the registered access control filters.

Returns
the access control helper

Implements QgsServerInterface.

Definition at line 61 of file qgsserverinterfaceimpl.h.

◆ cacheManager()

QgsServerCacheManager * QgsServerInterfaceImpl::cacheManager ( ) const
overridevirtual

Gets the helper over all the registered server cache filters.

Returns
the server cache helper
Since
QGIS 3.4

Implements QgsServerInterface.

Definition at line 98 of file qgsserverinterfaceimpl.cpp.

◆ capabilitiesCache()

QgsCapabilitiesCache * QgsServerInterfaceImpl::capabilitiesCache ( )
inlineoverridevirtual

Gets pointer to the capabiblities cache.

Returns
QgsCapabilitiesCache

Implements QgsServerInterface.

Definition at line 48 of file qgsserverinterfaceimpl.h.

◆ clearRequestHandler()

void QgsServerInterfaceImpl::clearRequestHandler ( )
overridevirtual

Clear the request handler.

Note
not available in Python bindings

Implements QgsServerInterface.

Definition at line 51 of file qgsserverinterfaceimpl.cpp.

◆ configFilePath()

QString QgsServerInterfaceImpl::configFilePath ( )
inlineoverridevirtual

Returns the configuration file path.

Returns
QString containing the configuration file path

Implements QgsServerInterface.

Definition at line 80 of file qgsserverinterfaceimpl.h.

◆ filters()

QgsServerFiltersMap QgsServerInterfaceImpl::filters ( )
inlineoverridevirtual

Returns the list of current QgsServerFilter.

Returns
QgsServerFiltersMap list of QgsServerFilter

Implements QgsServerInterface.

Definition at line 52 of file qgsserverinterfaceimpl.h.

◆ getEnv()

QString QgsServerInterfaceImpl::getEnv ( const QString &  name) const
overridevirtual

Returns an enrironment variable, used to pass environment variables to Python.

Implements QgsServerInterface.

Definition at line 36 of file qgsserverinterfaceimpl.cpp.

◆ registerAccessControl()

void QgsServerInterfaceImpl::registerAccessControl ( QgsAccessControlFilter accessControl,
int  priority = 0 
)
overridevirtual

Register an access control filter.

Register a new access control filter.

Implements QgsServerInterface.

Definition at line 77 of file qgsserverinterfaceimpl.cpp.

◆ registerFilter()

void QgsServerInterfaceImpl::registerFilter ( QgsServerFilter filter,
int  priority = 0 
)
overridevirtual

Register a QgsServerFilter.

Parameters
filterthe QgsServerFilter to add
priorityan optional priority for the filter order

Implements QgsServerInterface.

Definition at line 66 of file qgsserverinterfaceimpl.cpp.

◆ registerServerCache()

void QgsServerInterfaceImpl::registerServerCache ( QgsServerCacheFilter serverCache,
int  priority = 0 
)
overridevirtual

Registers a server cache filter.

Register a new access control filter.

Parameters
serverCachethe server cache to register
prioritythe priority used to order them
Since
QGIS 3.4

Implements QgsServerInterface.

Definition at line 88 of file qgsserverinterfaceimpl.cpp.

◆ reloadSettings()

void QgsServerInterfaceImpl::reloadSettings ( )
overridevirtual

Reloads the server settings re-reading the configuration.

Since
QGIS 3.28

Implements QgsServerInterface.

Definition at line 122 of file qgsserverinterfaceimpl.cpp.

◆ removeConfigCacheEntry()

void QgsServerInterfaceImpl::removeConfigCacheEntry ( const QString &  path)
overridevirtual

Remove entry from config cache.

Parameters
paththe path of the file to remove

Implements QgsServerInterface.

Definition at line 103 of file qgsserverinterfaceimpl.cpp.

◆ requestHandler()

QgsRequestHandler * QgsServerInterfaceImpl::requestHandler ( )
inlineoverridevirtual

Returns the QgsRequestHandler, to be used only in server plugins.

Implements QgsServerInterface.

Definition at line 50 of file qgsserverinterfaceimpl.h.

◆ serverSettings()

QgsServerSettings * QgsServerInterfaceImpl::serverSettings ( )
overridevirtual

Returns the server settings.

Returns
QgsServerSettings
Note
not available in Python bindings

Implements QgsServerInterface.

Definition at line 117 of file qgsserverinterfaceimpl.cpp.

◆ serviceRegistry()

QgsServiceRegistry * QgsServerInterfaceImpl::serviceRegistry ( )
overridevirtual

Returns the service registry.

Returns
QgsServiceResgistry

Implements QgsServerInterface.

Definition at line 112 of file qgsserverinterfaceimpl.cpp.

◆ setConfigFilePath()

void QgsServerInterfaceImpl::setConfigFilePath ( const QString &  configFilePath)
overridevirtual

Set the configuration file path.

Parameters
configFilePathQString with the configuration file path

Implements QgsServerInterface.

Definition at line 61 of file qgsserverinterfaceimpl.cpp.

◆ setFilters()

void QgsServerInterfaceImpl::setFilters ( QgsServerFiltersMap filters)
overridevirtual

Set the filters map.

Parameters
filtersthe QgsServerFiltersMap

Implements QgsServerInterface.

Definition at line 71 of file qgsserverinterfaceimpl.cpp.

◆ setRequestHandler()

void QgsServerInterfaceImpl::setRequestHandler ( QgsRequestHandler requestHandler)
overridevirtual

Set the request handler.

Parameters
requestHandlerrequest handler
Note
not available in Python bindings

Implements QgsServerInterface.

Definition at line 56 of file qgsserverinterfaceimpl.cpp.


The documentation for this class was generated from the following files: