QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
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#include "moc_qgswmsrequest.cpp"
22
23namespace QgsWms
24{
26 : QgsServerRequest( other )
27 {
28 init();
29 }
30
32 {
33 return mWmsParams;
34 }
35
36 void QgsWmsRequest::setParameter( const QString &key, const QString &value )
37 {
39 init();
40 }
41
42 void QgsWmsRequest::removeParameter( const QString &key )
43 {
45 init();
46 }
47
48 void QgsWmsRequest::setUrl( const QUrl &url )
49 {
51 init();
52 }
53
54 void QgsWmsRequest::init()
55 {
56 mWmsParams = QgsWmsParameters( serverParameters() );
57 }
58}
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.