Class defining cache interface for QGIS Server plugins.  
 More...
#include <qgsservercachefilter.h>
|  | 
|  | QgsServerCacheFilter (const QgsServerInterface *serverInterface) | 
|  | Constructor QgsServerInterface passed to plugins constructors and must be passed to QgsServerCacheFilter instances.  More... 
 | 
|  | 
| virtual | ~QgsServerCacheFilter ()=default | 
|  | 
| virtual bool | deleteCachedDocument (const QgsProject *project, const QgsServerRequest &request, const QString &key) const | 
|  | Deletes the cached document.  More... 
 | 
|  | 
| virtual bool | deleteCachedDocuments (const QgsProject *project) const | 
|  | Deletes all cached documents for a QGIS project.  More... 
 | 
|  | 
| virtual bool | deleteCachedImage (const QgsProject *project, const QgsServerRequest &request, const QString &key) const | 
|  | Deletes the cached image.  More... 
 | 
|  | 
| virtual bool | deleteCachedImages (const QgsProject *project) const | 
|  | Deletes all cached images for a QGIS project.  More... 
 | 
|  | 
| virtual QByteArray | getCachedDocument (const QgsProject *project, const QgsServerRequest &request, const QString &key) const | 
|  | Returns cached document (or 0 if document not in cache) like capabilities.  More... 
 | 
|  | 
| virtual QByteArray | getCachedImage (const QgsProject *project, const QgsServerRequest &request, const QString &key) const | 
|  | Returns cached image (or 0 if document not in cache) like tiles.  More... 
 | 
|  | 
| virtual bool | setCachedDocument (const QDomDocument *doc, const QgsProject *project, const QgsServerRequest &request, const QString &key) const | 
|  | Updates or inserts the document in cache like capabilities.  More... 
 | 
|  | 
| virtual bool | setCachedImage (const QByteArray *img, const QgsProject *project, const QgsServerRequest &request, const QString &key) const | 
|  | Updates or inserts the image in cache like tiles.  More... 
 | 
|  | 
Class defining cache interface for QGIS Server plugins. 
- Since
- QGIS 3.4 
Definition at line 42 of file qgsservercachefilter.h.
◆ QgsServerCacheFilter()
◆ ~QgsServerCacheFilter()
  
  | 
        
          | virtual QgsServerCacheFilter::~QgsServerCacheFilter | ( |  | ) |  |  | virtualdefault | 
 
 
◆ deleteCachedDocument()
  
  | 
        
          | bool QgsServerCacheFilter::deleteCachedDocument | ( | const QgsProject * | project, |  
          |  |  | const QgsServerRequest & | request, |  
          |  |  | const QString & | key |  
          |  | ) |  | const |  | virtual | 
 
Deletes the cached document. 
- Parameters
- 
  
    | project | the project used to generate the document to provide path |  | request | the request used to generate the document to provider parameters or data |  | key | the key provided by the access control to identify different documents for the same request |  
 
- Returns
- trueif the document has been deleted
Definition at line 46 of file qgsservercachefilter.cpp.
 
 
◆ deleteCachedDocuments()
  
  | 
        
          | bool QgsServerCacheFilter::deleteCachedDocuments | ( | const QgsProject * | project | ) | const |  | virtual | 
 
Deletes all cached documents for a QGIS project. 
- Parameters
- 
  
    | project | the project used to generate the documents to provide path |  
 
- Returns
- trueif the documents have been deleted
Definition at line 54 of file qgsservercachefilter.cpp.
 
 
◆ deleteCachedImage()
  
  | 
        
          | bool QgsServerCacheFilter::deleteCachedImage | ( | const QgsProject * | project, |  
          |  |  | const QgsServerRequest & | request, |  
          |  |  | const QString & | key |  
          |  | ) |  | const |  | virtual | 
 
Deletes the cached image. 
- Parameters
- 
  
    | project | the project used to generate the image to provide path |  | request | the request used to generate the image to provider parameters or data |  | key | the key provided by the access control to identify different images for the same request |  
 
- Returns
- trueif the image has been deleted
Definition at line 77 of file qgsservercachefilter.cpp.
 
 
◆ deleteCachedImages()
  
  | 
        
          | bool QgsServerCacheFilter::deleteCachedImages | ( | const QgsProject * | project | ) | const |  | virtual | 
 
Deletes all cached images for a QGIS project. 
- Parameters
- 
  
    | project | the project used to generate the images to provide path |  
 
- Returns
- trueif the images have been deleted
Definition at line 85 of file qgsservercachefilter.cpp.
 
 
◆ getCachedDocument()
  
  | 
        
          | QByteArray QgsServerCacheFilter::getCachedDocument | ( | const QgsProject * | project, |  
          |  |  | const QgsServerRequest & | request, |  
          |  |  | const QString & | key |  
          |  | ) |  | const |  | virtual | 
 
Returns cached document (or 0 if document not in cache) like capabilities. 
- Parameters
- 
  
    | project | the project used to generate the document to provide path |  | request | the request used to generate the document to provider parameters or data |  | key | the key provided by the access control to identify different documents for the same request |  
 
- Returns
- QByteArray of the cached document or an empty one if no corresponding document found 
Definition at line 29 of file qgsservercachefilter.cpp.
 
 
◆ getCachedImage()
  
  | 
        
          | QByteArray QgsServerCacheFilter::getCachedImage | ( | const QgsProject * | project, |  
          |  |  | const QgsServerRequest & | request, |  
          |  |  | const QString & | key |  
          |  | ) |  | const |  | virtual | 
 
Returns cached image (or 0 if document not in cache) like tiles. 
- Parameters
- 
  
    | project | the project used to generate the image to provide path |  | request | the request used to generate the image to provider parameters or data |  | key | the key provided by the access control to identify different images for the same request |  
 
- Returns
- QByteArray of the cached image or an empty one if no corresponding image found 
Definition at line 60 of file qgsservercachefilter.cpp.
 
 
◆ setCachedDocument()
  
  | 
        
          | bool QgsServerCacheFilter::setCachedDocument | ( | const QDomDocument * | doc, |  
          |  |  | const QgsProject * | project, |  
          |  |  | const QgsServerRequest & | request, |  
          |  |  | const QString & | key |  
          |  | ) |  | const |  | virtual | 
 
Updates or inserts the document in cache like capabilities. 
- Parameters
- 
  
    | 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 |  | key | the key provided by the access control to identify different documents for the same request |  
 
- Returns
- trueif the document has been cached
Definition at line 37 of file qgsservercachefilter.cpp.
 
 
◆ setCachedImage()
  
  | 
        
          | bool QgsServerCacheFilter::setCachedImage | ( | const QByteArray * | img, |  
          |  |  | const QgsProject * | project, |  
          |  |  | const QgsServerRequest & | request, |  
          |  |  | const QString & | key |  
          |  | ) |  | const |  | virtual | 
 
Updates or inserts the image in cache like tiles. 
- Parameters
- 
  
    | img | the document 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 |  | key | the key provided by the access control to identify different images for the same request |  
 
- Returns
- trueif the image has been cached
Definition at line 68 of file qgsservercachefilter.cpp.
 
 
The documentation for this class was generated from the following files: