QGIS API Documentation 3.43.0-Master (0bee5d6404c)
qgswmsrequest.h
Go to the documentation of this file.
1/***************************************************************************
2 qgswmsrequest.h
3
4 Define request class for getting request contents for WMS service
5 -------------------
6 begin : 2021-02-10
7 copyright : (C) 2021 by Paul Blottiere
8 email : blottiere.paul@gmail.com
9 ***************************************************************************/
10
11/***************************************************************************
12 * *
13 * This program is free software; you can redistribute it and/or modify *
14 * it under the terms of the GNU General Public License as published by *
15 * the Free Software Foundation; either version 2 of the License, or *
16 * (at your option) any later version. *
17 * *
18 ***************************************************************************/
19#ifndef QGSWMSREQUEST_H
20#define QGSWMSREQUEST_H
21
22#include "qgsserverrequest.h"
23#include "qgswmsparameters.h"
24
25namespace QgsWms
26{
27
35 {
36 Q_GADGET
37
38 public:
42 QgsWmsRequest( const QgsServerRequest &other );
43
47 ~QgsWmsRequest() override = default;
48
52 const QgsWmsParameters &wmsParameters() const;
53
54 void setParameter( const QString &key, const QString &value ) override;
55
56 void removeParameter( const QString &key ) override;
57
58 void setUrl( const QUrl &url ) override;
59
60 private:
61 void init();
62
63 QgsWmsParameters mWmsParams;
64 };
65} // namespace QgsWms
66
67#endif
Defines requests passed to QgsService classes.
QUrl url() const
Returns the request URL as seen by QGIS server.
Provides an interface to retrieve and manipulate WMS parameters received from the client.
Defines request interfaces passed to WMS service.
void setParameter(const QString &key, const QString &value) override
Set a parameter.
~QgsWmsRequest() override=default
Destructor.
const QgsWmsParameters & wmsParameters() const
Returns the parameters interpreted for the WMS service.
void removeParameter(const QString &key) override
Remove a parameter.
void setUrl(const QUrl &url) override
Set the request url.
Median cut implementation.