20 #ifndef QGSREQUESTHANDLER_H 21 #define QGSREQUESTHANDLER_H 26 #include <QStringList> 31 #include "qgis_server.h" 70 void setResponseHeader(
const QString &name,
const QString &value );
73 void removeResponseHeader(
const QString &name );
76 QString responseHeader(
const QString &name )
const;
79 QMap<QString, QString> responseHeaders()
const;
82 void setRequestHeader(
const QString &name,
const QString &value );
85 void removeRequestHeader(
const QString &name );
88 QString requestHeader(
const QString &name )
const;
91 QMap<QString, QString> requestHeaders()
const;
97 void appendBody(
const QByteArray &body );
100 bool exceptionRaised()
const;
106 QByteArray body()
const;
109 QByteArray data()
const;
115 void setStatusCode(
int code );
118 int statusCode()
const;
125 QMap<QString, QString> parameterMap()
const;
128 void setParameter(
const QString &key,
const QString &value );
131 QString parameter(
const QString &key )
const;
134 void removeParameter(
const QString &key );
143 QString
format()
const {
return mFormat; }
146 bool headersSent()
const;
150 void setupParameters();
154 QString mFormatString;
156 bool mExceptionRaised;
QString format() const
Returns the requested format string.
This class is an interface hiding the details of reading input and writing output from/to a wms reque...
Exception base class for server exceptions.
QgsServerRequest Class defining request interface passed to services QgsService::executeRequest() met...
QMultiMap< int, QgsColorBox > QgsColorBoxMap
QList< QPair< QRgb, int > > QgsColorBox
QgsServerResponse Class defining response interface passed to services QgsService::executeRequest() m...