QGIS API Documentation
3.4.15-Madeira (e83d02e274)
|
The QgsServer class provides OGC web services. More...
#include <qgsserver.h>
Public Member Functions | |
QgsServer () | |
Creates the server instance. More... | |
void | handleRequest (QgsServerRequest &request, QgsServerResponse &response, const QgsProject *project=nullptr) |
Handles the request. More... | |
void | putenv (const QString &var, const QString &val) |
Set environment variable. More... | |
QgsServerInterfaceImpl * | serverInterface () |
Returns a pointer to the server interface. More... | |
The QgsServer class provides OGC web services.
Definition at line 52 of file qgsserver.h.
QgsServer::QgsServer | ( | ) |
Creates the server instance.
Definition at line 68 of file qgsserver.cpp.
void QgsServer::handleRequest | ( | QgsServerRequest & | request, |
QgsServerResponse & | response, | ||
const QgsProject * | project = nullptr |
||
) |
Handles the request.
The query string is normally read from environment but can be also passed in args and in this case overrides the environment variable
request | a QgsServerRequest holding request parameters |
response | a QgsServerResponse for handling response I/O) |
project | a QgsProject or nullptr, if it is nullptr the project is created from the MAP param specified in request or from the QGIS_PROJECT_FILE setting |
Definition at line 297 of file qgsserver.cpp.
void QgsServer::putenv | ( | const QString & | var, |
const QString & | val | ||
) |
Set environment variable.
var | environment variable name |
val | value |
Definition at line 287 of file qgsserver.cpp.
|
inline |
Returns a pointer to the server interface.
Definition at line 85 of file qgsserver.h.