QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
A helper class that centralizes caches accesses given by all the server cache filter plugins. More...
#include <qgsservercachemanager.h>
Public Member Functions | |
QgsServerCacheManager (const QgsServerCacheManager ©) | |
QgsServerCacheManager (const QgsServerSettings &settings=QgsServerSettings()) | |
Constructor. | |
~QgsServerCacheManager () | |
bool | deleteCachedDocument (const QgsProject *project, const QgsServerRequest &request, QgsAccessControl *accessControl) const |
Deletes the cached document. | |
bool | deleteCachedDocuments (const QgsProject *project) const |
Deletes all cached documents for a QGIS project. | |
bool | deleteCachedImage (const QgsProject *project, const QgsServerRequest &request, QgsAccessControl *accessControl) const |
Deletes the cached image. | |
bool | deleteCachedImages (const QgsProject *project) const |
Deletes all cached images for a QGIS project. | |
bool | getCachedDocument (QDomDocument *doc, const QgsProject *project, const QgsServerRequest &request, QgsAccessControl *accessControl) const |
Returns cached document (or 0 if document not in cache) like capabilities. | |
QByteArray | getCachedImage (const QgsProject *project, const QgsServerRequest &request, QgsAccessControl *accessControl) const |
Returns cached image (or 0 if image not in cache) like tiles. | |
QgsServerCacheManager & | operator= (const QgsServerCacheManager ©) |
void | registerServerCache (QgsServerCacheFilter *serverCache, int priority=0) |
Register a server cache filter. | |
bool | setCachedDocument (const QDomDocument *doc, const QgsProject *project, const QgsServerRequest &request, QgsAccessControl *accessControl) const |
Updates or inserts the document in cache like capabilities. | |
bool | setCachedImage (const QByteArray *img, const QgsProject *project, const QgsServerRequest &request, QgsAccessControl *accessControl) const |
Updates or inserts the image in cache like tiles. | |
A helper class that centralizes caches accesses given by all the server cache filter plugins.
Definition at line 41 of file qgsservercachemanager.h.
QgsServerCacheManager::QgsServerCacheManager | ( | const QgsServerSettings & | settings = QgsServerSettings() | ) |
Constructor.
Definition at line 24 of file qgsservercachemanager.cpp.
QgsServerCacheManager::QgsServerCacheManager | ( | const QgsServerCacheManager & | copy | ) |
Definition at line 30 of file qgsservercachemanager.cpp.
QgsServerCacheManager::~QgsServerCacheManager | ( | ) |
Definition at line 56 of file qgsservercachemanager.cpp.
bool QgsServerCacheManager::deleteCachedDocument | ( | const QgsProject * | project, |
const QgsServerRequest & | request, | ||
QgsAccessControl * | accessControl | ||
) | const |
Deletes the cached document.
project | the project used to generate the document to provide path |
request | the request used to generate the document to provider parameters or data |
accessControl | the access control to identify different documents for the same request provided by server interface |
true
if the document has been deleted Definition at line 115 of file qgsservercachemanager.cpp.
bool QgsServerCacheManager::deleteCachedDocuments | ( | const QgsProject * | project | ) | const |
Deletes all cached documents for a QGIS project.
project | the project used to generate the document to provide path |
true
if the document has been deleted Definition at line 131 of file qgsservercachemanager.cpp.
bool QgsServerCacheManager::deleteCachedImage | ( | const QgsProject * | project, |
const QgsServerRequest & | request, | ||
QgsAccessControl * | accessControl | ||
) | const |
Deletes the cached image.
project | the project used to generate the image to provide path |
request | the request used to generate the image to provider parameters or data |
accessControl | the access control to identify different documents for the same request provided by server interface |
true
if the image has been deleted Definition at line 177 of file qgsservercachemanager.cpp.
bool QgsServerCacheManager::deleteCachedImages | ( | const QgsProject * | project | ) | const |
Deletes all cached images for a QGIS project.
project | the project used to generate the images to provide path |
true
if the images have been deleted Definition at line 193 of file qgsservercachemanager.cpp.
bool QgsServerCacheManager::getCachedDocument | ( | QDomDocument * | doc, |
const QgsProject * | project, | ||
const QgsServerRequest & | request, | ||
QgsAccessControl * | accessControl | ||
) | const |
Returns cached document (or 0 if document not in cache) like capabilities.
doc | the document to update by content found in cache |
project | the project used to generate the document to provide path |
request | the request used to generate the document to provider parameters or data |
accessControl | the access control to identify different documents for the same request provided by server interface |
true
if the document has been found in cache and the document's content set Definition at line 61 of file qgsservercachemanager.cpp.
QByteArray QgsServerCacheManager::getCachedImage | ( | const QgsProject * | project, |
const QgsServerRequest & | request, | ||
QgsAccessControl * | accessControl | ||
) | const |
Returns cached image (or 0 if image not in cache) like tiles.
project | the project used to generate the image to provide path |
request | the request used to generate the image to provider parameters or data |
accessControl | the access control to identify different documents for the same request provided by server interface |
Definition at line 144 of file qgsservercachemanager.cpp.
QgsServerCacheManager & QgsServerCacheManager::operator= | ( | const QgsServerCacheManager & | copy | ) |
Definition at line 43 of file qgsservercachemanager.cpp.
void QgsServerCacheManager::registerServerCache | ( | QgsServerCacheFilter * | serverCache, |
int | priority = 0 |
||
) |
Register a server cache filter.
serverCache | the server cache to add |
priority | the priority used to define the order |
Definition at line 206 of file qgsservercachemanager.cpp.
bool QgsServerCacheManager::setCachedDocument | ( | const QDomDocument * | doc, |
const QgsProject * | project, | ||
const QgsServerRequest & | request, | ||
QgsAccessControl * | accessControl | ||
) | const |
Updates or inserts the document in cache like capabilities.
doc | the document to cache |
project | the project used to generate the document to provide path |
request | the request used to generate the document to provider parameters or data |
accessControl | the access control to identify different documents for the same request provided by server interface |
true
if the document has been cached Definition at line 94 of file qgsservercachemanager.cpp.
bool QgsServerCacheManager::setCachedImage | ( | const QByteArray * | img, |
const QgsProject * | project, | ||
const QgsServerRequest & | request, | ||
QgsAccessControl * | accessControl | ||
) | const |
Updates or inserts the image in cache like tiles.
img | the image to cache |
project | the project used to generate the image to provide path |
request | the request used to generate the image to provider parameters or data |
accessControl | the access control to identify different documents for the same request provided by server interface |
true
if the image has been cached Definition at line 161 of file qgsservercachemanager.cpp.