20 #ifndef QGSREQUESTHANDLER_H 21 #define QGSREQUESTHANDLER_H 29 #include "qgis_server.h" 66 void setResponseHeader(
const QString &name,
const QString &value );
69 void removeResponseHeader(
const QString &name );
72 QString responseHeader(
const QString &name )
const;
75 QMap<QString, QString> responseHeaders()
const;
78 void setRequestHeader(
const QString &name,
const QString &value );
81 void removeRequestHeader(
const QString &name );
84 QString requestHeader(
const QString &name )
const;
87 QMap<QString, QString> requestHeaders()
const;
93 void appendBody(
const QByteArray &body );
96 bool exceptionRaised()
const;
102 QByteArray body()
const;
105 QByteArray data()
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;
146 void setupParameters();
150 QString mFormatString;
152 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...