20#ifndef QGSREQUESTHANDLER_H
21#define QGSREQUESTHANDLER_H
27#include "qgis_server.h"
60 void setResponseHeader(
const QString &name,
const QString &value );
63 void removeResponseHeader(
const QString &name );
66 QString responseHeader(
const QString &name )
const;
69 QMap<QString, QString> responseHeaders()
const;
72 void setRequestHeader(
const QString &name,
const QString &value );
75 void removeRequestHeader(
const QString &name );
78 QString requestHeader(
const QString &name )
const;
81 QMap<QString, QString> requestHeaders()
const;
87 void appendBody(
const QByteArray &body );
90 bool exceptionRaised()
const;
96 QByteArray body()
const;
99 QByteArray data()
const;
108 QString path()
const;
111 void setStatusCode(
int code );
114 int statusCode()
const;
121 QMap<QString, QString> parameterMap()
const;
124 void setParameter(
const QString &key,
const QString &value );
127 QString parameter(
const QString &key )
const;
130 void removeParameter(
const QString &key );
139 QString
format()
const {
return mFormat; }
142 bool headersSent()
const;
149 void setupParameters();
153 QString mFormatString;
155 bool mExceptionRaised;
This class is an interface hiding the details of reading input and writing output from/to a wms reque...
QString format() const
Returns the requested format string.
Exception base class for server exceptions.
QgsServerRequest Class defining request interface passed to services QgsService::executeRequest() met...
QgsServerResponse Class defining response interface passed to services QgsService::executeRequest() m...