19 #ifndef QGSSERVERREQUEST_H
20 #define QGSSERVERREQUEST_H
24 #include "qgis_server.h"
45 typedef QMap<QString, QString>
Headers;
80 X_QGIS_WMS_SERVICE_URL,
82 X_QGIS_WFS_SERVICE_URL,
84 X_QGIS_WCS_SERVICE_URL,
86 X_QGIS_WMTS_SERVICE_URL,
94 Q_ENUM( RequestHeader )
133 static QString methodToString( const
Method &method );
163 virtual
void setParameter( const QString &key, const QString &value );
168 QString parameter( const QString &key, const QString &defaultValue = QString() ) const;
173 virtual
void removeParameter( const QString &key );
180 virtual QString header( const QString &name ) const;
187 virtual QString header( const
RequestHeader &headerEnum ) const;
194 void setHeader( const QString &name, const QString &value );
200 QMap<QString, QString> headers() const;
207 void removeHeader( const QString &name );
214 virtual QByteArray data() const;
219 virtual
void setUrl( const QUrl &url );
228 QUrl originalUrl() const;
238 QUrl baseUrl() const;
249 const QString queryParameter( const QString &name, const QString &defaultValue = QString( ) ) const;
259 void setOriginalUrl( const QUrl &url );
266 void setBaseUrl( const QUrl &url );
274 Method mMethod = GetMethod;