QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
qgswmsrequest.cpp
Go to the documentation of this file.
1/***************************************************************************
2 qgswmsrequest.cpp
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
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
20#include "qgswmsrequest.h"
21
22namespace QgsWms
23{
25 : QgsServerRequest( other )
26 {
27 init();
28 }
29
31 {
32 return mWmsParams;
33 }
34
35 void QgsWmsRequest::setParameter( const QString &key, const QString &value )
36 {
38 init();
39 }
40
41 void QgsWmsRequest::removeParameter( const QString &key )
42 {
44 init();
45 }
46
47 void QgsWmsRequest::setUrl( const QUrl &url )
48 {
50 init();
51 }
52
53 void QgsWmsRequest::init()
54 {
55 mWmsParams = QgsWmsParameters( serverParameters() );
56 }
57}
QgsServerRequest Class defining request interface passed to services QgsService::executeRequest() met...
QgsServerParameters serverParameters() const
Returns parameters.
virtual void setParameter(const QString &key, const QString &value)
Set a parameter.
virtual void setUrl(const QUrl &url)
Set the request url.
virtual void removeParameter(const QString &key)
Remove a parameter.
Provides an interface to retrieve and manipulate WMS parameters received from the client.
void setParameter(const QString &key, const QString &value) override
Set a parameter.
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.
QgsWmsRequest(const QgsServerRequest &other)
Copy constructor.
Median cut implementation.