QGIS API Documentation
3.18.1-Zürich (202f1bf7e5)
|
QgsServerParameters provides an interface to retrieve and manipulate global parameters received from the client. More...
#include <qgsserverparameters.h>
Public Member Functions | |
QgsServerParameters () | |
Constructor. More... | |
QgsServerParameters (const QUrlQuery &query) | |
Constructor. More... | |
virtual | ~QgsServerParameters ()=default |
void | add (const QString &key, const QString &value) |
Adds a parameter. More... | |
void | clear () |
Removes all parameters. More... | |
QString | fileName () const |
Returns FILE_NAME parameter as a string or an empty string if not defined. More... | |
void | load (const QUrlQuery &query) |
Loads new parameters. More... | |
QString | map () const |
Returns MAP parameter as a string or an empty string if not defined. More... | |
void | remove (const QString &key) |
Removes a parameter. More... | |
void | remove (QgsServerParameter::Name name) |
Removes a parameter. More... | |
QString | request () const |
Returns REQUEST parameter as a string or an empty string if not defined. More... | |
QString | service () const |
Returns SERVICE parameter as a string or an empty string if not defined. More... | |
QMap< QString, QString > | toMap () const |
Returns all parameters in a map. More... | |
QUrlQuery | urlQuery () const |
Returns a url query with underlying parameters. More... | |
QString | value (const QString &key) const |
Returns the value of a parameter. More... | |
QString | version () const |
Returns VERSION parameter as a string or an empty string if not defined. More... | |
Protected Member Functions | |
virtual bool | loadParameter (const QString &name, const QString &value) |
Loads a parameter with a specific value. More... | |
Protected Attributes | |
QMap< QString, QString > | mUnmanagedParameters |
QgsServerParameters provides an interface to retrieve and manipulate global parameters received from the client.
Definition at line 228 of file qgsserverparameters.h.
QgsServerParameters::QgsServerParameters | ( | ) |
Constructor.
Definition at line 410 of file qgsserverparameters.cpp.
QgsServerParameters::QgsServerParameters | ( | const QUrlQuery & | query | ) |
Constructor.
Definition at line 419 of file qgsserverparameters.cpp.
|
virtualdefault |
void QgsServerParameters::add | ( | const QString & | key, |
const QString & | value | ||
) |
Adds a parameter.
key | the name of the parameter |
value | the value of the parameter |
Definition at line 431 of file qgsserverparameters.cpp.
void QgsServerParameters::clear | ( | ) |
Removes all parameters.
Definition at line 594 of file qgsserverparameters.cpp.
QString QgsServerParameters::fileName | ( | ) | const |
Returns FILE_NAME parameter as a string or an empty string if not defined.
Definition at line 487 of file qgsserverparameters.cpp.
void QgsServerParameters::load | ( | const QUrlQuery & | query | ) |
Loads new parameters.
query | url query |
Definition at line 554 of file qgsserverparameters.cpp.
|
protectedvirtual |
Loads a parameter with a specific value.
This method should be implemented in subclasses.
Definition at line 589 of file qgsserverparameters.cpp.
QString QgsServerParameters::map | ( | ) | const |
Returns MAP parameter as a string or an empty string if not defined.
Definition at line 477 of file qgsserverparameters.cpp.
void QgsServerParameters::remove | ( | const QString & | key | ) |
Removes a parameter.
key | the name of the parameter |
Definition at line 461 of file qgsserverparameters.cpp.
void QgsServerParameters::remove | ( | QgsServerParameter::Name | name | ) |
Removes a parameter.
name | The name of the parameter |
Definition at line 456 of file qgsserverparameters.cpp.
QString QgsServerParameters::request | ( | ) | const |
Returns REQUEST parameter as a string or an empty string if not defined.
Definition at line 532 of file qgsserverparameters.cpp.
QString QgsServerParameters::service | ( | ) | const |
Returns SERVICE parameter as a string or an empty string if not defined.
Definition at line 492 of file qgsserverparameters.cpp.
QMap< QString, QString > QgsServerParameters::toMap | ( | ) | const |
Returns all parameters in a map.
Definition at line 509 of file qgsserverparameters.cpp.
QUrlQuery QgsServerParameters::urlQuery | ( | ) | const |
Returns a url query with underlying parameters.
Definition at line 438 of file qgsserverparameters.cpp.
QString QgsServerParameters::value | ( | const QString & | key | ) | const |
Returns the value of a parameter.
key | the name of the parameter |
Definition at line 537 of file qgsserverparameters.cpp.
QString QgsServerParameters::version | ( | ) | const |
Returns VERSION parameter as a string or an empty string if not defined.
Definition at line 482 of file qgsserverparameters.cpp.
|
protected |
Definition at line 336 of file qgsserverparameters.h.