20 #ifndef QGSREQUESTHANDLER_H
21 #define QGSREQUESTHANDLER_H
27 #include "qgis_server.h"
61 void setResponseHeader(
const QString &name,
const QString &value );
64 void removeResponseHeader(
const QString &name );
67 QString responseHeader(
const QString &name )
const;
70 QMap<QString, QString> responseHeaders()
const;
73 void setRequestHeader(
const QString &name,
const QString &value );
76 void removeRequestHeader(
const QString &name );
79 QString requestHeader(
const QString &name )
const;
82 QMap<QString, QString> requestHeaders()
const;
88 void appendBody(
const QByteArray &body );
91 bool exceptionRaised()
const;
97 QByteArray body()
const;
100 QByteArray data()
const;
109 QString path()
const;
112 void setStatusCode(
int code );
115 int statusCode()
const;
122 QMap<QString, QString> parameterMap()
const;
125 void setParameter(
const QString &key,
const QString &value );
128 QString parameter(
const QString &key )
const;
131 void removeParameter(
const QString &key );
140 QString
format()
const {
return mFormat; }
143 bool headersSent()
const;
150 void setupParameters();
154 QString mFormatString;
156 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...